repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
xzrunner/easyeditor
coceditor/src/coceditor/ToolbarPanel.cpp
785
#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...
mit
psmacchia/NDepend.Path
NDepend.Path.Tests/DirForTest.cs
3806
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 ...
mit
alskjstl/hilojack.github.io
_posts/2013-2-3-php-file.md
8412
--- 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...
mit
xli/ewall
lib/grid/row.rb
746
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 ...
mit
alcemirsantos/algorithms-py
tests/data_stuctures/test_mockdata.py
400
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...
mit
changsanjiang/SJDBMap
SJDBMapProject/Model/Person.h
1103
// // 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...
mit
mathemage/CompetitiveProgramming
codeforces/div3/1296/B/B.cpp
1574
/* ======================================== * 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...
mit
agensdev/wardrobe
lib/wardrobe/plugins/validation/refinements/nil_class.rb
315
# 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
mit
tobiajo/fish-p2p
README.md
84
# fish-p2p FISH: FIle SHaring, a Distributed File System - Decentralised P2P system
mit
jsantell/poet
docs/public/index.html
14428
<!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...
mit
nkoech/trialscompendium
trialscompendium/trials/api/treatment/filters.py
934
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...
mit
qubed-inc/qubed-io
src/Main/index.js
466
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...
mit
paully21/SendGridWebHookExample
Website/Properties/AssemblyInfo.cs
1401
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...
mit
GoC-Spending/data-corporations
html/123456204733.html
39817
<!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...
mit
easyui/SwiftMan
SwiftMan/SwiftMan.h
641
// // 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...
mit
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/examples/usbd_rom/usbd_rom_hid_keyboard/hid_keyboard.c
7219
/* * @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...
mit
NevadaCountyHackers/hackers-web-app
public/dist/app.js
1912
'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...
mit
javisaurusrex/zookillsoccer
modules/js/StaticText.js
305
/** * 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; } }
mit
franzbischoff/steamworks4j
build-natives/build-win.bat
631
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...
mit
piterlin/piterlin.github.io
doc/spring4.3.3-docs/javadoc-api/org/springframework/oxm/xmlbeans/package-tree.html
6315
<!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...
mit
vincentchalamon/core
tests/Metadata/Property/Factory/CachedPropertyNameCollectionFactoryTest.php
5079
<?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...
mit
lrt/lrt
vendor/behat/mink/tests/Behat/Mink/SessionTest.php
3095
<?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...
mit
coneycode/cmsForMePad
Application/DuxCms/Model/FieldDataModel.class.php
8135
<?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...
mit
adamgoose/ghost-blog
README.md
593
# 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 /...
mit
LeeYiFang/Carkinos
src/Carkinos/wsgi.py
393
""" 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...
mit
jonwhuang/phase-0
week-4/smallest-integer/my_solution.rb
753
# 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...
mit
teonimesic/language_switcher
spec/language_switcher_spec.rb
682
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...
mit
Landish/react-spectre-css
src/components/TileAction/TileAction.js
489
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. *...
mit
Tigrov/yii2-country
src/CityTranslation.php
473
<?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...
mit
mvasilchuk/webproxy
src/main/java/com/mvas/webproxy/portals/StalkerRequestHandler.java
9322
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...
mit
senordavis/drawings
templates/contact.html
741
<!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 ...
mit
archimatetool/archi
com.archimatetool.editor/src/com/archimatetool/editor/actions/CheckForNewVersionAction.java
4513
/** * 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...
mit
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.BackOffice.Silverlight.Data/Depots/DepotPieceJointe.cs
5620
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...
mit
mooja/ssip3
app/members/views.py
4530
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...
mit
puncha/java-petclinic
src/main/webapp/resources/ng2/app/footer/footer.component.ts
177
import {Component} from "@angular/core"; @Component({ moduleId: module.id, selector: 'ptc-footer', templateUrl: 'footer.component.html' }) export class FooterComponent{ }
mit
yogeshsaroya/new-cdnjs
ajax/libs/semantic-ui/1.11.3/components/image.css
129
version https://git-lfs.github.com/spec/v1 oid sha256:8ecad6ce4ab24b16dd86e293b01f4b3d0ea62911d34288c6c78a9e6fe6b7da46 size 4972
mit
TimeToogo/Pinq
Source/Iterators/Generators/IIteratorAdapter.php
671
<?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 */ ...
mit
wateret/coreclr
src/jit/codegenarmarch.cpp
135282
// 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...
mit
daniel-rodas/wsj
fuel/app/views/angular/navigation.php
2375
<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="...
mit
tastott/AnalyzeThis
src/AnalyzeThis/RegexExtensions.cs
541
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) ...
mit
awto/effectfuljs
packages/core/test/samples/for-of-stmt/closures-in.js
4231
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...
mit
neimheadh/code-manipulation-bundle
Model/File/FileInterface.php
2489
<?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...
mit
pdhodgkinson/AWSCloudFormationTemplateReference-dash-docset
AWS_CloudFormation_Template_Reference.docset/Contents/Resources/Documents/aws-resource-route53-hostedzone.html
14906
<!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...
mit
haftommit/FPP.github.io
FPPSecondProject/src/week1lesson2/Q2.java
545
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 == ...
mit
whole-tale/wt-design-docs
development/meetings/2020-02-24.md
3620
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...
mit
matudelatower/BigD
src/BigD/UbicacionBundle/Form/EventListener/AddCityFieldSubscriber.php
3120
<?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...
mit
RiddleMan/giant-privacy-spy
client/webpack.config.js
1796
/* * 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...
mit
joseAyudarte91/aterbe_web_project
js/commons/activateCurrentLink.js
1381
// 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...
mit
jamesgifford/perfectlydopey
gulpfile.js
1236
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...
mit
techvision/brails
spec/models/user_spec.rb
661
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)...
mit
RanaRunning/rana
web/src/components/MapGL/utils/style-utils.js
480
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...
mit
codenautas/pruebas_de_concepto
milestones/milestones.html
186
<!doctype html> <html> <head> </head> <body> <h1>Milestones - Codenautas</h1> <div id=milestones></div> <script src=milestones.js></script> </body> </html>
mit
rlviana/pricegrabber-app
pricegrabber-model/src/test/java/net/rlviana/pricegrabber/model/entity/common/CurrencyTest.java
1712
/* * 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...
mit
Azure/azure-sdk-for-go
services/machinelearningservices/mgmt/2021-04-01/machinelearningservices/enums.go
32878
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...
mit
sputnik-maps/maps-express
src/utfgrid_encode.cpp
4103
#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...
mit
MoodCat/MoodCat.me-Core
src/main/java/me/moodcat/api/Mood.java
3192
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...
mit
ti100521/bioskop
application/views/page/filmovi.php
4648
<!-- 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"> ...
mit
cfox89/EE-Integration-to-API
system/expressionengine/language/english/addons_lang.php
2255
<?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...
mit
nanase/ux
README.md
3064
# ux - Micro Xylph ux は軽量でシンプルな動作を目標としたソフトウェアシンセサイザです。C# で作られており、Mono 上でも動作します。 ## 概要 ux は [Xylph](http://www.johokagekkan.go.jp/2011/u-20/xylph.html) (シルフ) の後継として開発されています。Xylph の開発で得られた最低限必要な機能を絞り、なおかつ Xylph よりも軽快に動作するよう設計されています。C# で記述しつつ、極力高速な動作が目標です。 ux は モノフォニック、複数パート、ポルタメント、ビブラートなどの機能を持ち、音源として矩形波、16 段三角波、ユーザ波...
mit
ZhangDubhe/Tropical-Cyclone-Information-System
components/esri-leaflet/site/source/pages/api-reference/layers/tiled-map-layer.md
4575
--- 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...
mit
wikomega/wikodemo
test.py
1073
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...
mit
Nocket/nocket
examples/java/forscher/nocket/page/gen/ajax/AjaxTargetUpdateTestInner.java
518
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...
mit
fkkmemi/fkkmemi.github.io
_posts/2019-08-23-vf 043.md
489
--- 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...
mit
CooperLuan/devops.notes
taobao/top/api/rest/SubusersGetRequest.py
303
''' 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'
mit
amdor/skyscraper_fes
DOMBuilder/InputElementBuilder.js
2501
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...
mit
alg-a/herm3TICa
exploracion pruebas y juegos/backgroundSubtraction/src/ofApp.h
1372
#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, ...
mit
MagicTheGathering/mtg-sdk-dotnet
src/MtgApiManager.Lib/Dto/Set/RootSetListDto.cs
258
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; } } }
mit
cwinters/cwinters.github.io
_posts/2000-09-14-chris_meet_testing.md
2190
--- 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...
mit
lostisland/faraday
spec/faraday/response/raise_error_spec.rb
7602
# 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' =>...
mit
FAMM/manatee
db/migrate/20140311222555_create_budgets_users.rb
193
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
mit
jvasileff/aos-xp
src.java/org/anodyneos/xp/tagext/XpTag.java
480
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...
mit
christurnbull/MEANr-api
src/core/lib/c_l_stripePay.js
2158
'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; ...
mit
mrahhal/MR.AspNetCore.Jobs
test/MR.AspNetCore.Jobs.Tests/Server/InfiniteRetryProcessorTest.cs
891
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...
mit
goodwinxp/Yorozuya
library/ATF/_notify_raceboss_cry_msg_request_zocl.hpp
284
// 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
mit
wizzifactory/wizzi-core
legacy.js
259
/* 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');
mit
palourde/sensu-docs
docs/1.0/enterprise/integrations/puppet.md
4504
--- 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]...
mit
napcoder/sxla-mailchimp-importer
app.js
959
#!/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...
mit
brandur/sorg
content/fragments/podcasts-2016.md
3865
+++ 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...
mit
jayphelps/ember-jsoneditor
blueprints/ember-jsoneditor/index.js
143
module.exports = { normalizeEntityName: function() {}, afterInstall: function() { this.addBowerPackageToProject('jsoneditor'); } };
mit
icerocker/Wiper
README.md
310
# 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!
mit
kfuzaylov/moff
packages/loader/src/loader.e6.js
477
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...
mit
epikcraw/ggool
public/Windows 10 x64 (19042.610)/_PNP_DEVICE_DELETE_TYPE.html
391
<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...
mit
goodevilgenius/pile
archives/tag-Simpsons.html
106
--- archive: tag layout: archive permalink: /tag/Simpsons/ tag: Simpsons title: Archive for Simpsons ---
mit
abarrak/card-mine-api
spec/models/template_spec.rb
561
# == 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...
mit
khoale/RapidFTP
src/RapidFTP.Chilkat.Tests/Utilities/UnixPathTest.cs
1453
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)...
mit
RealTwo-Space/Neumann
neumann/src/org/real2space/neumann/evaris/core/structure/Field.java
426
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...
mit
orangain/jenkins-docker-sample
tests.py
681
# 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> ...
mit
realpython/flask-skeleton
{{cookiecutter.app_slug}}/project/tests/test_user.py
4811
# 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...
mit
jokkebk/euler
p144.py
538
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 ...
mit
brettchalupa/git-presentation
README.md
12333
# 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 ...
mit
farwish/Clang-foundation
demo14/demo14/main.c
841
// // 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; //平均数(结果...
mit
xuepro/xuepro.github.io
404.html
702
--- 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="...
mit
interactiveinstitute/watthappened
docs/_build/html/energykit.plugwise.html
7038
<!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;...
mit
pazguille/haysubte
index.js
1517
/** * 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'); ...
mit
acolletti21/braintree-store
app/controllers/users_controller.rb
504
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 ...
mit
victorwon/SwiftBus
Example/Pods/Target Support Files/Pods-SwiftBus Watch Example Extension/Pods-SwiftBus Watch Example Extension-frameworks.sh
3785
#!/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...
mit
nitinjhamtani/Reedsy-Angular-SPA
app/partials/book-list.html
3054
<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> ...
mit
EOSIO/eos
libraries/wasm-jit/Test/Benchmark/Benchmark.cpp
944
#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...
mit
PatrikAAberg/dmce
dmce-remove-relpaths.sh
1477
#!/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...
mit
paramaggarwal/Rubber
Classes/Components/ViewController/RBViewController.h
358
// // 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:...
mit