code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
import {Component} from 'react' export class Greeter { constructor (message) { this.greeting = message; } greetFrom (...names) { let suffix = names.reduce((s, n) => s + ", " + n.toUpperCase()); return "Hello, " + this.greeting + " from " + suffix; } greetNTimes ({name, times}) { let greetin...
doasync/eslint-config-airbnb-standard
example.js
JavaScript
mit
1,250
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>jsGrid - Data Manipulation</title> <link rel="stylesheet" type="text/css" href="demos.css" /> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600,400' rel='stylesheet' type='text/css'> <link...
afzalbk/Dynamic_Table
demos/data-manipulation.html
HTML
mit
5,917
/* * COPYRIGHT: Stealthy Labs LLC * DATE: 29th May 2015 * AUTHOR: Stealthy Labs * SOFTWARE: Tea Time */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <teatime.h> static int teatime_check_gl_version(uint32_t *major, uint32_t *minor); s...
stealthylabs/teatime
teatime.c
C
mit
19,398
class CreateLists < ActiveRecord::Migration[5.1] def change create_table :lists do |t| t.string :letter t.string :tax_reference t.string :list_type t.date :date_list t.timestamps end end end
vts-group/sat-lista-negra
db/migrate/20170506210330_create_lists.rb
Ruby
mit
234
var groove = require('groove'); var semver = require('semver'); var EventEmitter = require('events').EventEmitter; var util = require('util'); var mkdirp = require('mkdirp'); var fs = require('fs'); var uuid = require('./uuid'); var path = require('path'); var Pend = require('pend'); var DedupedQueue = require('./dedup...
dwrensha/groovebasin
lib/player.js
JavaScript
mit
88,399
*** View in [[English](README-en.md)][[中文](README.md)] *** # gocaptcha go语言验证码服务器 Feature ------- * 支持中文验证码 * 支持自定义词库、字库 * 支持自定义滤镜机制,通过滤镜来增加干扰,加大识别难度 * 当前的滤镜包括: * 支持干扰点 * 支持干扰线 * 支持其他模式的干扰 * 更多模式,可实现imagefilter接口来扩展 * 支持自定义存储引擎,存储引擎可扩展 * 目前支持的存储引擎包括: * 内置(buildin) * memcache * redis (from https://github.com/dty...
hanguofeng/gocaptcha
README.md
Markdown
mit
1,242
def add_age puts "How old are you?" age = gets.chomp puts "In 10 years you will be:" puts age.to_i + 10 puts "In 20 years you will be:" puts age.to_i + 20 puts "In 30 years you will be:" puts age.to_i + 30 puts "In 40 years you will be:" puts age.to_i + 40 end add_age
poligen/Tealeaf
prep_course/variables/age.rb
Ruby
mit
291
<!DOCTYPE html> <html class="theme-next mist use-motion" lang="zh-Hans"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta name="theme-color" content="#222"> <meta http-eq...
SummerBuger/summerbuger.github.io
archives/2016/index.html
HTML
mit
17,538
import { stringify } from 'qs' import _request from '@/utils/request' import mini from '@/utils/mini' import env from '@/config/env' // import { modelApis, commonParams } from './model' // import { version } from '../package.json' let apiBaseUrl apiBaseUrl = `${env.apiBaseUrl}` const regHttp = /^https?/i const isMoc...
jskit/kit-start
src/config/api.js
JavaScript
mit
6,364
import m from 'mithril'; import _ from 'underscore'; import postgrest from 'mithril-postgrest'; import models from '../models'; import h from '../h'; import projectDashboardMenu from '../c/project-dashboard-menu'; import projectContributionReportHeader from '../c/project-contribution-report-header'; import projectContr...
thiagocatarse/catarse.js
src/root/projects-contribution-report.js
JavaScript
mit
8,807
<?php namespace Faker\Provider\fa_IR; class PhoneNumber extends \Faker\Provider\PhoneNumber { /** * @link https://fa.wikipedia.org/wiki/%D8%B4%D9%85%D8%A7%D8%B1%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%AA%D9%84%D9%81%D9%86_%D8%AF%D8%B1_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86#.D8.AA.D9.84.D9.81.D9.86.E2.80.8C.D9.87.D8.A7....
localheinz/Faker
src/Faker/Provider/fa_IR/PhoneNumber.php
PHP
mit
2,348
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
bsmr-x-script/vscode
src/vs/workbench/services/request/node/requestService.ts
TypeScript
mit
5,651
// // IGViewController.h // KaifKit // // Created by Francis Chong on 04/15/2015. // Copyright (c) 2014 Francis Chong. All rights reserved. // #import <UIKit/UIKit.h> @interface IGViewController : UIViewController @end
siuying/KaifKit
Example/KaifKit/IGViewController.h
C
mit
226
version https://git-lfs.github.com/spec/v1 oid sha256:f5c198d5eef0ca0f41f87746ef8fefe819a727fcd59a6477c76b94b55d27128d size 1730
yogeshsaroya/new-cdnjs
ajax/libs/globalize/0.1.1/cultures/globalize.culture.da.js
JavaScript
mit
129
<?php $news = array( array( 'created_at' => '2015-04-29 00:00:00', 'image' => 'http://fakeimg.pl/768x370/3c3c3c/', 'thumb' => 'http://fakeimg.pl/200x200/3c3c3c/', 'title' => 'Blimps to Defend Washington, D.C. Airspace', 'content' => '<p>Lorem ipsum dolor sit amet, consectetur ad...
tonimedina/crobo
app/widgets/featured_news.php
PHP
mit
4,331
# Dreedi To start your this app: 1. Install dependencies with `mix deps.get` 2. Create and migrate your database with `mix ecto.create && mix ecto.migrate` 3. Start Phoenix endpoint with `mix phoenix.server` Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Dreedi/Dreedi
README.md
Markdown
mit
296
# mpps web repository
pratheep1231kumar/mpps
README.md
Markdown
mit
22
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePlatformsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('platforms', function (Blueprint $table) { ...
g33kidd/bracket
database/migrations/2016_05_25_043614_create_platforms_table.php
PHP
mit
703
require 'spec_helper' RSpec.describe RailsAdmin::ApplicationHelper, type: :helper do describe '#authorized?' do let(:abstract_model) { RailsAdmin.config(FieldTest).abstract_model } it 'doesn\'t use unpersisted objects' do expect(helper).to receive(:action).with(:edit, abstract_model, nil).and_call_ori...
sferik/rails_admin
spec/helpers/rails_admin/application_helper_spec.rb
Ruby
mit
17,723
package nl.ulso.sprox.json.spotify; import nl.ulso.sprox.Node; import java.time.LocalDate; import java.util.List; /** * Sprox processor for Spotify API album data. This is a very simple processor that ignores most data. * <p> * This implementation creates an Artist object for each and every artist in the response...
voostindie/sprox-json
src/test/java/nl/ulso/sprox/json/spotify/AlbumFactory.java
Java
mit
972
from corecat.constants import OBJECT_CODES, MODEL_VERSION from ._sqlalchemy import Base, CoreCatBaseMixin from ._sqlalchemy import Column, \ Integer, \ String, Text class Project(CoreCatBaseMixin, Base): """Project Model class represent for the 'projects' table which is used to store project's basic i...
DanceCats/CoreCat
corecat/models/project.py
Python
mit
1,533
/** * Angular 2 decorators and services */ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { environment } from 'environments/environment'; import { AppState } from './app.service'; /** * App Component * Top Level Component */ @Component({ selector: 'my-app', encapsulation: ViewEn...
hankaibo/myangular
src/app/app.component.ts
TypeScript
mit
1,649
// Copyright (c) 2016-2020 The ZCash developers // Copyright (c) 2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. /* See the Zcash protocol specification for more information. https://github.com/zcash/zip...
Darknet-Crypto/Darknet
src/sapling/noteencryption.h
C
mit
2,843
import React from 'react'; import { TypeChooser } from 'react-stockcharts/lib/helper' import Chart from './Chart' import { getData } from './util'; class ChartComponent extends React.Component { componentDidMount () { getData().then(data => { this.setState({ data}) }) } render () { if (this.st...
kevyu/ctp_demo
app/components/Chart/index.js
JavaScript
mit
516
# # Cookbook Name:: stow # Spec:: default # # Copyright (c) 2015 Steven Haddox require 'spec_helper' describe 'stow::default' do context 'When all attributes are default, on an unspecified platform' do let(:chef_run) do runner = ChefSpec::ServerRunner.new runner.converge(described_recipe) end ...
stevenhaddox/cookbook-stow
spec/recipes/default_spec.rb
Ruby
mit
4,049
/* * database.hpp * * Created on: Sep 22, 2016 * Author: dan */ #ifndef SRC_TURBO_BROCCOLI_DATABASE_HPP_ #define SRC_TURBO_BROCCOLI_DATABASE_HPP_ #include <boost/filesystem.hpp> #include <turbo_broccoli/type/key.hpp> #include <turbo_broccoli/type/value.hpp> #include <turbo_broccoli/type/blob.hpp> #include...
dan-42/turbo-broccoli
src/turbo_broccoli/database.hpp
C++
mit
6,563
#!/usr/bin/env python from ansible.module_utils.hashivault import hashivault_argspec from ansible.module_utils.hashivault import hashivault_auth_client from ansible.module_utils.hashivault import hashivault_init from ansible.module_utils.hashivault import hashiwrapper ANSIBLE_METADATA = {'status': ['stableinterface'],...
TerryHowe/ansible-modules-hashivault
ansible/modules/hashivault/hashivault_approle_role_get.py
Python
mit
1,659
package com.gmail.hexragon.gn4rBot.command.ai; import com.gmail.hexragon.gn4rBot.managers.commands.CommandExecutor; import com.gmail.hexragon.gn4rBot.managers.commands.annotations.Command; import com.gmail.hexragon.gn4rBot.util.GnarMessage; import com.google.code.chatterbotapi.ChatterBot; import com.google.code.chatte...
DankBots/GN4R
src/main/java/com/gmail/hexragon/gn4rBot/command/ai/PrivateCleverbotCommand.java
Java
mit
1,619
--- layout: post title: Bhaas date: '2007-06-17 21:32:00' tags: ["poetry"] --- <p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_cWdd7TsTIWo/RnWon-oIleI/AAAAAAAAAAk/PCXo2q26GsQ/s1600-h/bhas.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cur...
sushrutb/website
source/_posts/2007-06-17-bhaas.markdown
Markdown
mit
699
class Projects { public static filters: string[] = []; public static open(): void { $.ajax( { url: "./projects.html", success: (data) => { $("#page").fadeOut( "fast", () => { ...
SvenFrankson/SvenFrankson.github.io
scripts/pages/Projects.ts
TypeScript
mit
1,442
/** * Created by Keerthikan on 29-Apr-17. */ export {expenseSpyFactory} from './expense-spy-factory'; export {compensationSpyFactory} from './compensation-spy-factory';
teiler/web.teiler.io
src/test/spy-factory/index.ts
TypeScript
mit
171
package logbook.data; import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java....
sanaehirotaka/logbook
main/logbook/data/ScriptLoader.java
Java
mit
3,288
# CMAKE generated file: DO NOT EDIT! # Generated by "MinGW Makefiles" Generator, CMake Version 2.8 # Relative path conversion top directories. SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "D:/lang/OpenCV-2.2.0") SET(CMAKE_RELATIVE_PATH_TOP_BINARY "D:/lang/OpenCV-2.2.0/dbg-w32") # Force unix paths in dependencies. SET(CMAKE_FOR...
eirTony/INDI1
to/lang/OpenCV-2.2.0/dbg-w32/modules/haartraining/CMakeFiles/CMakeDirectoryInformation.cmake
CMake
mit
1,186
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{107:function(n,o,c){},108:function(n,o,c){},109:function(n,o,c){},110:function(n,o,c){},150:function(n,o,c){},151:function(n,o,c){}}]); //# sourceMappingURL=styles-fa6c583b3cd626e54a0e.js.map
Mr-Polite/Mr-Polite.github.io
styles-fa6c583b3cd626e54a0e.js
JavaScript
mit
248
get '/user' do if logged_in? redirect '/' end erb :create_account end post '/user' do user = User.create(params[:user]) redirect '/' end post '/login' do if user = User.login(params[:user]) session[:permissions] = '3' end redirect '/' end get '/logout' do session.clear session[:permission...
rjspencer/projectmogo_server
app/controllers/user.rb
Ruby
mit
348
<?php /************************************************************************************* * pascal.php * ---------- * Author: Tux (tux@inamil.cz) * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.6 * CVS Revision Version: $Revision: 1.1 $ * Date St...
Quantisan/WholeCell
knowledgebase/lib/geshi/filter/geshi/geshi/pascal.php
PHP
mit
4,352
<?php namespace infinitydevphp\gii\migration; use infinitydevphp\MultipleModelValidator\MultipleModelValidator; use infinitydevphp\tableBuilder\TableBuilder; use infinitydevphp\tableBuilder\TableBuilderTemplateMigration; use infinitydevphp\gii\models\Field; use yii\db\ColumnSchema; use yii\db\Schema; use yii\db\TableS...
infinitydevphp/infinity-gii
src/migration/Generator.php
PHP
mit
4,539
delete p1 from person as p1, person as p2 where p1.email = p2.email and p1.id > p2.id;
rayjun/awesome-algorithm
leetcode/sql/Leetcode196.sql
SQL
mit
86
#include "HotNeedleLightControl.h" HotNeedleLightControlClass::HotNeedleLightControlClass(uint8_t background[NEOPIXEL_COUNT][COLOR_BYTES], uint8_t hotNeedleColor[COLOR_BYTES], float highlightMultiplier, bool useHighlight, uint16_t fadeTime, uint8_t framePeriod, Adafruit_NeoPixel *strip) : LightControlClass(framePeriod...
iotdesignshop/FizViz-Arduino
FizVizSketch/HotNeedleLightControl.cpp
C++
mit
2,285
import { createSelector } from 'reselect'; import * as movie from './../actions/movie'; import { Movie } from './../models'; import * as _ from 'lodash'; import { AsyncOperation, AsyncStatus, makeAsyncOp } from "./../utils"; export interface State { entities: { [movieId: string]: Movie }; mapMovieToCinema:...
bkorobeinikov/movieapp-ionic
src/store/reducers/movie.ts
TypeScript
mit
3,346
<!DOCTYPE HTML> <html> <head> <title>Gamecraft CI</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="/webjars/bootstrap/3.3.7-1/css/bootstrap.min.css"/> <link rel="stylesheet" href="/css/dashboard.css"/> <s...
iMartinezMateu/gamecraft
gamecraft-ui/src/main/resources/templates/dashboard.html
HTML
mit
1,885
from scrapy.spiders import Spider from scrapy.selector import Selector from scrapy.http import HtmlResponse from FIFAscrape.items import PlayerItem from urlparse import urlparse, urljoin from scrapy.http.request import Request from scrapy.conf import settings import random import time class fifaSpider(Spider...
HashirZahir/FIFA-Player-Ratings
FIFAscrape/spiders/fifa_spider.py
Python
mit
3,458
<!DOCTYPE HTML> <html> <head> <title>Arbiter - Decisions Simplified</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.min.js"></script> <script src="app.js"></script> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if l...
tejasbadadare/Arbiter
single.html
HTML
mit
3,326
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var div = document.getElementById('content'); var div1 = document.getElementById('leftbox'); div.style.height = document.body.clientHeight + 'px'; div1.style.height = div.st...
JulesMarcil/colocall
web/js/base.js
JavaScript
mit
1,815
require 'spec_helper' describe Webpack::Rails do it 'has a version number' do expect(Webpack::Rails::VERSION).not_to be nil end end
goldenio/webpack-rails
spec/webpack/rails_spec.rb
Ruby
mit
141
CREATE TABLE IF NOT EXISTS `comment` ( ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; ;
Sioweb/Sioweb-MVC
app/assets/Test/sql/comment.sql
SQL
mit
96
require 'optparse' require 'pathname' module EdifactConverter class CommandLineParser class << self attr_writer :options def options @options ||= {} end def parser @parser ||= begin OptionParser.new do|opts| opts.banner = "Usage: #{$COMMAND_NAME} [...
glasdam/edifact_converter
lib/edifact_converter/command_line_parser.rb
Ruby
mit
2,042
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the project root. /* * Copyright 2000-2010 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain...
Microsoft/vso-intellij
plugin/src/com/microsoft/alm/plugin/idea/tfvc/ui/ServerPathCellEditor.java
Java
mit
4,047
package org.peerbox.presenter; import javafx.fxml.FXML; import javafx.scene.Node; import javafx.scene.layout.Pane; public class MainController implements INavigatable { @FXML private Pane mainPane; /* * (non-Javadoc) * * @see org.peerbox.presenter.INavigatable#setContent(javafx.scene.Node) */ @Override ...
PeerWasp/PeerWasp
peerbox/src/main/java/org/peerbox/presenter/MainController.java
Java
mit
467
// // LightningSendDownView.h // TNTLoveFreshBee // // Created by apple on 16/10/14. // Copyright © 2016年 LiDan. All rights reserved. // #import <UIKit/UIKit.h> @protocol didLightningSendDownViewCommitDelegate <NSObject> @optional - (void)didLightningSendDownViewCommit; @end @interface LightningSendDownView : UIV...
LifengDuan/gitCaoLian
TNTLoveFreshBee 2/TNTLoveFreshBee/Classes/ShopingCar/Views/LightningSendDownView.h
C
mit
410
<?php /* Template Name: Full Page Width Template */ get_header(); while ( have_posts() ) { the_post(); get_template_part( 'content', 'page-full' ); } // end of the loop get_footer();
PathwayToRecovery-IndyGiveCamp/give-camp-theme-2013
page-full.php
PHP
mit
200
print("hello!!!!")
coolralf/KaggleTraining
HELP.py
Python
mit
18
var monsterArray = { "name": "岩龙", "other": [ "0", "0", "0", "0", "0", "0", "0", "0", "0", "" ], "weakness": [ { "data": [ "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", ...
monsterhunteronline/monsterhunteronline.github.io
monsters/basarios/data.js
JavaScript
mit
348
/// <reference path="../definitions/mocha.d.ts"/> /// <reference path="../definitions/node.d.ts"/> /// <reference path="../definitions/Q.d.ts"/> import Q = require('q'); import assert = require('assert'); import path = require('path'); import fs = require('fs'); describe('General Suite', function () { this.timeou...
kkdawkins/vsts-tasks
Tests/L0.ts
TypeScript
mit
23,620
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Gang } from '../models/gang'; import { Session } from '../models/session'; import { CREW_2_ROUTE } from '../../app/app.routes.model'; import { HttpClient } from '@angular/common/http'; @Injectable() export class CrewServ...
manuelhuber/LostColonies
src/data/services/crew.service.ts
TypeScript
mit
1,407
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2001-2011 Hartmut Kaiser http://spirit.sourceforge.net/ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at h...
gazzlab/LSL-gazzlab-branch
liblsl/external/lslboost/spirit/include/support_standard.hpp
C++
mit
651
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
Azure/azure-sdk-for-python
sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/aio/_sql_virtual_machine_management_client.py
Python
mit
5,342
// // kmeans.h // VoterMLA // // Created by MD Shihabul Kabir on 12/5/16. // Copyright © 2016 MD Shihabul Kabir. All rights reserved. // #ifndef kmeans_h #define kmeans_h #include "county.h" #include <vector> //K-Means Clustering Namespace namespace KmeansCluster { //Data Structure to help K-Means Clustering...
msk610/VoterMLA
kmeans.h
C
mit
1,892
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>T837185195841212416</title> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600"> <link rel="stylesheet" href="/style.css"> <link...
curtclifton/curtclifton.github.io
_site/2017/03/02/t837185195841212416.html
HTML
mit
1,623
#include "NL_ImguiD3D11Renderer.h" #include <d3d11.h> #include <d3dcompiler.h> #include <imgui.h> namespace NLE { namespace GRAPHICS { struct VERTEX_CONSTANT_BUFFER { float mvp[4][4]; }; ImguiD3D11Renderer::ImguiD3D11Renderer() : _vertexBuffer(nullptr), _indexBuffer(nullptr), _vertexShad...
AlexandrSachkov/NonLinearEngine
NLE/NL_ImguiD3D11Renderer.cpp
C++
mit
17,834
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
levfurtado/scoops
vendor/bombayworks/zendframework1/library/Zend/Pdf/Annotation/FileAttachment.php
PHP
mit
3,689
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.thirdparty.facebook.constants.EventTypes", null, function(objectFunctions, staticFunctions, ClassReference) { //console.log("dbm.thirdparty.fac...
developedbyme/dbm
javascripts/dbm/classes/dbm/thirdparty/facebook/constants/EventTypes.js
JavaScript
mit
1,089
module TweetStream class Terminated < ::StandardError; end class Error < ::StandardError; end class ConnectionError < TweetStream::Error; end # A ReconnectError is raised when the maximum number of retries has # failed to re-establish a connection. class ReconnectError < StandardError attr_accessor :tim...
eerwitt/tweetstream
lib/tweetstream/error.rb
Ruby
mit
506
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. #pragma warning disable CA1801 // Remove unused parameter #pragma warning disable IDE0060 // Remove unused parameter using System; using System.Linq; using System.Text; na...
dotnet/roslyn-analyzers
src/TestReferenceAssembly/OtherDllClass.cs
C#
mit
3,861
<?php namespace FashionGuide\Oauth2\Exceptions; class AppException extends \Exception { }
flash662/fashionguide
src/Exceptions/AppException.php
PHP
mit
91
#!/bin/bash # Set up your StartSSL certificates/keys for nginx-proxy # This script expects your certificate and key files in this folder following # the nginx-proxy naming convention. # For example: foo.example.com.crt foo.example.com.key # are the .crt and .key file for the domain foo.example.com # Make sure script ...
daveenguyen/propitious-melting-pot
certs/script.sh
Shell
mit
1,712
'use strict'; // This is the webpack config used for JS unit tests const Encore = require('@symfony/webpack-encore'); const encoreConfigure = require('./webpack.base.config'); const webpackCustomize = require('./webpack.customize'); // Initialize Encore before requiring the .config file Encore.configureRuntimeEnviron...
xmmedia/starter_perch
webpack.test.config.js
JavaScript
mit
1,518
/*********************** * fallback mode panel * ***********************/ PanelWidget, PanelApplet, PanelToplevel { padding: 0; background-color: @osd_bg; background-image: none; color: #222222; } PanelApplet { border-width: 0; } PanelSeparator { border-width: 0; background-color: @osd_b...
pharpend/dotfiles
.themes/Libra-Dark/gtk-3.0/gnome-applications.css
CSS
mit
13,545
@echo off REM Script to install the updates net user Administrator p@ssw0rd /active:yes SET install_dir=%~dp0 REM Getting rid of the \ at the end SET install_dir=%install_dir:~0,-1% cd %install_dir% dir /b %install_dir%\*.cab > updatelist.txt for /f "delims=" %%i in (updatelist.txt) do ( echo Processing %%i call...
Leeway213/BSP-aw1689
loong/pctools/windows/buildscripts/iot-adk-addonkit/Templates/installupdates.cmd
Batchfile
mit
393
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_petitioneer_session'
apurvis/petitioneer
config/initializers/session_store.rb
Ruby
mit
143
// Release 1: User Stories // As a user, I want to be able to create a new grocery list. After that, I need to be able to add an item with a quantity to the list, remove an item, and update the quantities if they change. I need a way to print out the list in a format that is very readable. // Release 2: Pseudocode // ...
taylordaug/phase-0
week-9/review.js
JavaScript
mit
3,848
<!DOCTYPE html> <html> <head> <meta charset='UTF-8'> <script src='matrices.js'></script> <style> .indent { padding-left: 2em; } </style> </head> <body> <h3>Color space:</h3> Spec: <select id='e_color_space'> <option value='rec601' selected>Rec601</option> <option value='rec709'>Rec709<...
jdashg/misc
colors/from-coeffs.html
HTML
mit
8,409
Dagaz.Controller.persistense = "setup"; Dagaz.Model.WIDTH = 8; Dagaz.Model.HEIGHT = 8; ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR:...
GlukKazan/GlukKazan.github.io
checkmate/scripts/visavis-chess.js
JavaScript
mit
18,337
#ifndef __GTHREE_VECTOR_KEYFRAME_TRACK_H__ #define __GTHREE_VECTOR_KEYFRAME_TRACK_H__ #if !defined (__GTHREE_H_INSIDE__) && !defined (GTHREE_COMPILATION) #error "Only <gthree/gthree.h> can be included directly." #endif #include <gthree/gthreekeyframetrack.h> G_BEGIN_DECLS #define GTHREE_TYPE_VECTOR_KEYFRAME_TRACK ...
alexlarsson/gthree
gthree/gthreevectorkeyframetrack.h
C
mit
1,588
<?php namespace PHPAuth; class Auth { protected $dbh; public $config; public $lang; public function __construct(\PDO $dbh, $config, $language = "en_GB") { $this->dbh = $dbh; $this->config = $config; if (version_compare(phpversion(), '5.5.0', '<')) { ...
owlhouseconsultingllc/viz
scripts/PHPAuth/Auth.php
PHP
mit
15,122
namespace InfluxData.Net.InfluxDb.Models.Responses { public class User { /// <summary> /// User name. /// </summary> public string Name { get; set; } /// <summary> /// Whether or not the user is an administrator. /// </summary> public bool IsAdmi...
pootzko/InfluxData.Net
InfluxData.Net.InfluxDb/Models/Responses/User.cs
C#
mit
346
package id3 import ( "bytes" "errors" "io" "time" ) var timestampFormats = []string{ "2006-01-02T15:04:05", "2006-01-02T15:04", "2006-01-02T15", "2006-01-02", "2006-01", "2006", } func parseTime(timeStr string) (time.Time, error) { for i := range timestampFormats { t, err := time.Parse(timestampFormats[...
cjlucas/go-audiotag
src/github.com/cjlucas/audiotag/id3/util.go
GO
mit
649
<div class="demo-menu"> <div class="menu-section"> <p>You clicked on: {{ selected }}</p> <md-toolbar> <button md-icon-button [md-menu-trigger-for]="menu"> <md-icon>more_vert</md-icon> </button> </md-toolbar> <md-menu #menu="mdMenu"> <button md-menu-item *ngFor="let item of ...
alexeagle/material2
src/demo-app/menu/menu-demo.html
HTML
mit
1,753
using Argolis.Hydra.Annotations; using Argolis.Models; using Vocab; namespace TestHydraApi { public class IssueFilter : ITemplateParameters<Issue> { [Property(Schema.title)] public string Title { get; set; } [Property(Schema.BaseUri + "year")] [Range(Xsd.integer)] publ...
wikibus/Argolis
src/Examples/TestHydraApi/IssueFilter.cs
C#
mit
356
// make a linked list that has one member // then make 5 nodes - with each node having 1,2,3,4,5 as data // then print them out // then work out how to reverse the list by only changing the pointers // then print again #include <stdio.h> #include <stdlib.h> // Including this header to use malloc struct node { int n...
vinithanatarajan/Vini-training
c-exercises/structs/linked-list.c
C
mit
1,014
#pragma once #include <rikitiki/http/content_types.h> #include <vector> #include <map> #include <array> #include <mxcomp/reflection.h> #ifdef _MSC_VER #define constexpr #endif namespace rikitiki { class ConnContext; struct Response; template <typename T> struct ContentHandler_ { static...
jdavidberger/rikitiki
include/rikitiki/content_handler.h
C
mit
3,280
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer' . '/autoload_real.php'; return ComposerAutoloaderInit037b77112e3f60b3fb10492299961fe0::getLoader();
perzy/slim-demo
vendor/autoload.php
PHP
mit
183
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Office = Microsoft.Office.Core; // TODO: Follow these steps to enable the Ribbon (XML) item: // 1: Copy the following code block into the ThisAd...
dchanko/Badger
BadgerAddin2010/Ribbon.cs
C#
mit
2,794
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace MusicStore.Api { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes ...
Ico093/TelerikAcademy
WebServesesAndCloud/Homework/01.ASP.NETWebAPI/WebApi/MusicStore.Api/App_Start/WebApiConfig.cs
C#
mit
591
using System.Web.Mvc; using Microsoft.Practices.Unity; using Unity.Mvc4; namespace MVCForum.IOC { public static class Bootstrapper { public static IUnityContainer Initialise() { var container = BuildUnityContainer(); DependencyResolver.SetResolver(new UnityDependencyResolver(container)); ...
unclefrost/extrem.web
MVCForum.IOC/Bootstrapper.cs
C#
mit
797
{% extends "content_template.html" %} {% from "components/page-header.html" import page_header %} {% from "components/copy-to-clipboard.html" import copy_to_clipboard %} {% block per_page_title %} Billing details {% endblock %} {% block content_column_content %} {{ page_header('Billing details') }} <p cl...
alphagov/notifications-admin
app/templates/views/pricing/billing-details.html
HTML
mit
3,319
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InTheHand.Net; using InTheHand.Net.Sockets; using InTheHand.Net.Bluetooth; namespace NXTLib { public static class Utils { public static string AddressByte2String(byte[] address, bool withcolons) { ...
smo-key/NXTLib
nxtlib/src/Utils.cs
C#
mit
1,877
<!DOCTYPE html> <html lang="en"><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="https://newsblur.com/media/img/favicon.ico" type="image/png" /> <link rel="icon" href="https:...
samuelclay/NewsBlur
blog/_site/2015/08/25/even-the-folders-have-rss-feeds/index.html
HTML
mit
6,956
<ion-view view-title="Coffee Shop"> <ion-content> <div class="card"> <div class="item item-divider text-center"> <h2>{{biz.businessName}}</h2> </div> <div class="item text-center"> <div><strong>{{biz.street}}</strong></div> ...
wyrover/ionic-components
ionic-coffee/details/details.html
HTML
mit
1,187
<?php /** * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace Clash82\EzPlatformStudioTipsBlockBundle\Installer; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\I...
omniproject/ezstudio-tips-block
bundle/Installer/ContentTypeInstaller.php
PHP
mit
5,989
# Starter Web App This is my attempt to create a dev workflow which hot reloads client and server side changes. Note: This is still a work in progress ## Installation git clone xyz rm -rf .git npm install gulp (npm run dev) open http://localhost:3000 ## Deployment gulp bundle (npm run bund...
jonboylailam/nodejs-react-app-starter
README.md
Markdown
mit
495
# frankie - a plugin for sinatra that integrates with the facebooker gem # # written by Ron Evans (http://www.deadprogrammersociety.com) # # based on merb_facebooker (http://github.com/vanpelt/merb_facebooker) # and the Rails classes in Facebooker (http://facebooker.rubyforge.org/) from Mike Mangino, Shane Vitarana, &...
jsmestad/frankie
lib/frankie.rb
Ruby
mit
6,584
package tutorialHorizon.arrays; /** * Created by archithrapaka on 7/4/17. */ public class InsertionSort { public static void insertionSort(int[] items, int n) { int i, j; for (i = 1; i < n; i++) { j = i; while (j > 0 && (items[j] < items[j - 1])) { swap(i...
arapaka/algorithms-datastructures
algorithms/src/main/java/tutorialHorizon/arrays/InsertionSort.java
Java
mit
813
import { createContext } from 'react'; export const defaultApiStatus = { offline: false, apiUnreachable: '', appVersionBad: false, }; export default createContext(defaultApiStatus);
ProtonMail/WebClient
packages/components/containers/api/apiStatusContext.ts
TypeScript
mit
196
> Link jsreport browser sdk into your page and easily render a report from the browser or open limited version of jsreport studio inside any web application and let end users to customize their reports. There are various scenarios where this can be used. Typical example can be when application is sending invoices to th...
bjrmatos/docs
docs/embedding.md
Markdown
mit
4,609
module.exports = { //"@context": { type: String, default: "http://schema.org" }, //"@type": { type: String, default: "Article" }, //>>Properties from NewsArticle //dateline: String,//The location where the NewsArticle was produced. //printColumn: String,//The number of the column in which the NewsArticle appears ...
thecodebureau/epiphany
schemas/article.js
JavaScript
mit
10,188
from flask import Blueprint, request, render_template from ..load import processing_results from ..abbr import get_abbr_map abbr_map = get_abbr_map() liner_mod = Blueprint('liner', __name__, template_folder='templates', static_folder='static') @liner_mod.route('/liner', methods=['GET', 'POST']) def liner(): if r...
griimick/feature-mlsite
app/liner/views.py
Python
mit
1,108
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
lmazuel/azure-sdk-for-python
azure-mgmt-web/azure/mgmt/web/models/dimension.py
Python
mit
1,562
# Pluralsight React Components A library of React components created in "Creating Reusable React Components" on Pluralsight. ## Install ``` npm install ps-react-dr ``` ## Issues I'll add tips for common problems and address any known course issues here. ## Docs [Component documentation](http://dryzhkov.github.io/ps...
dryzhkov/ps-react-dr
README.md
Markdown
mit
330
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/tools/qdbus/src/qdbusabstractadaptor.cpp --> <he...
misizeji/StudyNote_201308
webserver/html/qdbusabstractadaptor-members.html
HTML
mit
7,196