repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
doasync/eslint-config-airbnb-standard | example.js | 1250 | 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... | mit |
afzalbk/Dynamic_Table | demos/data-manipulation.html | 5917 | <!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... | mit |
stealthylabs/teatime | teatime.c | 19398 | /*
* 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... | mit |
vts-group/sat-lista-negra | db/migrate/20170506210330_create_lists.rb | 234 | 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
| mit |
dwrensha/groovebasin | lib/player.js | 88399 | 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... | mit |
hanguofeng/gocaptcha | README.md | 1242 | ***
View in [[English](README-en.md)][[中文](README.md)]
***
# gocaptcha
go语言验证码服务器
Feature
-------
* 支持中文验证码
* 支持自定义词库、字库
* 支持自定义滤镜机制,通过滤镜来增加干扰,加大识别难度
* 当前的滤镜包括:
* 支持干扰点
* 支持干扰线
* 支持其他模式的干扰
* 更多模式,可实现imagefilter接口来扩展
* 支持自定义存储引擎,存储引擎可扩展
* 目前支持的存储引擎包括:
* 内置(buildin)
* memcache
* redis (from https://github.com/dty... | mit |
poligen/Tealeaf | prep_course/variables/age.rb | 291 |
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
| mit |
SummerBuger/summerbuger.github.io | archives/2016/index.html | 17538 | <!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... | mit |
jskit/kit-start | src/config/api.js | 6364 | 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... | mit |
thiagocatarse/catarse.js | src/root/projects-contribution-report.js | 8807 | 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... | mit |
localheinz/Faker | src/Faker/Provider/fa_IR/PhoneNumber.php | 2348 | <?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.... | mit |
bsmr-x-script/vscode | src/vs/workbench/services/request/node/requestService.ts | 5651 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
siuying/KaifKit | Example/KaifKit/IGViewController.h | 226 | //
// 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
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/globalize/0.1.1/cultures/globalize.culture.da.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:f5c198d5eef0ca0f41f87746ef8fefe819a727fcd59a6477c76b94b55d27128d
size 1730
| mit |
tonimedina/crobo | app/widgets/featured_news.php | 4331 | <?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... | mit |
Dreedi/Dreedi | README.md | 296 | # 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.
| mit |
pratheep1231kumar/mpps | README.md | 22 | # mpps
web repository
| mit |
g33kidd/bracket | database/migrations/2016_05_25_043614_create_platforms_table.php | 703 | <?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) {
... | mit |
sferik/rails_admin | spec/helpers/rails_admin/application_helper_spec.rb | 17723 | 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... | mit |
voostindie/sprox-json | src/test/java/nl/ulso/sprox/json/spotify/AlbumFactory.java | 972 | 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... | mit |
DanceCats/CoreCat | corecat/models/project.py | 1533 | 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... | mit |
hankaibo/myangular | src/app/app.component.ts | 1649 | /**
* 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... | mit |
Darknet-Crypto/Darknet | src/sapling/noteencryption.h | 2843 | // 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... | mit |
kevyu/ctp_demo | app/components/Chart/index.js | 516 | 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... | mit |
stevenhaddox/cookbook-stow | spec/recipes/default_spec.rb | 4049 | #
# 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
... | mit |
dan-42/turbo-broccoli | src/turbo_broccoli/database.hpp | 6563 | /*
* 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... | mit |
TerryHowe/ansible-modules-hashivault | ansible/modules/hashivault/hashivault_approle_role_get.py | 1659 | #!/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'],... | mit |
DankBots/GN4R | src/main/java/com/gmail/hexragon/gn4rBot/command/ai/PrivateCleverbotCommand.java | 1619 | 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... | mit |
sushrutb/website | source/_posts/2007-06-17-bhaas.markdown | 699 | ---
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... | mit |
SvenFrankson/SvenFrankson.github.io | scripts/pages/Projects.ts | 1442 | class Projects {
public static filters: string[] = [];
public static open(): void {
$.ajax(
{
url: "./projects.html",
success: (data) => {
$("#page").fadeOut(
"fast",
() => {
... | mit |
teiler/web.teiler.io | src/test/spy-factory/index.ts | 171 | /**
* Created by Keerthikan on 29-Apr-17.
*/
export {expenseSpyFactory} from './expense-spy-factory';
export {compensationSpyFactory} from './compensation-spy-factory';
| mit |
sanaehirotaka/logbook | main/logbook/data/ScriptLoader.java | 3288 | 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.... | mit |
eirTony/INDI1 | to/lang/OpenCV-2.2.0/dbg-w32/modules/haartraining/CMakeFiles/CMakeDirectoryInformation.cmake | 1186 | # 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... | mit |
Mr-Polite/Mr-Polite.github.io | styles-fa6c583b3cd626e54a0e.js | 248 | (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 | mit |
rjspencer/projectmogo_server | app/controllers/user.rb | 348 | 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... | mit |
Quantisan/WholeCell | knowledgebase/lib/geshi/filter/geshi/geshi/pascal.php | 4352 | <?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... | mit |
infinitydevphp/infinity-gii | src/migration/Generator.php | 4539 | <?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... | mit |
rayjun/awesome-algorithm | leetcode/sql/Leetcode196.sql | 86 | delete p1 from person as p1, person as p2 where p1.email = p2.email and p1.id > p2.id; | mit |
iotdesignshop/FizViz-Arduino | FizVizSketch/HotNeedleLightControl.cpp | 2285 | #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... | mit |
bkorobeinikov/movieapp-ionic | src/store/reducers/movie.ts | 3346 | 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:... | mit |
iMartinezMateu/gamecraft | gamecraft-ui/src/main/resources/templates/dashboard.html | 1885 | <!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... | mit |
HashirZahir/FIFA-Player-Ratings | FIFAscrape/spiders/fifa_spider.py | 3458 | 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... | mit |
tejasbadadare/Arbiter | single.html | 3326 | <!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... | mit |
JulesMarcil/colocall | web/js/base.js | 1815 | /*
* 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... | mit |
goldenio/webpack-rails | spec/webpack/rails_spec.rb | 141 | require 'spec_helper'
describe Webpack::Rails do
it 'has a version number' do
expect(Webpack::Rails::VERSION).not_to be nil
end
end
| mit |
Sioweb/Sioweb-MVC | app/assets/Test/sql/comment.sql | 96 | CREATE TABLE IF NOT EXISTS `comment` (
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
; | mit |
glasdam/edifact_converter | lib/edifact_converter/command_line_parser.rb | 2042 | 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} [... | mit |
Microsoft/vso-intellij | plugin/src/com/microsoft/alm/plugin/idea/tfvc/ui/ServerPathCellEditor.java | 4047 | // 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... | mit |
PeerWasp/PeerWasp | peerbox/src/main/java/org/peerbox/presenter/MainController.java | 467 | 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
... | mit |
LifengDuan/gitCaoLian | TNTLoveFreshBee 2/TNTLoveFreshBee/Classes/ShopingCar/Views/LightningSendDownView.h | 410 | //
// 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... | mit |
PathwayToRecovery-IndyGiveCamp/give-camp-theme-2013 | page-full.php | 200 | <?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(); | mit |
coolralf/KaggleTraining | HELP.py | 18 | print("hello!!!!") | mit |
monsterhunteronline/monsterhunteronline.github.io | monsters/basarios/data.js | 348 | 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",
... | mit |
kkdawkins/vsts-tasks | Tests/L0.ts | 23620 | /// <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... | mit |
manuelhuber/LostColonies | src/data/services/crew.service.ts | 1407 | 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... | mit |
gazzlab/LSL-gazzlab-branch | liblsl/external/lslboost/spirit/include/support_standard.hpp | 651 | /*=============================================================================
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... | mit |
Azure/azure-sdk-for-python | sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/aio/_sql_virtual_machine_management_client.py | 5342 | # 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 ... | mit |
msk610/VoterMLA | kmeans.h | 1892 | //
// 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... | mit |
curtclifton/curtclifton.github.io | _site/2017/03/02/t837185195841212416.html | 1623 | <!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... | mit |
AlexandrSachkov/NonLinearEngine | NLE/NL_ImguiD3D11Renderer.cpp | 17834 | #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... | mit |
levfurtado/scoops | vendor/bombayworks/zendframework1/library/Zend/Pdf/Annotation/FileAttachment.php | 3689 | <?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... | mit |
developedbyme/dbm | javascripts/dbm/classes/dbm/thirdparty/facebook/constants/EventTypes.js | 1089 | /* 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... | mit |
eerwitt/tweetstream | lib/tweetstream/error.rb | 506 | 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... | mit |
dotnet/roslyn-analyzers | src/TestReferenceAssembly/OtherDllClass.cs | 3861 | // 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... | mit |
flash662/fashionguide | src/Exceptions/AppException.php | 91 | <?php
namespace FashionGuide\Oauth2\Exceptions;
class AppException extends \Exception
{
} | mit |
daveenguyen/propitious-melting-pot | certs/script.sh | 1712 | #!/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 ... | mit |
xmmedia/starter_perch | webpack.test.config.js | 1518 | '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... | mit |
pharpend/dotfiles | .themes/Libra-Dark/gtk-3.0/gnome-applications.css | 13545 | /***********************
* 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... | mit |
Leeway213/BSP-aw1689 | loong/pctools/windows/buildscripts/iot-adk-addonkit/Templates/installupdates.cmd | 393 | @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... | mit |
apurvis/petitioneer | config/initializers/session_store.rb | 143 | # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_petitioneer_session'
| mit |
taylordaug/phase-0 | week-9/review.js | 3848 | // 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
// ... | mit |
jdashg/misc | colors/from-coeffs.html | 8409 | <!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<... | mit |
GlukKazan/GlukKazan.github.io | checkmate/scripts/visavis-chess.js | 18337 | 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:... | mit |
alexlarsson/gthree | gthree/gthreevectorkeyframetrack.h | 1588 | #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 ... | mit |
owlhouseconsultingllc/viz | scripts/PHPAuth/Auth.php | 15122 | <?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', '<')) {
... | mit |
pootzko/InfluxData.Net | InfluxData.Net.InfluxDb/Models/Responses/User.cs | 346 | 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... | mit |
cjlucas/go-audiotag | src/github.com/cjlucas/audiotag/id3/util.go | 649 | 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[... | mit |
alexeagle/material2 | src/demo-app/menu/menu-demo.html | 1753 | <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 ... | mit |
wikibus/Argolis | src/Examples/TestHydraApi/IssueFilter.cs | 356 | 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... | mit |
vinithanatarajan/Vini-training | c-exercises/structs/linked-list.c | 1014 | // 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... | mit |
jdavidberger/rikitiki | include/rikitiki/content_handler.h | 3280 | #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... | mit |
perzy/slim-demo | vendor/autoload.php | 183 | <?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit037b77112e3f60b3fb10492299961fe0::getLoader();
| mit |
dchanko/Badger | BadgerAddin2010/Ribbon.cs | 2794 | 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... | mit |
Ico093/TelerikAcademy | WebServesesAndCloud/Homework/01.ASP.NETWebAPI/WebApi/MusicStore.Api/App_Start/WebApiConfig.cs | 591 | 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
... | mit |
unclefrost/extrem.web | MVCForum.IOC/Bootstrapper.cs | 797 | 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));
... | mit |
alphagov/notifications-admin | app/templates/views/pricing/billing-details.html | 3319 | {% 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... | mit |
smo-key/NXTLib | nxtlib/src/Utils.cs | 1877 | 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)
{
... | mit |
samuelclay/NewsBlur | blog/_site/2015/08/25/even-the-folders-have-rss-feeds/index.html | 6956 | <!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:... | mit |
wyrover/ionic-components | ionic-coffee/details/details.html | 1187 | <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>
... | mit |
omniproject/ezstudio-tips-block | bundle/Installer/ContentTypeInstaller.php | 5989 | <?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... | mit |
jonboylailam/nodejs-react-app-starter | README.md | 495 | # 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... | mit |
jsmestad/frankie | lib/frankie.rb | 6584 | # 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, &... | mit |
arapaka/algorithms-datastructures | algorithms/src/main/java/tutorialHorizon/arrays/InsertionSort.java | 813 | 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... | mit |
ProtonMail/WebClient | packages/components/containers/api/apiStatusContext.ts | 196 | import { createContext } from 'react';
export const defaultApiStatus = {
offline: false,
apiUnreachable: '',
appVersionBad: false,
};
export default createContext(defaultApiStatus);
| mit |
bjrmatos/docs | docs/embedding.md | 4609 | > 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... | mit |
thecodebureau/epiphany | schemas/article.js | 10188 | 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 ... | mit |
griimick/feature-mlsite | app/liner/views.py | 1108 | 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... | mit |
lmazuel/azure-sdk-for-python | azure-mgmt-web/azure/mgmt/web/models/dimension.py | 1562 | # 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 ... | mit |
dryzhkov/ps-react-dr | README.md | 330 | # 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... | mit |
misizeji/StudyNote_201308 | webserver/html/qdbusabstractadaptor-members.html | 7196 | <?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... | mit |