code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
#include "ToolbarPanel.h" #include "StagePanel.h" #include "SelectSpritesOP.h" #include "Context.h" namespace coceditor { ToolbarPanel::ToolbarPanel(wxWindow* parent) : ee::ToolbarPanel(parent, Context::Instance()->stage) { Context* context = Context::Instance(); // addChild(new ee::UniversalCMPT(this, wxT("paste...
xzrunner/easyeditor
coceditor/src/coceditor/ToolbarPanel.cpp
C++
mit
785
using System.IO; using System.Diagnostics; using NDepend.Path; namespace NDepend.Test.Unit { public static class DirForTest { public static IAbsoluteDirectoryPath ExecutingAssemblyDir { get { // If this following line doesn't work, it is because of ShadowCopyCache with NUnit ...
psmacchia/NDepend.Path
NDepend.Path.Tests/DirForTest.cs
C#
mit
3,806
--- layout: page title: php 文件管理 category: blog description: --- # Preface 以下是php文件管理函数归纳 # 文件属性(file attribute) filetype($path) block(块设备:分区,软驱,光驱) char(字符设备键盘打打印机) dir file fifo (命名管道,用于进程之间传递信息) link unknown file_exits() 文件存在性 filesize() 返回文件大小(字节数,用pow()去转化 为MB吧) is_readable()检查是否可读 is_writea...
alskjstl/hilojack.github.io
_posts/2013-2-3-php-file.md
Markdown
mit
8,412
require 'statsample' module Grid class Row attr_reader :top_y, :bottom_y def initialize(item) @data = [] self << item end def <<(item) @data << item @top_y = quartiles_meam(@data.map(&:y)) @bottom_y = quartiles_meam(@data.map{|item| item.y + item.height}) end ...
xli/ewall
lib/grid/row.rb
Ruby
mit
746
import unittest from src.data_structures.mockdata import MockData class TestMockData (unittest.TestCase): def setUp(self): self.data = MockData() def test_random_data(self): data = MockData() a_set = data.get_random_elements(10) self.assertTrue(len(a_set) == 10, "the data sh...
alcemirsantos/algorithms-py
tests/data_stuctures/test_mockdata.py
Python
mit
400
// // Person.h // SJDBMapProject // // Created by BlueDancer on 2017/6/4. // Copyright © 2017年 SanJiang. All rights reserved. // #import <Foundation/Foundation.h> #import "SJDBMapUseProtocol.h" @class Book; @class PersonTag; @class Goods; @class TestTest; @interface Person : NSObject<SJDBMapUseProtocol> @proper...
changsanjiang/SJDBMap
SJDBMapProject/Model/Person.h
C
mit
1,103
/* ======================================== * File Name : B.cpp * Creation Date : 16-11-2020 * Last Modified : Po 16. listopadu 2020, 01:03:10 * Created By : Karel Ha <mathemage@gmail.com> * URL : https://codeforces.com/problemset/problem/1296/B * Points Gained (in case of online contest) : AC...
mathemage/CompetitiveProgramming
codeforces/div3/1296/B/B.cpp
C++
mit
1,574
# frozen_string_literal: true module Wardrobe module Plugins module Validation module Refinements refine NilClass do def filled? 'must be filled' end def empty? # Nil is valid as empty end end end end end end
agensdev/wardrobe
lib/wardrobe/plugins/validation/refinements/nil_class.rb
Ruby
mit
315
# fish-p2p FISH: FIle SHaring, a Distributed File System - Decentralised P2P system
tobiajo/fish-p2p
README.md
Markdown
mit
84
<!DOCTYPE html> <html> <head> <title>Poet -- node.js blogging platform</title> <link rel="stylesheet" href="styles/prettify.css"> <link rel="stylesheet" href="styles/poet.css"> <link href="http://fonts.googleapis.com/cs?family=La+Belle+Aurore" rel="stylesheet" type="text/css"> <script src="js/ga.j...
jsantell/poet
docs/public/index.html
HTML
mit
14,428
from rest_framework.filters import ( FilterSet ) from trialscompendium.trials.models import Treatment class TreatmentListFilter(FilterSet): """ Filter query list from treatment database table """ class Meta: model = Treatment fields = {'id': ['exact', 'in'], 'no_r...
nkoech/trialscompendium
trialscompendium/trials/api/treatment/filters.py
Python
mit
934
import React, { Component } from 'react'; class Main extends Component { render() { return ( <main className='Main'> <h1 className='Main-headline'>Web solutions focused on<br/>Simplicity & Reliability.</h1> <h2 className='Main-subhead'>Bleeding edge technology paired with amazing <em>talent...
qubed-inc/qubed-io
src/Main/index.js
JavaScript
mit
466
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Se...
paully21/SendGridWebHookExample
Website/Properties/AssemblyInfo.cs
C#
mit
1,401
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open...
GoC-Spending/data-corporations
html/123456204733.html
HTML
mit
39,817
// // SwiftMan.h // SwiftMan // // Created by yangjun on 16/4/29. // Copyright © 2016年 yangjun. All rights reserved. // #import "TargetConditionals.h" #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> #elif TARGET_OS_MAC #import <Cocoa/Cocoa.h> #elif TARGET_OS_WATCH #import <WatchKit/WatchKit.h> #endif //! Project v...
easyui/SwiftMan
SwiftMan/SwiftMan.h
C
mit
641
/* * @brief This file contains USB HID Keyboard example using USB ROM Drivers. * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC pro...
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/examples/usbd_rom/usbd_rom_hid_keyboard/hid_keyboard.c
C
mit
7,219
'use strict'; angular.module('main', ['ngRoute', 'ngResource', 'ui.route', 'main.system', 'main.index', 'main.events']); angular.module('main.system', []); angular.module('main.index', []); angular.module('main.events', []); 'use strict'; //Setting HTML5 Location Mode angular.module('main').config(['$locationProvide...
NevadaCountyHackers/hackers-web-app
public/dist/app.js
JavaScript
mit
1,912
/** * StaticText.js * Text that cannot be changed after loaded by the game */ import GamePiece from './GamePiece.js'; import Info from './Info.js'; import Text from './Text.js'; export default class StaticText extends Text { constructor (config) { super(config); this.static = true; } }
javisaurusrex/zookillsoccer
modules/js/StaticText.js
JavaScript
mit
305
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\ call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" msbuild steamworks4j.sln /p:Configuration=ReleaseDLL /p:Platform=Win32 /t:Rebuild move steamworks4j.dll ..\natives\libs\steamworks4j.dl...
franzbischoff/steamworks4j
build-natives/build-win.bat
Batchfile
mit
631
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_101) on Mon Sep 19 15:00:46 UTC 2016 --> <title>org.springframework.oxm.xmlbeans Class Hierarchy (Spring Framework 4.3.3.RELEASE API)</title><s...
piterlin/piterlin.github.io
doc/spring4.3.3-docs/javadoc-api/org/springframework/oxm/xmlbeans/package-tree.html
HTML
mit
6,315
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Core\Tests\Metadata\Property\Fact...
vincentchalamon/core
tests/Metadata/Property/Factory/CachedPropertyNameCollectionFactoryTest.php
PHP
mit
5,079
<?php namespace Tests\Behat\Mink; use Behat\Mink\Session; /** * @group unittest */ class SessionTest extends \PHPUnit_Framework_TestCase { private $driver; private $selectorsHandler; private $session; protected function setUp() { $this->driver = $this->getMoc...
lrt/lrt
vendor/behat/mink/tests/Behat/Mink/SessionTest.php
PHP
mit
3,095
<?php namespace DuxCms\Model; use Think\Model; /** * 扩展字段数据操作 */ class FieldDataModel extends Model { //设置操作表 public function setTable($name) { $this->trueTableName = $this->tablePrefix.'ext_'.$name; } /** * 获取列表 * @return array 列表 */ public function loadList($where,$limit...
coneycode/cmsForMePad
Application/DuxCms/Model/FieldDataModel.class.php
PHP
mit
8,135
# Install on Laravel Forge 1. Disable nginx with `sudo update-rc.d -f nginx disable` 2. Create a new site for your blog, and install this Git Repository 3. Execute `npm install --production` in `/home/forge/{YOUR_GHOST_BLOG_SITE_NAME}`. 4. Reboot your server 5. Add a daenom for the root user that executes `npm start /...
adamgoose/ghost-blog
README.md
Markdown
mit
593
""" WSGI config for Carkinos project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
LeeYiFang/Carkinos
src/Carkinos/wsgi.py
Python
mit
393
# Smallest Integer # I worked on this challenge by myself. # smallest_integer is a method that takes an array of integers as its input # and returns the smallest integer in the array # # +list_of_nums+ is an array of integers # smallest_integer(list_of_nums) should return the smallest integer in +list_of_nums+ # # If...
jonwhuang/phase-0
week-4/smallest-integer/my_solution.rb
Ruby
mit
753
require_relative 'spec_helper' include LanguageSwitcher I18n.available_locales = [:pt, :en] describe "LanguageSwitcher" do it "should be able to switch to a language" do language(:pt){ I18n.locale.should == :pt } language(:en){ I18n.locale.should == :en } end it "should not be able to switch to a lan...
teonimesic/language_switcher
spec/language_switcher_spec.rb
Ruby
mit
682
import React from 'react'; import { string, node } from 'prop-types'; import classNames from 'classnames'; const TileAction = ({ children, className, ...rest }) => { return ( <div className={classNames('tile-action', className)} {...rest}> {children} </div> ); }; /** * TileAction property types. *...
Landish/react-spectre-css
src/components/TileAction/TileAction.js
JavaScript
mit
489
<?php /** * @link https://github.com/tigrov/yii2-country * @author Sergei Tigrov <rrr-r@ya.ru> */ namespace tigrov\country; /** * This is the model class for table "city_translation". * * @property integer $geoname_id * @property string $language_code * @property string $value */ class CityTranslation extend...
Tigrov/yii2-country
src/CityTranslation.php
PHP
mit
473
package com.mvas.webproxy.portals; import com.mvas.webproxy.DeviceConnectionInfo; import com.mvas.webproxy.RequestData; import com.mvas.webproxy.WebServer; import com.mvas.webproxy.config.PortalConfiguration; import org.apache.commons.io.IOUtils; import org.json.JSONException; import org.json.JSONObject; import org.s...
mvasilchuk/webproxy
src/main/java/com/mvas/webproxy/portals/StalkerRequestHandler.java
Java
mit
9,322
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> :head :fbthumb </head> <body> <div id="wrapper"> <header> <div class="container"> <h1 class="col four"> <a href="@root_path/" class="logo">@name</a> </h1> <div class="col six ...
senordavis/drawings
templates/contact.html
HTML
mit
741
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.actions; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import...
archimatetool/archi
com.archimatetool.editor/src/com/archimatetool/editor/actions/CheckForNewVersionAction.java
Java
mit
4,513
using System; using System.Collections.Generic; using EspaceClient.BackOffice.Domaine.Results; using EspaceClient.BackOffice.Silverlight.Business.Depots; using EspaceClient.BackOffice.Silverlight.Business.Interfaces; using EspaceClient.BackOffice.Silverlight.Infrastructure.Services; using EspaceClient.FrontOffice.Domai...
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.BackOffice.Silverlight.Data/Depots/DepotPieceJointe.cs
C#
mit
5,620
from io import BytesIO from django import forms from django.http import HttpResponse from django.template import Context, Template from braces.views import LoginRequiredMixin from django.views.generic import DetailView, ListView from django.views.decorators.http import require_http_methods from django.contrib import...
mooja/ssip3
app/members/views.py
Python
mit
4,530
import {Component} from "@angular/core"; @Component({ moduleId: module.id, selector: 'ptc-footer', templateUrl: 'footer.component.html' }) export class FooterComponent{ }
puncha/java-petclinic
src/main/webapp/resources/ng2/app/footer/footer.component.ts
TypeScript
mit
177
version https://git-lfs.github.com/spec/v1 oid sha256:8ecad6ce4ab24b16dd86e293b01f4b3d0ea62911d34288c6c78a9e6fe6b7da46 size 4972
yogeshsaroya/new-cdnjs
ajax/libs/semantic-ui/1.11.3/components/image.css
CSS
mit
129
<?php namespace Pinq\Iterators\Generators; use Pinq\Iterators\Standard\IIterator; /** * Implementation of the adapter iterator for Pinq\Iterators\IIterator using the generator * * @author Elliot Levin <elliotlevin@hotmail.com> */ class IIteratorAdapter extends Generator { /** * @var IIterator */ ...
TimeToogo/Pinq
Source/Iterators/Generators/IIteratorAdapter.php
PHP
mit
671
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
wateret/coreclr
src/jit/codegenarmarch.cpp
C++
mit
135,282
<nav class="sr-only"> <div class="modal-header"> <div class="row"> <h1 class="h1 col-xs-10 col-sm-10 col-md-11 col-lg-11"><a href="/">WSJ Sections</a></h1> <a href="" class=" col-xs-1 col-sm-1 col-md-1 col-lg-1" ng-click="NC.cancel()">close </a> </div> <div class="...
daniel-rodas/wsj
fuel/app/views/angular/navigation.php
PHP
mit
2,375
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AnalyzeThis { internal static class RegexExtensions { public static bool TryGetMatch(this Regex regex, string input, out Match match) ...
tastott/AnalyzeThis
src/AnalyzeThis/RegexExtensions.cs
C#
mit
541
M.profile("generators"); function* forOfBlockScope() { let a = [1, 2, 3, 4, 5, 6, 7, 8]; let b = [10, 11, 12, 13, 14, 15, 16]; const funs = []; for (const i of a) { let j = 0; funs.push(function* iter() { yield `fo1: ${i} ${j++}`; }); } for (var i of a) { var j = 0; funs.push(func...
awto/effectfuljs
packages/core/test/samples/for-of-stmt/closures-in.js
JavaScript
mit
4,231
<?php /* * This file is a part of the NeimheadhBootstrapBundle project. * * (c) 2017 by Neimheadh * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Neimheadh\Bundle\CodeManipulationBundle\Model\File; use Symfony\Component...
neimheadh/code-manipulation-bundle
Model/File/FileInterface.php
PHP
mit
2,489
<!DOCTYPE html> <html> <head> <link href="css/awsdocs.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/awsdocs.min.js"></script> <meta charset="utf-8"> </head> <body> <div id="content" style="padding: 10px 3...
pdhodgkinson/AWSCloudFormationTemplateReference-dash-docset
AWS_CloudFormation_Template_Reference.docset/Contents/Resources/Documents/aws-resource-route53-hostedzone.html
HTML
mit
14,906
package fPPPrograms; import java.util.Scanner; public class LeapYear { public static void main(String[] args) { System.out.println("Enter a year to determine whether it is a leap year or not?"); Scanner yourInput = new Scanner(System.in); int year = yourInput.nextInt(); //String y = year%400 == ...
haftommit/FPP.github.io
FPPSecondProject/src/week1lesson2/Q2.java
Java
mit
545
2020-02-24: Development Meeting =============================== Kacper, Craig, Mike H, Tim, Elias, Mike L, Tommy Agenda ------ * Updates * AHM - [name=Kacper] * 03/04/2020 10am - 5pm CDT * https://illinois.zoom.us/j/583802454 * for people @ NCSA: we gather in NCSA-2000 * optionally 04/04/2020 10am - 1p...
whole-tale/wt-design-docs
development/meetings/2020-02-24.md
Markdown
mit
3,620
<?php namespace BigD\UbicacionBundle\Form\EventListener; use Doctrine\ORM\EntityRepository; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\PropertyAcces...
matudelatower/BigD
src/BigD/UbicacionBundle/Form/EventListener/AddCityFieldSubscriber.php
PHP
mit
3,120
/* * Webpack development server configuration * * This file is set up for serving the webpack-dev-server, which will watch for changes and recompile as required if * the subfolder /webpack-dev-server/ is visited. Visiting the root will not automatically reload. */ 'use strict'; import webpack from 'webpack'; impor...
RiddleMan/giant-privacy-spy
client/webpack.config.js
JavaScript
mit
1,796
// This code will add an event listener to each anchor of the topbar after being dynamically replaced by "interchange" $("body").on("click", function(event){ // If the active element is one of the topbar's links continues if($(event.target).hasClass("topbarLink")) { // The parent li element of the current acti...
joseAyudarte91/aterbe_web_project
js/commons/activateCurrentLink.js
JavaScript
mit
1,381
const elixir = require('laravel-elixir'); elixir((mix) => { // Mix all Sass files into one mix.sass('app.scss'); // Mix all vendor scripts together mix.scripts( [ 'jquery/dist/jquery.min.js', 'bootstrap-sass/assets/javascripts/bootstrap.min.js', 'bootstrap-s...
jamesgifford/perfectlydopey
gulpfile.js
JavaScript
mit
1,236
require 'spec_helper' describe User do context 'fields' do it { should have_field(:email).of_type(String)} it { should have_field(:encrypted_password).of_type(String)} it { should have_field(:roles).of_type(Array)} end context 'Mass assignment' do it { should allow_mass_assignment_of(:email)...
techvision/brails
spec/models/user_spec.rb
Ruby
mit
661
import {Map} from 'immutable'; export function getInteractiveLayerIds(mapStyle) { let interactiveLayerIds = []; if (Map.isMap(mapStyle) && mapStyle.has('layers')) { interactiveLayerIds = mapStyle.get('layers') .filter(l => l.get('interactive')) .map(l => l.get('id')) .toJS(); } else if (Ar...
RanaRunning/rana
web/src/components/MapGL/utils/style-utils.js
JavaScript
mit
480
<!doctype html> <html> <head> </head> <body> <h1>Milestones - Codenautas</h1> <div id=milestones></div> <script src=milestones.js></script> </body> </html>
codenautas/pruebas_de_concepto
milestones/milestones.html
HTML
mit
186
/* * Created on 24/02/2014 * */ package net.rlviana.pricegrabber.model.entity.common; import net.rlviana.pricegrabber.context.JPAPersistenceContext; import net.rlviana.pricegrabber.model.entity.AbstractReadOnlyEntityTest; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.sl...
rlviana/pricegrabber-app
pricegrabber-model/src/test/java/net/rlviana/pricegrabber/model/entity/common/CurrencyTest.java
Java
mit
1,712
package machinelearningservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
Azure/azure-sdk-for-go
services/machinelearningservices/mgmt/2021-04-01/machinelearningservices/enums.go
GO
mit
32,878
#include "utfgrid_encode.h" #include <unordered_map> #include <glog/logging.h> #include <jsoncpp/json/value.h> #include <mapnik/unicode.hpp> struct value_to_json_visitor { Json::Value operator() (const mapnik::value_null& val) {return Json::Value();} Json::Value operator() (const mapnik::value_bool& val) {re...
sputnik-maps/maps-express
src/utfgrid_encode.cpp
C++
mit
4,103
package me.moodcat.api; import java.util.Arrays; import java.util.List; import java.util.Locale; import java.util.stream.Collectors; import lombok.Getter; import me.moodcat.database.embeddables.VAVector; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; /** * A...
MoodCat/MoodCat.me-Core
src/main/java/me/moodcat/api/Mood.java
Java
mit
3,192
<!-- CONTAINER BODY --> <div class="panel-group" > <div class="panel panel-default" > <div class="panel-body"> <h4>Filmovi</h4> <!-- Film List --> <hr/> <?php foreach($list as $row): ?> <div class="row text-left"> ...
ti100521/bioskop
application/views/page/filmovi.php
PHP
mit
4,648
<?php $lang = array( 'addons' => 'Add-ons', 'accessories' => 'Accessories', 'modules' => 'Modules', 'extensions' => 'Extensions', 'plugins' => 'Plugins', 'accessory' => 'Accessory', 'module' => 'Module', 'extension' => 'Extension', 'rte_tool' => 'Rich Text Editor...
cfox89/EE-Integration-to-API
system/expressionengine/language/english/addons_lang.php
PHP
mit
2,255
# ux - Micro Xylph ux は軽量でシンプルな動作を目標としたソフトウェアシンセサイザです。C# で作られており、Mono 上でも動作します。 ## 概要 ux は [Xylph](http://www.johokagekkan.go.jp/2011/u-20/xylph.html) (シルフ) の後継として開発されています。Xylph の開発で得られた最低限必要な機能を絞り、なおかつ Xylph よりも軽快に動作するよう設計されています。C# で記述しつつ、極力高速な動作が目標です。 ux は モノフォニック、複数パート、ポルタメント、ビブラートなどの機能を持ち、音源として矩形波、16 段三角波、ユーザ波...
nanase/ux
README.md
Markdown
mit
3,064
--- title: L.esri.Layers.TiledMapLayer layout: documentation.hbs --- # {{page.data.title}} Inherits from [`L.TileLayer`](http://leafletjs.com/reference.html#tilelayer) Access tiles from ArcGIS Online and ArcGIS Server as well as visualize and identify features. Is you have Feature Services published in ArcGIS Onlin...
ZhangDubhe/Tropical-Cyclone-Information-System
components/esri-leaflet/site/source/pages/api-reference/layers/tiled-map-layer.md
Markdown
mit
4,575
import time import multiprocessing from flask import Flask app = Flask(__name__) backProc = None def testFun(): print('Starting') while True: time.sleep(3) print('looping') time.sleep(3) print('3 Seconds Later') @app.route('/') def root(): return 'Started a background pr...
wikomega/wikodemo
test.py
Python
mit
1,073
package forscher.nocket.page.gen.ajax; import gengui.annotations.Eager; import java.io.Serializable; public class AjaxTargetUpdateTestInner implements Serializable { private String feld1; private String feld2; public String getEagerFeld1() { return feld1; } @Eager public void setEa...
Nocket/nocket
examples/java/forscher/nocket/page/gen/ajax/AjaxTargetUpdateTestInner.java
Java
mit
518
--- layout: single title: Vue와 Firebase로 모던웹사이트 만들기 43 파이어베이스 함수에서 권한 확인하기 category: vf tag: [vue,node,express,vuetify,firebase,vscode] comments: true sidebar: nav: "vf" toc: true toc_label: "목차" toc_icon: "list" --- 파이어베이스 함수(functions)에서 토큰을 확인하고 풀어헤친 토큰정보(claims)로 권한에 따른 결과를 보냅니다. # 영상 {% include video id="x6_Q...
fkkmemi/fkkmemi.github.io
_posts/2019-08-23-vf 043.md
Markdown
mit
489
''' Created by auto_sdk on 2014-12-17 17:22:51 ''' from top.api.base import RestApi class SubusersGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.user_nick = None def getapiname(self): return 'taobao.subusers.get'
CooperLuan/devops.notes
taobao/top/api/rest/SubusersGetRequest.py
Python
mit
303
var textDivTopIndex = -1; /** * Creates a div that contains a textfiled, a plus and a minus button * @param {String | undefined} textContent string to be added to the given new textField as value * @returns new div */ function createTextDiv( textContent ) { textDivTopIndex++; var newTextDiv = document.create...
amdor/skyscraper_fes
DOMBuilder/InputElementBuilder.js
JavaScript
mit
2,501
#pragma once #include "ofMain.h" #include "ofxOsc.h" #include "VHPtriggerArea.h" #include "ofxXmlSettings.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void keyPressed(int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, ...
alg-a/herm3TICa
exploracion pruebas y juegos/backgroundSubtraction/src/ofApp.h
C
mit
1,372
using System.Collections.Generic; using System.Text.Json.Serialization; namespace MtgApiManager.Lib.Dto.Set { internal class RootSetListDto : IMtgResponse { [JsonPropertyName("sets")] public List<SetDto> Sets { get; set; } } }
MagicTheGathering/mtg-sdk-dotnet
src/MtgApiManager.Lib/Dto/Set/RootSetListDto.cs
C#
mit
258
--- tags: perl layout: post title: "Chris, meet testing" --- <p>I need to start writing software as if it will be released to lots of people tomorrow :) Interestingly, the potential (up to 90% I'd say) release of OpenInteract has coincided with my first reading of Kent Beck's book <a href="http://www1.fatbrain.c...
cwinters/cwinters.github.io
_posts/2000-09-14-chris_meet_testing.md
Markdown
mit
2,190
# frozen_string_literal: true RSpec.describe Faraday::Response::RaiseError do let(:conn) do Faraday.new do |b| b.response :raise_error b.adapter :test do |stub| stub.get('ok') { [200, { 'Content-Type' => 'text/html' }, '<body></body>'] } stub.get('bad-request') { [400, { 'X-Reason' =>...
lostisland/faraday
spec/faraday/response/raise_error_spec.rb
Ruby
mit
7,602
class CreateBudgetsUsers < ActiveRecord::Migration def change create_table :budgets_users do |t| t.integer :user_id t.integer :budget_id t.timestamps end end end
FAMM/manatee
db/migrate/20140311222555_create_budgets_users.rb
Ruby
mit
193
package org.anodyneos.xp.tagext; import javax.servlet.jsp.el.ELException; import org.anodyneos.xp.XpContext; import org.anodyneos.xp.XpException; import org.anodyneos.xp.XpOutput; import org.xml.sax.SAXException; /** * @author jvas */ public interface XpTag { void doTag(XpOutput out) throws XpException, ELEx...
jvasileff/aos-xp
src.java/org/anodyneos/xp/tagext/XpTag.java
Java
mit
480
'use strict'; /** * Stripe library * * @module core/lib/c_l_stripe * @license MIT * @copyright 2016 Chris Turnbull <https://github.com/christurnbull> */ module.exports = function(app, db, lib) { return { /** * Donate */ donate: function(inObj, cb) { var number, expiry, cvc, currency; ...
christurnbull/MEANr-api
src/core/lib/c_l_stripePay.js
JavaScript
mit
2,158
using System; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Xunit; namespace MR.AspNetCore.Jobs.Server { public class InfiniteRetryProcessorTest { [Fact] public async Task Process_ThrowingProcessingCanceledException_Returns() { // Arr...
mrahhal/MR.AspNetCore.Jobs
test/MR.AspNetCore.Jobs.Tests/Server/InfiniteRetryProcessorTest.cs
C#
mit
891
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct _notify_raceboss_cry_msg_request_zocl { char wszCryMsg[10][65]; }; END_ATF_NAMESPACE
goodwinxp/Yorozuya
library/ATF/_notify_raceboss_cry_msg_request_zocl.hpp
C++
mit
284
/* artifact generator: C:\My\wizzi\v5\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\plugins\wizzi-core\src\ittf\root\legacy.js.ittf */ 'use strict'; module.exports = require('wizzi-legacy-v4');
wizzifactory/wizzi-core
legacy.js
JavaScript
mit
259
--- title: "Puppet" description: "Deregister Sensu clients from the client registry if they no longer have an associated Puppet node." version: 1.0 weight: 12 --- **ENTERPRISE: Built-in integrations are available for [Sensu Enterprise][1] users only.** # Puppet Integration - [Overview](#overview) - [Configuration]...
palourde/sensu-docs
docs/1.0/enterprise/integrations/puppet.md
Markdown
mit
4,504
#!/bin/env node 'use strict'; var winston = require('winston'), path = require('path'), mcapi = require('mailchimp-api'), Parser = require('./lib/parser'), ApiWrapper = require('./lib/api-wrapper'); var date = new Date(); date = date.toJSON().replace(/(-|:)/g, '.'); winston.remove(winston.transports.Con...
napcoder/sxla-mailchimp-importer
app.js
JavaScript
mit
959
+++ hook = "A list of the best podcasts that I'm listening to this year." published_at = 2016-08-28T01:13:48Z title = "Podcasts 2016" +++ After moving to the big city, I've spent a lot more time on foot over the past few years. I eventually picked up another habit that pairs with walking perfectly: podcasts. As of 20...
brandur/sorg
content/fragments/podcasts-2016.md
Markdown
mit
3,865
module.exports = { normalizeEntityName: function() {}, afterInstall: function() { this.addBowerPackageToProject('jsoneditor'); } };
jayphelps/ember-jsoneditor
blueprints/ember-jsoneditor/index.js
JavaScript
mit
143
# Wiper Wiper allows you to recursively delete specified folders. Say that you want to delete all 'obj' folders in a certain root folder. Type in 'obj' as the folder name to delete and select the root folder. Perform a dry run to list all folders that will be affected. Hit the delete button and you're done!
icerocker/Wiper
README.md
Markdown
mit
310
import AMD from '../../amd/src/amd.e6'; import Core from '../../core/src/core.e6'; import Event from '../../event/src/event.e6'; import Detect from '../../detect/src/detect.e6'; import Module from '../../modules/src/base.es6'; import ModulesApi from '../../modules/src/api.e6'; window.Moff = new Core(); window.Moff.amd...
kfuzaylov/moff
packages/loader/src/loader.e6.js
JavaScript
mit
477
<html><body> <h4>Windows 10 x64 (19042.610)</h4><br> <h2>_PNP_DEVICE_DELETE_TYPE</h2> <font face="arial"> QueryRemoveDevice = 0n0<br> CancelRemoveDevice = 0n1<br> RemoveDevice = 0n2<br> SurpriseRemoveDevice = 0n3<br> EjectDevice = 0n4<br> RemoveFailedDevice = 0n5<br> RemoveUnstartedFailedDe...
epikcraw/ggool
public/Windows 10 x64 (19042.610)/_PNP_DEVICE_DELETE_TYPE.html
HTML
mit
391
--- archive: tag layout: archive permalink: /tag/Simpsons/ tag: Simpsons title: Archive for Simpsons ---
goodevilgenius/pile
archives/tag-Simpsons.html
HTML
mit
106
# == Schema Information # # Table name: templates # # id :integer not null, primary key # name :string # image :string # description :text # created_at :datetime not null # updated_at :datetime not null # require 'rails_helper' RSpec.describe Template, type: :mod...
abarrak/card-mine-api
spec/models/template_spec.rb
Ruby
mit
561
namespace RapidFTP.Chilkat.Tests.Utilities { using System.Diagnostics; using RapidFTP.Models; using RapidFTP.Utilities; using Xunit; using Xunit.Extensions; public class UnixPathTest { [InlineData("/lv1", 1)] [InlineData("/lv1/lv2", 2)] [InlineData("/lv1/lv2/", 2)...
khoale/RapidFTP
src/RapidFTP.Chilkat.Tests/Utilities/UnixPathTest.cs
C#
mit
1,453
package org.real2space.neumann.evaris.core.structure; /** * Project Neumann * * @author RealTwo-Space * @version 0 * * created 2016/11/01 * added "extends Ring<F>" 2016/11/9 */ public interface Field<F> extends Ring<F> { /* * Multiply this member by an inverse of "other". */ public void d...
RealTwo-Space/Neumann
neumann/src/org/real2space/neumann/evaris/core/structure/Field.java
Java
mit
426
# coding: utf-8 import unittest from config_reader import ConfigReader class TestConfigReader(unittest.TestCase): def setUp(self): self.config = ConfigReader(""" <root> <person> <name>山田</name> <age>15</age> </person> ...
orangain/jenkins-docker-sample
tests.py
Python
mit
681
# project/server/tests/test_user.py import datetime import unittest from flask_login import current_user from base import BaseTestCase from project.server import bcrypt from project.server.models import User from project.server.user.forms import LoginForm class TestUserBlueprint(BaseTestCase): def test_correc...
realpython/flask-skeleton
{{cookiecutter.app_slug}}/project/tests/test_user.py
Python
mit
4,811
inside = lambda x, y: 4*x*x+y*y <= 100 def coll(sx, sy, dx, dy): m = 0 for p in range(32): m2 = m + 2**(-p) if inside(sx + dx * m2, sy + dy * m2): m = m2 return (sx + dx*m, sy + dy*m) def norm(x, y): l = (x*x + y*y)**0.5 return (x/l, y/l) sx, sy = 0, 10.1 dx, dy = 1.4, -19.7 for ...
jokkebk/euler
p144.py
Python
mit
538
# Git Back Control of Your Code ## A Simple and Straightforward Workflow for Working with Git and Github Becoming a better developer is about finding the process and workflow that works best for you and the rest of the team. I believe that version control is something all developers should use. Specifically, I think ...
brettchalupa/git-presentation
README.md
Markdown
mit
12,333
// // main.c // demo14 // // Created by weichen on 15/1/9. // Copyright (c) 2015年 weichen. All rights reserved. // #include <stdio.h> int main() { // 求输入的数的平均数,并输出大于平均数的数字 int x = 0; //输入的数 double num = 0; //总和(这个定义为double, 因为计算结果可能出现浮点数) int count = 0; //个数 double per; //平均数(结果...
farwish/Clang-foundation
demo14/demo14/main.c
C
mit
841
--- layout: default description: "你来到了没有知识的荒原 🙊" header-img: "img/404-bg.jpg" permalink: /404.html --- <!-- Page Header --> <header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')"> <div class="...
xuepro/xuepro.github.io
404.html
HTML
mit
702
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Plugwise implementation: energykit.plugwise &mdash;...
interactiveinstitute/watthappened
docs/_build/html/energykit.plugwise.html
HTML
mit
7,038
/** * Module dependencies */ const express = require('express'); const cluster = require('cluster'); const numCPUs = require('os').cpus().length; const compression = require('compression'); const helmet = require('helmet'); const hpp = require('hpp'); const config = require('./config'); const api = require('./api'); ...
pazguille/haysubte
index.js
JavaScript
mit
1,517
class UsersController < ApplicationController def new end def create user = User.new( email: params[:email], password: params[:password], password_confirmation: params[:password_confirmation]) if user.save session[:user_id] = user.id ...
acolletti21/braintree-store
app/controllers/users_controller.rb
Ruby
mit
504
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
victorwon/SwiftBus
Example/Pods/Target Support Files/Pods-SwiftBus Watch Example Extension/Pods-SwiftBus Watch Example Extension-frameworks.sh
Shell
mit
3,785
<div id="top" class="container-fluid"> <div class="navbar navbar-default navbar-fixed-top" style="border-bottom: 1px solid #666 !important;"> <h1 class="homeTitle pull-left">Books Library</h1> <a href="#/#/top" title="Top" class="btn btn-primary page-scroll home glyphicon glyphicon-plane pull-right"></a> </div> ...
nitinjhamtani/Reedsy-Angular-SPA
app/partials/book-list.html
HTML
mit
3,054
#include <vector> #include <iostream> struct point { double x; double y; }; int main() { // Generate a lot of uniformly distributed 2d points in the range -1,-1 to +1,+1. enum { numXSamples = 10000 }; enum { numYSamples = 10000 }; std::vector<point> points; points.reserve(numXSamples * numYSamples); for(int x...
EOSIO/eos
libraries/wasm-jit/Test/Benchmark/Benchmark.cpp
C++
mit
944
#!/usr/bin/env bash # Copyright (c) 2016 Ericsson AB # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, me...
PatrikAAberg/dmce
dmce-remove-relpaths.sh
Shell
mit
1,477
// // RBViewController.h // Pods // // Created by Param Aggarwal on 01/02/15. // // #import <UIKit/UIKit.h> #import "RBViewControllerModel.h" @interface RBViewController : UIViewController + (instancetype)create:(RBViewControllerModel *)model; - (void)update:(RBViewControllerModel *)model; - (void)updateChildren:...
paramaggarwal/Rubber
Classes/Components/ViewController/RBViewController.h
C
mit
358