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
/** * at test * @authors yanjixiong * @date 2016-10-11 11:02:10 */ const should = require('should') const at = require('../../common/at') describe('test/common/at.test.js', function() { describe('fetchUsers()', function() { it('should return a names array', function(done) { const names = at.fetchUs...
luoyjx/gaoqi-blog
test/common/at.test.js
JavaScript
mit
610
/* RequiredLibraries: pcre */ /* RequiredWindowsLibraries: libpcre */ #include "module.h" #include <pcre.h> class PCRERegex : public Regex { pcre *regex; public: PCRERegex(const Anope::string &expr) : Regex(expr) { const char *error; int erroffset; this->regex = pcre_compile(expr.c_str(), PCRE_CASELESS, &e...
nmaggioni/SnapIRC
anope-src/modules/extra/m_regex_pcre.cpp
C++
mit
1,212
<?php class m141005_205510_auth_PpxtPersonXType extends CDbMigration { public function up() { $this->execute(" INSERT INTO `AuthItem` (`name`, `type`, `description`, `bizrule`, `data`) VALUES('D2person.PpxtPersonXType.*','0','D2person.PpxtPersonXType',NULL,'N;'); INSERT INTO `...
DBRisinajumi/d2person
migrations/m141005_205510_auth_PpxtPersonXType.php
PHP
mit
2,526
Parameters ---------- Parameters entity encapsulates all parameters required for grid. Default implementation receives parameters from Request object. #### Class Description * **Datagrid / ParametersInterface** - basic interface for Parameters entity; * **Datagrid / RequestParameters** - Parameters interface impleme...
umpirsky/platform
src/Oro/Bundle/GridBundle/Resources/doc/reference/backend/parameters.md
Markdown
mit
490
package Amazon::S3::Bucket; use strict; use warnings; use Carp; use File::stat; use base qw(Class::Accessor::Fast); __PACKAGE__->mk_accessors(qw(bucket creation_date account)); sub new { my $class = shift; my $self = $class->SUPER::new(@_); croak "no bucket" unless $self->bucket; croak "no account" u...
sharkhack/AmazonS3
PERL/Amazon/S3/Bucket.pm
Perl
mit
11,958
global.add = function(){ return 20; }
BenHuiHui/React-Native-OSX
Experimental/packager/osx/osx-webpack/osx-webpack/test.js
JavaScript
mit
41
#ifndef SFUI_APPWINDOW_H #define SFUI_APPWINDOW_H //////////////////////////////////////////////////////////// // // MIT License // // Copyright(c) 2017 Kurt Slagle - kurt_slagle@yahoo.com // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentati...
JayhawkZombie/SFUI
SFUI/Include/Application/AppWindow.h
C
mit
3,524
</main><!-- End content --> <footer id="footer"> <div class="container"> <div class="row"> <div class="col"> <div class="copyright">© Blog, 2017</div> </div> </div> </div> </fo...
palval/blog
admin/view/footer.php
PHP
mit
2,778
'use strict'; /* 1. Переместите 0 в конец массива, остальные числа должны остаться неизменными .сoncat(); example: [1,false,2,0,3,null,0,4,0,25] => [1, false, 2, 3, null, 4, 25, 0, 0, 0] [ 'a', 0, 0, 'b', null, 'c', 'd', 0, 1, false, 0, 1, 0, 3, [], 0, 1, 9, 0, 0, {}, 0, 0, 9 ] => ["a","b",null,"c","d",1,false,1...
OkYesAnap/JSEasyCodeHomeWorks
Lesson5/src/main.js
JavaScript
mit
4,108
<?php namespace Rmc\Car\PostBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction() { return $this->render('RmcCarPostBundle:Default:index.html.twig'); } }
jignesh-russmediatech/rmcdemo
src/Rmc/Car/PostBundle/Controller/DefaultController.php
PHP
mit
275
package lykrast.eirinislegacy.common.block; import java.util.List; import java.util.Random; import com.google.common.collect.ImmutableSet; import lykrast.eirinislegacy.common.init.ModItems; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProp...
Lykrast/EirinisLegacy
src/main/java/lykrast/eirinislegacy/common/block/BlockPetramiteDecoration.java
Java
mit
3,012
/* ** File: utf_cfe_psp_eeprom.c ** $Id: utf_cfe_psp_eeprom.c 1.5 2012/01/13 12:51:57GMT-05:00 acudmore Exp $ ** ** Copyright (c) 2004-2012, United States government as represented by the ** administrator of the National Aeronautics Space Administration. ** All rights reserved. This software(cFE) was...
CACTUS-Mission/TRAPSat
TRAPSat_cFS/cfs/cfe/tools/utf/src/utf_cfe_psp_eeprom.c
C
mit
6,224
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 2012 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ #ifndef _DB_CXX_H_ #define _DB_CXX_H_ // // C++ assumptions: // // To ensure portability to many platforms, both new and old, we make // few assumptions about th...
EvilMcJerkface/jessy
lib/berkeleydb_core/include/db_cxx.h
C
mit
49,028
<?php // ::menu-left.html.twig return array ( );
OVGS/backoffice
app/cache/dev/assetic/config/7/7372dcfe0e21249a0e6a08b12c1db568.php
PHP
mit
50
<?php namespace Office; use Presenter_Oldenroll; use Model_Claims; use Model_Checks; //use Model_Ebcard; use DB; class View_Ebcard_Daily extends Presenter_Oldenroll { function build_page() { } function view() { } }
slyxster/sabc
fuel/app/modules/office/classes/view/ebcard/daily.php
PHP
mit
236
import { Link, Text, LinkProps, useThemeConfig, TextVariant, } from "@artsy/palette" import { Details_artwork } from "v2/__generated__/Details_artwork.graphql" import * as React from "react"; import { createFragmentContainer, graphql } from "react-relay" interface DetailsProps { artwork: Details_artwork ...
artsy/force-public
src/v2/Components/Artwork/Details.tsx
TypeScript
mit
5,570
module NewEden module Eve EVE_ENDPOINTS = %w{ AllianceList CertificateTree ConquerableStationList ErrorList FacWarStats FacWarTopStats RefTypes SkillTree } EVE_ENDPOINTS.each do |endpoint| module_eval <<-RUBY def eve_#{endpoint.underscore} request("/eve/#{endpoint}.xml.aspx") ...
ealdent/neweden
lib/neweden/eve.rb
Ruby
mit
792
var searchData= [ ['thread_2eh',['thread.h',['../sys_2thread_8h.html',1,'(Global Namespace)'],['../lv2_2thread_8h.html',1,'(Global Namespace)']]], ['tty_2eh',['tty.h',['../tty_8h.html',1,'']]] ];
ps3dev/PSL1GHT
docs/search/files_f.js
JavaScript
mit
200
<?php /* * This file is part of the phlexible package. * * (c) Stephan Wentz <sw@brainbits.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Phlexible\Bundle\SiterootBundle\Entity; use Doctrine\Common\Collections\Ar...
temp/phlexible
src/Phlexible/Bundle/SiterootBundle/Entity/Siteroot.php
PHP
mit
9,454
/* (Business: check ISBN-10) An ISBN-10 (International Standard Book Number) consists of 10 digits: d1d2d3d4d5d6d7d8d9d10. The last digit, d10, is a checksum, which is calculated from the other nine digits using the following formula: (d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9) % 11...
jsquared21/Intro-to-Java-Programming
Exercise_03/Exercise_03_09/Exercise_03_09.java
Java
mit
1,849
require 'test_helper' class ForumServiceTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, ForumService end end
gialib/forum-service
test/forum_service_test.rb
Ruby
mit
140
<?xml version="1.0" encoding="iso-8859-1"?> <!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" xml:lang="en" lang="en"> <head> <title>File: 20090813164137_create_contributors.rb</title> <met...
jeffp/wizardly-examples
rdoc/files/db/migrate/20090813164137_create_contributors_rb.html
HTML
mit
2,084
--- title: Send category: send mailchimp: true description: Upload a list and schedule your email. order: 5 ---
fordhamumc/email-docs
src/send.html
HTML
mit
112
using System; namespace GoldenFox.Internal.Constraints { public class From : IConstraint { private readonly DateTime _from; public From(DateTime from) { _from = @from; } public ConstraintResult Contains(DateTime dateTime) { var passed =...
mattiasnordqvist/Golden-Fox
GoldenFox/Internal/Constraints/From.cs
C#
mit
474
#ifndef UTILS_H #define UTILS_H #include <algorithm> #include <functional> #include <cctype> #include <locale> namespace renderlib{ // A macro to disallow the copy constructor and operator= functions // This should be used in the private: declarations for a class #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ TypeNa...
kristofe/VolumeRenderer
renderlib/include/utils.h
C
mit
993
using System; using System.Collections.Generic; using System.Text; namespace TravellingSalesman { public class Point { public double X { get { return Coordinate[ 0 ]; } set { Coordinate[ 0 ] = value; } } public double Y { get { return Coordinate[ ...
Lounarok/TravelingSalesmanInCSharp
TravellingSalesman/Point.cs
C#
mit
2,863
## 属性描述符 属性分为数据属性和访问器属性。 数据属性、访问器属性属性描述符共有的键: - configurable: default false。可配置性。当其为true时,该属性的属性描述符才能修改,同时该属性可以用delete从对象上删除 - enumerable: default true(***MDN误***)。可枚举性。当其为true时,表示该属性可以出现在for...in循环以及Object.keys(obj)里 数据属性的属性描述符独有的键: - value: default undefined。该属性对应的值,可以是任何javascript有效值(数值,对象,函数等)。 - writable: defa...
wangyichen1064431086/workNote
tipsForTech/JavaScript/62.(12月已复习)属性描述符.md
Markdown
mit
2,035
> 本文最初发表于[博客园](),并在[GitHub](https://github.com/qianguyihao/Web)上持续更新**前端的系列文章**。欢迎在GitHub上关注我,一起入门和进阶前端。 > 以下是正文。 ## 前言 jQuery提供的一组网页中常见的动画效果,这些动画是标准的、有规律的效果;同时还提供给我们了自定义动画的功能。 ## 显示动画 方式一: ```javascript $("div").show(); ``` 解释:无参数,表示让指定的元素直接显示出来。其实这个方法的底层就是通过`display: block;`实现的。 方式二: ```javascript $("div...
ilao5/ilao5.github.io
customs/note/webstudy/_book/04-JavaScript基础/52-jQuery动画详解.md
Markdown
mit
15,204
// ƒwƒbƒ_ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh #include <tchar.h> // TCHARŒ^ #include <stdio.h> // •W€“üo—Í #include <winsock2.h> // Windowsƒ\ƒPƒbƒg #include <windows.h> // •W€WindowsAPI // _tmainŠÖ”‚Ì’è‹` int _tmain(int argc, TCHAR *argv[]){ // mainŠÖ”‚ÌTCHAR”Å. // •ϐ”‚̐錾 WSADATA wsaData; // WinSock‚̏‰Šú‰»‚É•K—v‚ÈWSA...
bg1bgst333/Sample
winapi/htons/htons/src/htons/htons/htons.cpp
C++
mit
1,664
from flask import (Flask, session, render_template, request, redirect, url_for, make_response, Blueprint, current_app) import requests import json from datetime import datetime, timedelta from flask.ext.cors import CORS, cross_origin bp = Blueprint('audioTag', __name__) def create_app(blueprint=bp...
janastu/audio-tagger
servers/audioApp.py
Python
mit
3,589
/* * grunt-pip * https://github.com/davidshrader/grunt-pip * * Copyright (c) 2014 david.shrader * Licensed under the MIT license. */ module.exports = function(grunt) { 'use strict'; //var exec = require('exec'); var exec = require('child_process').exec; // Please see the Grunt documentation for more in...
dshrader38/grunt-pip
tasks/pip.js
JavaScript
mit
2,524
import Data.Tree import Data.Tree.Zipper import Data.Maybe import Test.QuickCheck import System.Random import Text.Show.Functions instance Arbitrary a => Arbitrary (Tree a) where arbitrary = sized arbTree where arbTree n = do lbl <- arbitrary children <- resize (n-1) arbitra...
yav/haskell-zipper
test.hs
Haskell
mit
6,455
'use strict'; const writeFile = require('../index'); const chai = require('chai'); const expect = chai.expect; const rimraf = require('rimraf'); const root = process.cwd(); const fs = require('fs'); const broccoli = require('broccoli'); let builder; chai.Assertion.addMethod('sameStatAs', function(otherStat) { thi...
rwjblue/broccoli-file-creator
tests/index.js
JavaScript
mit
2,836
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Samples Pack (ogl-samples.g-truc.net) /// /// Copyright (c) 2004 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associate...
spetz911/almaty3d
tests/gl-440-fbo-without-attachment.cpp
C++
mit
14,656
package redis.clients.util; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Sharded<R, S extends Sh...
yapei123/jedis
src/main/java/redis/clients/util/Sharded.java
Java
mit
3,350
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Entrar</div> <div class="panel-body"> <form class="form-h...
LaysCR/Sistema-de-Emprestimo-de-Livros
resources/views/auth/login.blade.php
PHP
mit
3,052
module W00tify module ActionViewExtensions # This module includes twitter-related support # # Example: # # link_to_email 'email' # module CommonHelper # TODO: handle block def link_to_email(item, *args, &block) options = args.extract_options! handle = item &&...
tardate/w00tify
lib/w00tify/common/common_helper.rb
Ruby
mit
1,419
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("Cl...
cliftonm/clifton
Clifton.Web/Clifton.WebSocketService/Properties/AssemblyInfo.cs
C#
mit
1,442
<!DOCTYPE html> <html lang="en" ng-app="app"> <head> <meta charset="UTF-8" /> <title>Boilerplate</title> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <link href="/favicon.ico" type="image/x-icon" rel="icon" /> <link href="/favicon.ico" type="image/x-ic...
Mistermoz/Angular-Parse-Restangular
index.html
HTML
mit
889
/** * 邮件通知 */ const config = require('../config').email const nodemailer = require('nodemailer') let smtpTransport = null module.exports = { send(tip, title, message) { if (!smtpTransport) { smtpTransport = nodemailer.createTransport({ pool:true, service:config.service, auth:{ ...
JQKid/3aClient
resources/app/notify/email.js
JavaScript
mit
763
# NADA Simple gem for interacting with NADA's web services. This gem is under active development and is likely to change completely. ## Installation Add this line to your application's Gemfile: gem 'nada' And then execute: $ bundle Or install it yourself as: $ gem install nada ## Usage TODO: Write...
elchingon/nada
README.md
Markdown
mit
810
/* header created automatically with -DGEN_TREES_H */ // * [# filter:thirdparty\zlib #] local const ct_data static_ltree[L_CODES+2] = { {{ 12},{ 8}}, {{140},{ 8}}, {{ 76},{ 8}}, {{204},{ 8}}, {{ 44},{ 8}}, {{172},{ 8}}, {{108},{ 8}}, {{236},{ 8}}, {{ 28},{ 8}}, {{156},{ 8}}, {{ 92},{ 8}}, {{220},{ 8}}, {{ ...
InfernoEngine/engine
dev/src/base/memory/src/thirdparty/zlib/trees.h
C
mit
8,478
// Creates a hot reloading development environment const path = require('path'); const express = require('express'); const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); const DashboardPlugin = require('webpa...
InvertedX/Dose-Host-Manager
dev-server.js
JavaScript
mit
1,535
<div class="jumbotron section-header" > <div class="container" > <h1>Services</h1> <p> The SNHC provides two services: a basic care-focused clinic on Saturday mornings and a specialty-care clinic Wednesday evenings.</p> </div> </div> <div ng-controller="DateListCtrl" class="container"> <h1>Upcoming Clini...
SaturdayNeighborhoodHealthClinic/snhc-web
app/partials/services.html
HTML
mit
2,786
/****************************************/ /* Level One - Concatenation Exercises */ /****************************************/ /* Return a string that will add a "Hello" string in front of the name ie: sayHello("Jesse") => Hello Jesse sayHello("Mat") => Hello Mat */ function sayHello(name) { ...
jwang1919/jsExercises-April5-2016
level-one.js
JavaScript
mit
1,498
<?php /** * OUTRAGEbot - PHP 5.3 based IRC bot * * Author: Jannis Pohl <mave1337@gmail.com> * * Version: 2.0.0-Alpha * Git commit: 0638fa8bb13e1aca64885a4be9e6b7d78aab0af7 * Committed at: Wed Aug 24 23:16:56 BST 2011 * * Licence: http://www.typefish.co.uk/licences/ */ class RSS extends Script ...
Zarthus/zcnr-bot
Scripts/RSS/Default.php
PHP
mit
5,266
/** * This code was auto-generated by a tool. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.test.framework.datafactory; import java.util.List; import java.util.ArrayList; import com.mozu.api.ApiException; import ...
eileenzhuang1/mozu-java
mozu-java-test/src/main/java/com/mozu/test/framework/datafactory/AdminUserFactory.java
Java
mit
2,965
package fpinscala.localeffects import fpinscala.monads._ import scala.collection.mutable object Mutable { def quicksort(xs: List[Int]): List[Int] = if (xs.isEmpty) xs else { val arr = xs.toArray def swap(x: Int, y: Int) = { val tmp = arr(x) arr(x) = arr(y) arr(y) = tmp ...
goboss/fpinscala
exercises/src/main/scala/fpinscala/localeffects/LocalEffects.scala
Scala
mit
5,415
var net = require('net'); var client = net.connect(4444, '192.168.99.100'); client.setEncoding('utf8'); setInterval(function() { console.log("sending...") var msg = Math.floor(Math.random()*10000); client.write('send mytopic 123 bajs'+msg+'\n'); }, 250) client.on('data', function(data) { console.log('data wa...
mpj/boiler-bay
client-produce.js
JavaScript
mit
333
#include "clean_type.hpp" #include <type_traits> namespace { typedef int const& T1; typedef int T2; static_assert(!std::is_same<T1, T2>::value, "Should be the same"); };
mirandaconrado/compile-utils
src/clean_type.cpp
C++
mit
178
<?php $this->db->select('username, email'); $this->db->from('user'); $this->db->where('username', 'test'); $query = $this->db->get(); foreach ($query->result() as $row) { echo $row->username; echo '<br />'; echo $row->email; echo '<br />'; } echo '<hr />'; var_dump(session_destroy());
mikkt/spinat
application/views/pages/test.php
PHP
mit
312
/* ********************************************************************************************************* * uC/CPU * CPU CONFIGURATION & PORT LAYER * * (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL * * ...
Michel-GPescie/uCOS_stm32
os/ucos/cpu/ARM-Cortex-M4/cpu.h
C
mit
40,806
import Template7Context from './context'; const Template7Utils = { quoteSingleRexExp: new RegExp('\'', 'g'), quoteDoubleRexExp: new RegExp('"', 'g'), isFunction(func) { return typeof func === 'function'; }, escape(string = '') { return string .replace(/&/g, '&amp;') .replace(/</g, '&lt;')...
nolimits4web/Template7
src/utils.js
JavaScript
mit
10,591
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ number = 0 for i in range(len(s)): number = number * 26 + ord(s[i]) - ord('A') + 1 return number
FeiZhan/Algo-Collection
answers/leetcode/Excel Sheet Column Number/Excel Sheet Column Number.py
Python
mit
255
cd C:\wamp64\www\frenchtech php bin/console cache:clear --no-warmup
paoudom/frenchtech2
cacheclear.bat
Batchfile
mit
67
package com.wavesplatform.features sealed trait BlockchainFeatureStatus object BlockchainFeatureStatus { case object Undefined extends BlockchainFeatureStatus case object Approved extends BlockchainFeatureStatus case object Activated extends BlockchainFeatureStatus def promote(status: BlockchainFeatureStatu...
wavesplatform/Waves
node/src/main/scala/com/wavesplatform/features/BlockchainFeatureStatus.scala
Scala
mit
484
const _evaluate = function(stateData) { if(stateData.fireKey) return "Yellow" }; module.exports = function(Anystate) { Anystate.prototype._evaluate = _evaluate }
tinnguyenhuuletrong/fsm
test/codeBase-js/fsm.color/tmp/Anystate.evaluate.js
JavaScript
mit
168
// Description: Html Agility Pack - HTML Parsers, selectors, traversors, manupulators. // Website & Documentation: http://html-agility-pack.net // Forum & Issues: https://github.com/zzzprojects/html-agility-pack // License: https://github.com/zzzprojects/html-agility-pack/blob/master/LICENSE // More projects: http://w...
zzzprojects/html-agility-pack
src/HtmlAgilityPack.Shared/HtmlNodeNavigator.cs
C#
mit
26,968
--- layout: default title: OpenCL matrix-multiplication SGEMM tutorial current: 5 tutorial_page: 9 --- <h2>Kernel 7: Wider loads with register blocking</h2> In one of our earlier kernels we used wider data-types to get 64-bit or 128-bit loads and stores. Let's re-integrate that in our latest version with 2D register ...
CNugteren/cnugteren.github.io
tutorial/pages/page9.html
HTML
mit
6,174
<?php namespace RectorPrefix20210615; if (\class_exists('Tx_Extbase_Property_Exception_InvalidFormatException')) { return; } class Tx_Extbase_Property_Exception_InvalidFormatException { } \class_alias('Tx_Extbase_Property_Exception_InvalidFormatException', 'Tx_Extbase_Property_Exception_InvalidFormatException', \...
RectorPHP/Rector
vendor/ssch/typo3-rector/stubs/Tx_Extbase_Property_Exception_InvalidFormatException.php
PHP
mit
328
# Test for handling incoming ICMP messages ## Status | Num | Abbrev. | Description | Status |:-----:|:---------:|:--------------------------|:-----------------: 0 |echorep |Echo reply |:white_check_mark: 3 |unreach |Destination unreachable | 4 |squench |Packet loss, slow down ...
shivrai/TCP-IP-Regression-TestSuite
icmp/README.md
Markdown
mit
3,973
#!/usr/bin/env node var fs = require("fs"); var path = require("path"); var optimist = require("optimist"); var argv = optimist.argv; var to_center = [-119.95388, 37.913055]; var FILE_IN = path.resolve(argv._[0]); var FILE_OUT = path.resolve(argv._[1]); var geojson = JSON.parse(fs.readFileSync(FILE_IN)); var get_...
opendatacity/fire
bin/move.js
JavaScript
mit
1,640
/* hinclude.js -- HTML Includes (version 0.9) Copyright (c) 2005-2011 Mark Nottingham <mnot@mnot.net> 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 limita...
catchamonkey/chris.sedlmayr.co.uk
src/Sedlmayr/Bundle/LayoutBundle/Resources/public/js/hinclude.js
JavaScript
mit
6,301
# Encoding: utf-8 require 'askari/type' # The .stub_key_value macro sets up *many* let declarations of facts about an HBase key # value and its place in a schema: # # * row_key # * row_key_encoded # * row_key_type # * family # * family_encoded # * qualifier_name # * qualifier_schema # * qualifier_type # * qualifier #...
pombredanne/askari
lib/askari/spec_helpers/key_value.rb
Ruby
mit
3,812
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package net.mum.cs472; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.se...
xiangdewei/B_WAP
ForEachDemo/src/java/net/mum/cs472/TableServlet.java
Java
mit
3,556
import { AfterViewChecked, Component, ElementRef, OnDestroy, OnInit } from '@angular/core'; // subscribe を保持するための Subscription を import import { Subscription } from 'rxjs'; // サービスを登録するための import // アプリ全体でのサービスの共有、コンポーネント単位でのサービスの共有に関わらず、ここの import は必要 import { DataShareService } from '../../../service/data-share/dat...
ksh-fthr/angular-work
src/app/component/data-share/data-share-a/data-share-a.component.ts
TypeScript
mit
2,982
using System; using JetBrains.Annotations; using Reusable.Collections; namespace Reusable.IOnymous { [PublicAPI] public readonly struct MimeType : IEquatable<MimeType> { public MimeType(string name) => Name = name; [AutoEqualityProperty] public SoftString Name { get; } pub...
he-dev/Reusable
Reusable.IOnymous/src/MimeType.cs
C#
mit
1,495
MCU = atmega32u4 ARCH = AVR8 BOARD = NONE F_CPU = 16000000 F_USB = $(F_CPU) OPTIMIZATION = s TARGET = virtual_serial SRC = $(TARGET).c descriptors.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS) LUFA_PATH = ../../../lufa/LUFA CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConf...
snoremac/avrlaunch
lufa/Makefile
Makefile
mit
471
// Copyright (c) 2009-2012 The Bitcoin Developers // Copyright (c) 2013-2014 smilecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <openssl/aes.h> #include <openssl/evp.h> #include <vector> #include <...
smilecoin/smilecoin
src/crypter.cpp
C++
mit
3,991
import unittest class PilhaVaziaErro(Exception): pass class Pilha(): def __init__(self): self.lista=[] def empilhar(self,valor): self.lista.append(valor) def vazia(self): return not bool(self.lista) def topo(self): try: return self.lista[-1] e...
lucas2109/estruturaDados
pilha.py
Python
mit
1,546
<?php namespace Matthimatiker\CommandLockingBundle\Locking; /** * Null implementation of a lock manager. Simulates successful locking. */ class NullLockManager implements LockManagerInterface { /** * Obtains a lock for the provided name. * * The lock must be released before it can be obtained aga...
Matthimatiker/CommandLockingBundle
Locking/NullLockManager.php
PHP
mit
727
-- Examples from chapter 5 -- http://learnyouahaskell.com/recursion maximum' :: (Ord a) => [a] -> a maximum' [] = error "maximum of empty list" maximum' [x] = x maximum' (x:xs) = max x (maximum' xs) replicate' :: (Num i, Ord i) => i -> a -> [a] replicate' n x | n <= 0 = [] | otherwise = x:replicate' (n-1) x ...
Sgoettschkes/learning
haskell/LearnYouAHaskell/05.hs
Haskell
mit
902
package bibliotheque; /** * @author Adeline Leger */ import bibliotheque.BibliographieSource; import bibliotheque.Collection; import bibliotheque.Article; import java.io.*; import org.xml.sax.*; import org.xml.sax.helpers.*; import java.util.*; public class BibliographieReader implements XMLReader{ private Cont...
piatf/miniproject_java
Application/bibliotheque/BibliographieReader.java
Java
mit
5,670
angular.module("soundipic.model", [ ]) .service("model", function() { var imageSrc, imageData; function srcToData(src) { var image = new Image(); image.src = imageSrc; var width = image.width, height = image.height; var canvas = document.createElement("canvas"); canvas.width ...
godds/soundipic
src/app/model.js
JavaScript
mit
1,115
version https://git-lfs.github.com/spec/v1 oid sha256:5a4b87becf4d55857fc2346606917d9c17ea96ba34d8cda9efdd44b97576c0f7 size 2824
yogeshsaroya/new-cdnjs
ajax/libs/jquery-ui-map/3.0-rc1/jquery.ui.map.services.js
JavaScript
mit
129
/** * This header is generated by class-dump-z 0.1-11o. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. */ #import "UIKit-Structs.h" #import <UIKit/UIView.h> @interface UITabBarButtonBadge : UIView { UIView* _value; UIView* _background; UIView* _alternate; } -(id)initWithValue:(id)value...
codyd51/libPassword
libPassPrefs/include/UIKit/UITabBarButtonBadge.h
C
mit
481
// // GameManager.h // spaceViking_1_0_1 // // Created by Mac Owner on 1/27/13. // // #import <Foundation/Foundation.h> #import "Constants.h" #import "SimpleAudioEngine.h" @interface GameManager : NSObject { BOOL isMusicON; BOOL isSoundEffectsON; BOOL hasPlayerDied; SceneTypes currentScene; NSUInteger counterKill...
gneil90/enchiridion
templateARC/templateARC/GameManager.h
C
mit
1,316
{% load staticfiles %} <!-- ##JavaScript Scripts Files --> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="{% static 'js/jquery.min.js' %}"></script> <script src="{% static 'js/...
danteio/Dante-Dev
templates/javascript.html
HTML
mit
655
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class RegisterModel extends CI_Model { function reg_event(){ $this->load->database(); if(isset($_POST['submit'])) { $name = $_POST['event_name']; $provider = $_POST['event_provider']; $category = $_POST['category']...
Gothami94/eventRegistration
application/models/RegisterModel.php
PHP
mit
813
/*global define*/ define({ "_widgetLabel": "Netoli manęs", "searchHeaderText": "Ieškoti adreso arba rasti žemėlapyje", "invalidSearchLayerMsg": "Netinkamai sukonfigūruota sluoksnių paieška", "bufferSliderText": "Rezultatus pateikti ${BufferDistance} ${BufferUnit}", "bufferTextboxLabel": "Rezultatus pateikti d...
tmcgee/cmv-wab-widgets
wab/2.15/widgets/NearMe/nls/lt/strings.js
JavaScript
mit
1,815
(function() { 'use strict'; angular .module('socialprofileApp') .provider('AlertService', AlertService); function AlertService () { this.toast = false; /*jshint validthis: true */ this.$get = getService; this.showAsToast = function(isToast) { th...
josedab/yeoman-jhipster-examples
jhipster-300-gateway/src/main/webapp/app/components/alert/alert.service.js
JavaScript
mit
4,374
$script:dscModuleName = 'DnsServerDsc' $script:dscResourceName = 'DSC_DnsServerRootHint' function Invoke-TestSetup { try { Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop' } catch [System.IO.FileNotFoundException] { throw 'DscResource.Test module dependency not found....
PowerShell/xDnsServer
tests/Unit/DSC_DnsServerRootHint.Tests.ps1
PowerShell
mit
5,078
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using Logrila.Logging; using Redola.ActorModel.Framing; namespace Redola.ActorModel { public class CenterActorDirectory : IActorDirectory { private ILog _log = Logger.Get<CenterActorDirectory>(...
gaochundong/Redola
Redola/Redola.ActorModel/Actor/Directory/CenterActorDirectory/CenterActorDirectory.cs
C#
mit
13,272
/* Searcher.cpp * * Kubo Ryosuke */ #include "Searcher.h" #include "tree/Worker.h" #include "tree/NodeStat.h" #include "see/See.h" #include "core/def.h" #include "core/move/MoveGenerator.h" #include "logger/Logger.h" #include <iomanip> #include <algorithm> #include <cmath> #define ENABLE_HIST_REUSE 1 #...
sunfish-shogi/sunfish3
src/searcher/Searcher.cpp
C++
mit
70,626
#nullable enable using Dock.Model.ReactiveUI.Controls; namespace Core2D.ViewModels.Docking.Tools.Properties; public class DataPropertiesViewModel : Tool { }
wieslawsoltes/Core2D
src/Core2D/ViewModels/Docking/Tools/Properties/DataPropertiesViewModel.cs
C#
mit
161
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <reference types="node" /> import * as cluster from 'cluster'; import {resolve} from '../../../../src/ngtsc/fi...
Toxicable/angular
packages/compiler-cli/ngcc/src/execution/cluster/master.ts
TypeScript
mit
10,825
jest .dontMock('../resolvers') .dontMock('../queries') import { fromJS } from 'immutable' describe('resolvers', () => { let resolvers beforeEach(() => { resolvers = require('../resolvers') }) it('retrieves a value', () => { const {value} = resolvers const mockVal = 'testing-wow' expect(v...
colbyr/redux-firebase
src/__tests__/resolvers-test.js
JavaScript
mit
1,505
# How to make maps in python There are a number of packages which you can use to make great looking maps of your data with python. Two of these which are very popular are [`basemap`](http://matplotlib.org/basemap/) and [`cartopy`](http://scitools.org.uk/cartopy/). My personal choice (LM) is `cartopy` and that is what...
lmoresi/UoM-VIEPS-Intro-to-Python
docs/MakingMapsWithPython.md
Markdown
mit
5,204
//*********************** Lab 1 ************************** // Program written by: // - Steven Prickett EID: srp2389 // - Kelvin Le EID: kl24956 // Date Created: 1/22/2015 // Date Modified: 1/25/2015 // // Lab number: 1 // // Brief description of the program: // - // // Hardware connections: // - Outputs: //...
kle8309/OS_PROJECT
main.c
C
mit
2,906
package com.tikal.logregator.s3; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; import com.amazonaws.services.lambda.runtime.events.S3Event; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3Client; import com.amazon...
barkanido/logregator
src/main/java/com/tikal/logregator/s3/LogEntryLambdaListener.java
Java
mit
2,583
# Docker: emscripten [![Docker Pulls](https://img.shields.io/docker/pulls/trzeci/emscripten.svg)](https://store.docker.com/community/images/trzeci/emscripten/) [![Size](https://images.microbadger.com/badges/image/trzeci/emscripten.svg)](https://microbadger.com/images/trzeci/emscripten/) A complete container that is r...
asRIA/emscripten-docker
emscripten.md
Markdown
mit
5,518
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Key | picturepark-sdk-v1-pickers API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-pickers API"> <meta name="viewport" content="width=device-width...
Picturepark/Picturepark.SDK.TypeScript
docs/picturepark-sdk-v1-pickers/api/interfaces/_readline_.key.html
HTML
mit
11,435
# system detection platform='unknown' unamestr=`uname` if [[ "$unamestr" == 'Linux' ]]; then platform='linux' elif [[ "$unamestr" == 'Darwin' ]]; then platform='mac' fi ################################### # PATH ################################### if [[ "$platform" == 'mac' ]]; then export PATH=~/bin:/usr/l...
reconmaster/dotfiles
bash/env.sh
Shell
mit
2,387
// // AppDelegate.h // CleverRoad // // Created by Admin on 1/25/15. // Copyright (c) 2015 leonidkokhnovych. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (reado...
LeonidKokhnovich/CleverRoadTestApp
CleverRoad/CleverRoad/AppDelegate.h
C
mit
642
IF OBJECT_ID('dbo.usp_bcpTableUnload', 'P') IS NULL EXECUTE ('CREATE PROCEDURE dbo.usp_bcpTableUnload AS SELECT 1'); go ALTER PROCEDURE dbo.usp_bcpTableUnload ( @path NVARCHAR(900) , @serverName SYSNAME = @@SERVERNAME , @databaseName SYSNAME , @schemaName SYSNA...
amanrajbits/sql
Stored_Procedure/usp_bcpTableUnload.sql
SQL
mit
7,476
<!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_45) on Tue May 12 14:55:49 CEST 2015 --> <title>All Classes</title> <meta name="date" content="2015-05-12"> <link rel="stylesheet" type="text/c...
musman/RSP
ResearchServicePlatform/doc/allclasses-noframe.html
HTML
mit
23,994
# Scenarios - TFS 2017 Deployment INSERT TEXT HERE ```powershell New-LabDefinition -Name TFS2017 -DefaultVirtualizationEngine HyperV $PSDefaultParameterValues = @{ 'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2016 Datacenter (Desktop Experience)' 'Add-LabMachineDefinition:DomainName' = '...
AutomatedLab/AutomatedLab
Help/Wiki/SampleScripts/Scenarios/en-us/TFS 2017 Deployment.md
Markdown
mit
1,754
import React from 'react' import { renderRoutes } from 'react-router-config' import { Header } from '../containers/Header' const App = ({ route }) => ( <div> <Header title="reSolve Styled-Components Example" name="Styled-Components Example" favicon="/favicon.png" css={['/bootstrap.min.css'...
reimagined/resolve
templates/js/styled-components/client/components/App.js
JavaScript
mit
393
# -*- coding: utf-8 -*- import unittest import mock class DynamicFieldsMixinTestCase(unittest.TestCase): """Test functionality of the DynamicFieldsMixin class.""" def test_restrict_dynamic_fields(self):
chewse/djangorestframework-dynamic-fields
test_dynamicfields.py
Python
mit
218
#lay_content a.readon:hover, .button:hover, tr:hover td.sectiontableheader, #gloss:hover { background : url(../../images/gloss/bar-ice.gif) repeat-x; } .menu_tabs ul li a:hover, #lay_main .moduletable h3:hover, .moduletable_text h3:hover, .moduletable_menu h3:hover { background : url(../../images/gloss/title-ice.gif...
epsi-rns/AlumniBook-SF
plugins/sfThemeOriclonePlugin/web/css/hover/ice.css
CSS
mit
597