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 |
|---|---|---|---|---|---|
var GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
var util = require('util');
var session = require('express-session');
var passport = require('passport');
module.exports = (app, url, appEnv, User) => {
app.use(session({
secret: process.env.SESSION_SECRET,
name: 'freelancalot',... | lorentzlasson/node-angular-starter | auth.js | JavaScript | mit | 2,087 |
const path = require('path');
const express = require('express');
const bodyParser = require('body-parser');
const auth = require('http-auth');
// const basicAuth = require('basic-auth-connect');
const apiHandler = require('./api-handler')
/**
* Installs routes that serve production-bundled client-side assets.
* It i... | codycoggins/angular2-starter-cody | server/node-app-server.js | JavaScript | mit | 1,845 |
from djblets.cache.backend import cache_memoize
class BugTracker(object):
"""An interface to a bug tracker.
BugTracker subclasses are used to enable interaction with different
bug trackers.
"""
def get_bug_info(self, repository, bug_id):
"""Get the information for the specified bug.
... | reviewboard/reviewboard | reviewboard/hostingsvcs/bugtracker.py | Python | mit | 1,633 |
using System;
using System.Linq;
namespace TypeScriptDefinitionsGenerator.Common.Extensions
{
public static class StringExtensions
{
public static string ToCamelCase(this string value)
{
return value.Substring(0, 1).ToLower() + value.Substring(1);
}
public static s... | slovely/TypeScriptDefinitionsGenerator | src/TypeScriptDefinitionsGenerator.Common/Extensions/StringExtensions.cs | C# | mit | 1,661 |
package net.zer0bandwidth.android.lib.content.querybuilder;
import android.content.ContentResolver;
import android.support.test.runner.AndroidJUnit4;
import android.test.ProviderTestCase2;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Assert.assertNull... | zerobandwidth-net/android | libZeroAndroid/src/androidTest/java/net/zer0bandwidth/android/lib/content/querybuilder/DeletionBuilderTest.java | Java | mit | 1,665 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.... | yue-litam/yue-litam.github.io | archives/2019/04/index.html | HTML | mit | 10,951 |
/*
* $QNXLicenseC:
* Copyright 2009, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/LICE... | guileschool/BEAGLEBONE-tutorials | BBB-firmware/qnxbsp-nto650-ti-beaglebone-sp1/src/hardware/startup/lib/public/arm/beaglebone.h | C | mit | 2,689 |
/**
@Generated Pin Manager Header File
@Company:
Microchip Technology Inc.
@File Name:
pin_manager.h
@Summary:
This is the Pin Manager file generated using MPLAB® Code Configurator
@Description:
This header file provides implementations for pin APIs for all pins selected in the GUI.
Ge... | uazipsev/EV15 | DDS.X/mcc_generated_files/pin_manager.h | C | mit | 17,150 |
using System;
namespace DD.Cloud.WebApi.TemplateToolkit
{
/// <summary>
/// Factory methods for creating value providers.
/// </summary>
/// <typeparam name="TContext">
/// The type used as a context for each request.
/// </typeparam>
public static class ValueProvider<TContext>
{
/// <summary>
/// Crea... | DimensionDataCBUSydney/Watt | Watt/ValueProvider.cs | C# | mit | 5,719 |
#ifndef COBALT_UTILITY_HPP_INCLUDED
#define COBALT_UTILITY_HPP_INCLUDED
#pragma once
#include <cobalt/utility/compare_floats.hpp>
#include <cobalt/utility/enum_traits.hpp>
#include <cobalt/utility/enumerator.hpp>
#include <cobalt/utility/factory.hpp>
#include <cobalt/utility/hash.hpp>
#include <cobalt/utility/type_in... | mzhirnov/cobalt | include/cobalt/utility.hpp | C++ | mit | 530 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Babylonian</source>
<translation>در مورد Babylonian</translation>
... | bblonian/Babylonian | src/qt/locale/bitcoin_fa.ts | TypeScript | mit | 119,341 |
import sys
from stack import Stack
def parse_expression_into_parts(expression):
"""
Parse expression into list of parts
:rtype : list
:param expression: str # i.e. "2 * 3 + ( 2 - 3 )"
"""
raise NotImplementedError("complete me!")
def evaluate_expression(a, b, op):
raise NotImplementedErr... | tylerprete/evaluate-math | postfix.py | Python | mit | 792 |
namespace TraverseDirectory
{
using System;
using System.IO;
using System.Text;
using System.Xml;
class Program
{
static void Main()
{
using (XmlTextWriter writer = new XmlTextWriter("../../dir.xml", Encoding.UTF8))
{
writer.Formatting = ... | Telerik-Homework-ValentinRangelov/Homework | Databases and SQL/XML-Parsers/TraverseDirectory/Program.cs | C# | mit | 1,550 |
__history = [{"date":"Fri, 12 Jul 2013 08:56:55 GMT","sloc":9,"lloc":7,"functions":0,"deliveredBugs":0.05805500935039566,"maintainability":67.90674087790423,"lintErrors":3,"difficulty":5.3076923076923075}] | Schibsted-Tech-Polska/stp.project_analysis | reports/files/node_modules_mocha_node_modules_debug_example_wildcards_js/report.history.js | JavaScript | mit | 205 |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
/* eslint-disable */
'use strict';
var path = require('path');
module.exports = function configGrunt(grunt, p) {
grunt.registerTask('test', []);
};
| nickclar/spark-js-sdk | packages/node_modules/@ciscospark/storage-adapter-spec/Gruntfile.js | JavaScript | mit | 231 |
// Preprocessor Directives
#define STB_IMAGE_IMPLEMENTATION
// Local Headers
#include "glitter.hpp"
#include "shader.h"
#include "camera.h"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
//#inc... | THISISAGOODNAME/learnopengl-glitter | other/renderDoc reverse engineering/main.cpp | C++ | mit | 88,752 |
require File.expand_path('../boot', __FILE__)
require 'rails'
# Pick the frameworks you want:
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
# requi... | riseshia/lazyCat | config/application.rb | Ruby | mit | 1,526 |
{{<govuk_template}}
{{$head}}
{{>includes/elements_head}}
{{>includes/elements_scripts}}
{{/head}}
{{$propositionHeader}}
{{>includes/propositional_navigation3}}
{{/propositionHeader}}
{{$headerClass}}with-proposition{{/headerClass}}
{{$content}}
<header class="page-header">
</header>
<main id="page-conta... | benjystanton/F2D-Prototype | app/views/eligibility/3/CV-2.html | HTML | mit | 2,293 |
using System.ComponentModel.DataAnnotations;
namespace ContosoUniversity.Web.ViewModels
{
public class TokenViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
... | alimon808/contoso-university | ContosoUniversity.Web/ViewModels/TokenViewModel.cs | C# | mit | 326 |
<?php
session_start();
include_once "base.php";
$rowsPerPage=10;
$offset=2;
$sql = "SELECT area_code,area_desc,active FROM `area` ORDER BY area_code ";
$query = mysql_query($sql);
if(!$query) die('MySQL Error: '.mysql_error());
?>
<div class='form'>
<button onclick="open_menu('area_form');"><s... | StarkLiew/AtOfis | callback/area_browse.php | PHP | mit | 1,048 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Shop_currency_model</title>
<link rel="stylesheet" href="resources/bootstrap.min.css?08b23951ef4599ca9cbf1f902d0e8290c9653ddd">
<link rel="stylesheet" href="resources/style.css?062e9e59e0b8c44fbaaded5b7ffc21f907b78669">
</head>
<body>
<div id="n... | nailsapp/site-docs | api/class-Shop_currency_model.html | HTML | mit | 39,313 |
require "spec_helper"
describe Time do
describe ".beginning_of_timehop_day" do
subject { time.beginning_of_timehop_day }
context "after 5am" do
let(:time) { Time.parse("2011-11-07 15:15:33") }
let(:beginning_of_timehop_day) { Time.parse("2011-11-07 5:00:00") }
it { should be_within(1.second... | timehop/timehop_time | spec/timehop_time/time_spec.rb | Ruby | mit | 1,128 |
#PDF Finish
PDF finishing touches tool to add metadata and table of contents.
Generated PDF files, from various programs, may not have complete metadata
and may not have the desired content in the navigation table of contents
available in online readers.
##Usage
There are two usage modes, show and update.
###Show ... | joemcintyre/pdf-finish | README.md | Markdown | mit | 2,202 |
<?php
use Guzzle\Plugin\Mock\MockPlugin;
use OpenTok\Archive;
use OpenTok\Util\Client;
class ArchiveTest extends PHPUnit_Framework_TestCase {
// Fixtures
protected $archiveData;
protected $API_KEY;
protected $API_SECRET;
protected $archive;
protected $client;
protected static $mockBase... | benhammadiali/ISETK | vendor/opentok/opentok/tests/OpenTok/ArchiveTest.php | PHP | mit | 9,807 |
package ca.uwo.eng.sel.cepsim.placement
import java.util.{List => JavaList, Set => JavaSet}
import ca.uwo.eng.sel.cepsim.query._
import scala.collection.JavaConversions._
import scala.collection.mutable
/** Companion Placement object */
object Placement {
// ----------------------- for java usage
def apply(vert... | virsox/cepsim | cepsim-core/src/main/scala/ca/uwo/eng/sel/cepsim/placement/Placement.scala | Scala | mit | 6,424 |
"use strict";
const util = require("util");
const colors = require("colors");
const consoleLog = console.log;
const consoleWarn = console.warn;
const consoleError = console.error;
const EError = require("../eerror");
function padd(str, length = process.stdout.columns) {
return str + " ".repeat(length - str.length... | archfz/drup | src/terminal-utils/formatter.js | JavaScript | mit | 5,026 |
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var url = require('url');
var log4js = require('log4js');
var stashBoxConfig = require('./lib/config');
var pkg = require('./package.json');
var proxy = require('express-http-proxy');
var fileDriver = require('./d... | SynchroLabs/StashBox | app.js | JavaScript | mit | 7,225 |
require 'active_support/core_ext/array/conversions'
require 'delegate'
module ServiceObject
# Provides a customized +Array+ to contain errors that happen in service layer.
# Also provides a utility APIs to handle errors well in controllers.
# (All array methods are available by delegation, too.)
# errs = Se... | untidy-hair/service_object | lib/service_object/errors.rb | Ruby | mit | 2,021 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @author victor li nianchaoli@msn.cn
# @date 2015/10/07
import baseHandler
class MainHandler(baseHandler.RequestHandler):
def get(self):
self.redirect('/posts/last')
| lncwwn/woniu | routers/mainHandler.py | Python | mit | 224 |
//
// NSDate+WT.h
// lchSDK
//
// Created by lch on 16/1/12.
// Copyright © 2015年 lch. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (WT)
- (BOOL)isThisYear; /** 判断某个时间是否为今年 */
- (BOOL)isYesterday; /** 判断某个时间是否为昨天 */
- (BOOL)isToday; /** 判断某个时间是否为今天 */
/** 字符串时间戳。 */
... | lch872/lchSDK | lchSDK/Category/NS/NSDate+WT.h | C | mit | 4,828 |
/**
*
*/
package me.dayler.ai.ami.conn;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.util.regex.Pattern;
... | dayler/AsteriskInterface | src/me/dayler/ai/ami/conn/SocketConnectionFacadeImpl.java | Java | mit | 4,154 |
<!DOCTYPE html>
<html lang="en-us" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Scope and Interpolation</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- load bootstrap and fontawesome via CDN --... | JulianNicholls/Understanding-AngularJS | scope-interpolation/index.html | HTML | mit | 1,550 |
// test/main.js
var Parser = require('../src/markdown-parser');
var parser = new Parser();
var parserOptions = new Parser();
var assert = require("assert");
describe('tests', function() {
describe('parsing', function() {
it('bold', function(done) {
parser.parse("**b** __b__", function(err, result) { ... | darul75/markdown-parser | test/main.js | JavaScript | mit | 3,107 |
import React from "react";
import { connect } from "react-redux";
import { withRouter, Route } from "react-router";
import { Link } from "react-router-dom";
import { Entry } from "../../pages/entry";
class BlogCard extends React.Component {
render() {
return (
<div>
<h2>{this.props.title}</h2>
... | relhtml/prologue | components/BlogCard/index.js | JavaScript | mit | 481 |
.page-content .navbar-fixed-bottom,.page-content .navbar-fixed-top{position:relative}.page-content .card-block{padding-left:0;padding-right:0}.page-content .card-block .card-link+.card-link{margin-left:0}.scrollspy-example{position:relative;height:200px;padding:0 20px;overflow:auto;-webkit-box-shadow:0 2px 4px rgba(0,0... | harinathebc/sample_codeigniter | assets/examples/css/structure/navbars.min.css | CSS | mit | 496 |
module.exports = {
stores: process.env.STORES ? process.env.STORES.split(',') : [
'elasticsearch',
'postgresql',
'leveldb'
],
postgresql: {
host: process.env.POSTGRESQL_HOST || 'localhost',
port: process.env.POSTGRESQL_PORT || '5432',
username: process.env.POSTGRESQL_USER || 'postgres',... | trappsnl/dstore | config.js | JavaScript | mit | 1,089 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Mon Nov 01 20:33:53 CET 2010 -->
<TITLE>
Uses of Class play.libs.WS (Play! API)
</TITLE>
<META NAME="date" CONTENT="2010-11-01">
<LINK REL =... | ericlink/adms-server | playframework-dist/play-1.1/documentation/api/play/libs/class-use/WS.html | HTML | mit | 5,793 |
import React from 'react';
import { createStore } from 'redux';
import { createBrowserHistory } from 'history';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import rootReducer from '../../src/reducers';
import Routes from '../../src/Routes';
import App from '../../src/containers/App';
cons... | elemus/react-redux-todo-example | test/containers/App.spec.js | JavaScript | mit | 652 |
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<string.h>
int main(){
int pid1,pid2,pid3,pid4;
int p1[2],p2[2];
char bufr[30],rev[30];
int countL=0,countU=0,i=-1,j=0,countV=0,len;
pipe(p1);
pipe(p2);
if(pid1=fork()==0){
if(pid2=fork()==0){
read(p2[0],bufr,sizeof(bu... | CSE-SOE-CUSAT/NOSLab | csb/extras/a-b-c-d-pipe.c | C | mit | 1,716 |
import appActions from './application'
import todosActions from './todos'
import filterActions from './filter'
import commentsActions from './comments'
import userActions from './user'
export {
appActions,
todosActions,
filterActions,
commentsActions,
userActions
}
export * from './application'
export * fro... | Angarsk8/elixir-cowboy-react-spa | client/src/actions/index.js | JavaScript | mit | 407 |
<link data-turbolinks-track="true" href="http://zebra.easybird.cn//assets/application-9f674e9fd925ff3aca42c05a9a21bdaad56211d8ce90de12ecd1924966593d71.css" media="all" rel="stylesheet">
<script data-turbolinks-track="true" src="http://zebra.easybird.cn//assets/assets/application-ae2722ac77e8668d4e05ad6a5bdd5abd8220... | dreamlx/zebra | app/views/reports/编码管理首页/二维码查询.html | HTML | mit | 2,940 |
package info.yongli.statistic.table;
/**
* Created by yangyongli on 25/04/2017.
*/
public class ColumnTransformer {
}
| yongli82/dsl | src/main/java/info/yongli/statistic/table/ColumnTransformer.java | Java | mit | 123 |
#region License
// Copyright (c) 2009 Sander van Rossen
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... | xlgames-inc/XLE | Tools/HyperGraph/NodeConnector.cs | C# | mit | 3,299 |
# ProductAccess_server
start ```npm run start```
| FlorianEdelmaier/ProductAccess_server | README.md | Markdown | mit | 49 |
import * as R_drop from '../ramda/dist/src/drop';
declare const number: number;
declare const string: string;
declare const boolean_array: boolean[];
// @dts-jest:pass
R_drop(number, string);
// @dts-jest:pass
R_drop(number, boolean_array);
| ikatyang/types-ramda | tests/drop.ts | TypeScript | mit | 243 |
/*
Title: Behavioral Finance and Market Behavior
layout: chapter
*/
## Chapter Learning Objectives
### Section 1 - Investor Behavior
- Identify and describe the biases that can affect investor decision making.
- Explain how framing errors can influence investor decision making.
- Identify the factors that can influe... | lanacademy/lan-learn | content/individual_finance/5.Behavioral_Finance_and_Market_Behavior/index.md | Markdown | mit | 1,122 |
function browserSupportsHtml5HistoryApi() {
return !! (history && history.replaceState && history.pushState);
}
$(document).ready(function() {
//_gaq.push(['_trackEvent', 'Citizen-Format-Smartanswer', 'Load']);
if(browserSupportsHtml5HistoryApi()) {
var formSelector = ".current form";
initializeHistory(... | ministryofjustice/smart-answers | app/assets/javascripts/smart-answers.js | JavaScript | mit | 4,962 |
.crystal-tooltip {
position: absolute;
z-index: 1030;
display: block;
padding: 5px;
font-size: 13px;
opacity: 0;
filter: alpha(opacity=0);
visibility: visible;
}
.crystal-tooltip.shown {
opacity: .8;
}
.crystal-tooltip.bottom {
margin-bottom: -3px;
padding-top: 9px;
}
.crystal-tooltip.top {
... | ku6ryo/artdope | themes/crystal/css/tooltip.css | CSS | mit | 976 |
<?php
/*
* This file is part of the Symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\Security\User;
use Symfony\Compo... | spf13/symfony | tests/Symfony/Tests/Component/Security/User/AccountCheckerTest.php | PHP | mit | 3,936 |
Ext.define('CustomIcons.view.Main', {
extend: 'Ext.tab.Panel',
xtype: 'main',
requires: [
'Ext.TitleBar',
'Ext.Video'
],
config: {
tabBarPosition: 'bottom',
items: [
{
title: 'Welcome',
iconCls: 'headphones',
... | joshuamorony/CustomIcons | app/view/Main.js | JavaScript | mit | 1,564 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../../_lib/setUTCDay/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('../../../_lib/setUTCISODay/index.js');
var _index4 = _interopRequireDefault(_index3);
var _index5 = require(... | lucionei/chamadotecnico | chamadosTecnicosFinal-app/node_modules/date-fns/parse/_lib/units/index.js | JavaScript | mit | 4,996 |
<script src='<?php echo base_url()?>assets/js/tinymce/tinymce.min.js'></script>
<script>
tinymce.init({
selector: '#myartikel'
});
</script>
<form action="<?php echo base_url('admin/Cartikel_g/proses_add_artikel') ?>" method="post" enctype="multipart/form-data">
<div class="col-md-8 whitebox">
<h3 cl... | afifhidayat24/minunew | application/views/admin/add-guru-artikel-v.php | PHP | mit | 2,940 |
// Copyright (c) 2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_SPAN_H
#define BITCOIN_SPAN_H
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#incl... | Bitcoin-ABC/bitcoin-abc | src/span.h | C | mit | 11,773 |
# frozen_string_literal: true
module ArrayUtil
def self.insert_before(array, new_element, element)
idx = array.index(element) || -1
array.insert(idx, new_element)
end
def self.insert_after(array, new_element, element)
idx = array.index(element) || -2
array.insert(idx + 1, new_element)
end
en... | tablexi/nucore-open | lib/array_util.rb | Ruby | mit | 322 |
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>List component - UIkit documentation</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link... | larsito030/elternfreund | docs/list.html | HTML | mit | 17,974 |
// get params
function getParams()
{
var params = {
initial_amount: parseInt($('#initial_amount').val(), 10) || 0,
interest_rate_per_annum: parseFloat($('#interest_rate_per_annum').val()) / 100 || 0,
monthly_amount: parseFloat($('#monthly_amount').val()),
num_months: parseInt($('#num_months').val(), 10)
};
... | timotheeg/html_loan_calculator | js/main.js | JavaScript | mit | 2,663 |
using Lidgren.Network;
namespace Gem.Network.Handlers
{
public class DummyHandler : IMessageHandler
{
public void Handle(NetConnection sender, object args)
{ }
}
}
| gmich/Gem | Gem.Network/Handlers/DummyHandler.cs | C# | mit | 195 |
define([
"dojo/_base/declare",
"dojo/_base/fx",
"dojo/_base/lang",
"dojo/dom-style",
"dojo/mouse",
"dojo/on",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dojo/text!./templates/TGPrdItem.html",
"dijit/_OnDijitClickMixin",
"dijit/_WidgetsInTemplateMixin",
"dijit/form/Button"
], function(declar... | MingXingTeam/dojo-mobile-test | contactsList/widgets/TGPrdWidget/TGPrdWidget.js | JavaScript | mit | 2,307 |
<?php
/**
* PHPUnit
*
* Copyright (c) 2002-2009, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code m... | olle/baseweb | lib/php/PHPUnit/Extensions/PerformanceTestCase.php | PHP | mit | 4,120 |
const { ipcRenderer, remote } = require('electron');
const mainProcess = remote.require('./main');
const currentWindow = remote.getCurrentWindow();
const $name = $('.name-input');
const $servings = $('.servings-input');
const $time = $('.time-input');
const $ingredients = $('.ingredients-input');
const $directions = $... | mjvalade/electron-recipes | app/renderer.js | JavaScript | mit | 1,232 |
require 'spec_helper'
module Sexpr::Matcher
describe Rule, "eat" do
let(:rule){ Rule.new :hello, self }
def eat(seen)
@seen = seen
end
it 'delegates to the defn' do
rule.eat([:foo])
@seen.should eq([:foo])
end
end
end
| blambeau/sexpr | spec/unit/matcher/rule/test_eat.rb | Ruby | mit | 264 |
/*
* Store drawing on server
*/
function saveDrawing() {
var drawing = $('#imagePaint').wPaint('image');
var imageid = $('#imageTarget').data('imageid');
var creatormail = $('input[name=creatorMail]').val();
//Add spinning wheel
var spin = $(document.createElement('div'));
spin.addClass('spin');
$(... | lukpueh/Mach-die-strasse-bunt | static/js/main.js | JavaScript | mit | 6,075 |
'use strict'
//Globals will be the stage which is the parrent of all graphics, canvas object for resizing and the renderer which is pixi.js framebuffer.
var stage = new PIXI.Container();
var canvas = document.getElementById("game");;
var renderer = PIXI.autoDetectRenderer(1024, 570, {view:document.getElementById("game... | Sanguinary/Poolhopper | bin/init.js | JavaScript | mit | 4,385 |
import React, {Component} from 'react';
import {connect} from 'react-redux';
class MapFull extends Component {
constructor() {
super();
this.state = {
htmlContent: null
};
}
componentDidMount() {
this.getMapHtml();
}
componentDidUpdate(prevProps, prevState) {
if (!this.props.map... | howardjones/network-weathermap | websrc/cacti-user/src/components/MapFull.js | JavaScript | mit | 1,270 |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jas... | positive-js/mosaic | packages/docs/karma.conf.js | JavaScript | mit | 866 |
# AsylumJam2016
Projet VR sur mobile.
| RemiFusade2/AsylumJam2016 | README.md | Markdown | mit | 38 |
---
description: An example using the Auth0 Quickstart for a SPA implementation with Auth0 Universal Login.
classes: video-page
---
# Authenticate: SPA Example
See an example using the Auth0 Quickstart for a single-page application (SPA) implementation and learn how Auth0's Universal Login feature does most of the aut... | yvonnewilson/docs | articles/videos/get-started/04_02-authenticate-spa-example.md | Markdown | mit | 9,894 |
<div class="container">
<div class="row">
<sd-toolbar></sd-toolbar>
</div>
<div class="row">
<sd-navbar></sd-navbar>
</div>
<div class="row">
<router-outlet></router-outlet>
</div>
</div>
| EricBou/N3-UX | src/client/app/components/app.component.html | HTML | mit | 212 |
from ab_tool.tests.common import (SessionTestCase, TEST_COURSE_ID,
TEST_OTHER_COURSE_ID, NONEXISTENT_TRACK_ID, NONEXISTENT_EXPERIMENT_ID,
APIReturn, LIST_MODULES)
from django.core.urlresolvers import reverse
from ab_tool.models import (Experiment, InterventionPointUrl)
from ab_tool.exceptions import (EXPERIMENT... | penzance/ab-testing-tool | ab_tool/tests/test_experiment_pages.py | Python | mit | 28,898 |
#-*- coding: utf-8 -*-
from flask import current_app, flash, url_for, request
from flask_admin import expose, BaseView
from logpot.admin.base import AuthenticateView, flash_errors
from logpot.admin.forms import SettingForm
from logpot.utils import ImageUtil, getDirectoryPath, loadSiteConfig, saveSiteConfig
import os... | moremorefor/Logpot | logpot/admin/setting.py | Python | mit | 2,802 |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Queues extends CI_Controller {
public function __construct()
{
parent::__construct();
date_default_timezone_set('Asia/Kolkata');
$this->is_logged_in();
}
public function index()
{
$data['pag... | dazal/dazlive | application/controllers/Queues_old.php | PHP | mit | 3,814 |
SOURCES=$(shell find notebooks -name *.Rmd)
TARGETS=$(SOURCES:%.Rmd=%.pdf)
%.html: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
%.pdf: %.Rmd
@echo "$< -> $@"
@Rscript -e "rmarkdown::render('$<')"
default: $(TARGETS)
clean:
rm -rf $(TARGETS)
| audy/make-rmarkdown | Makefile | Makefile | mit | 266 |
---
header: meta
example: Collection.meta
---
The `meta` attribute is a special attribute on a Collection which allows you to store additional information about the Collection instance. For example, you can save pagination data in `meta`.
The meta information is part of the information that is stored in the object w... | rendrjs/rendrjs.github.io | _collection/meta.md | Markdown | mit | 396 |
use std::ops::{Add, Mul};
use std::iter::Sum;
#[derive(Copy, Clone, Serialize, Deserialize)]
pub struct Color(pub f64, pub f64, pub f64);
pub const RED: Color = Color(1.0, 0.0, 0.0);
pub const GREEN: Color = Color(0.0, 1.0, 0.0);
pub const BLUE: Color = Color(0.0, 0.0, 1.0);
pub const WHITE: Color = Color(1.0, 1.0, 1... | Vzaa/craycray | src/color.rs | Rust | mit | 1,432 |
<?php namespace Todohelpist\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Inspire extends Command {
/**
* The console command name.
*
* @var string
*/
protected... | Swader/todohelpist | app/Console/Commands/Inspire.php | PHP | mit | 619 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.10.... | digitalheir/java-wetten-nl-library | src/main/java/nl/wetten/bwbng/toestand/Intitule.java | Java | mit | 7,834 |
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("Dn... | DnDGen/DNDGenSite | DnDGen.Web.Tests.Integration/Properties/AssemblyInfo.cs | C# | mit | 1,432 |
var f = require('fs');
var _ = require('underscore');
var r = {};
var cr = require('../config.json').resources;
var k = require('../config.json').plugins;
var b = require('../config.json').APIVARS.PLUGINS;
var n = __dirname.replace('/autoform', b.DIR);
var w = ['tokens', 'settings'];
var s = ['actions', 'login', 'recov... | obandox/JS-Xmas-Store-App-CodingClubVP | autoform/_wizard.js | JavaScript | mit | 1,313 |
SET DEFINE OFF;
ALTER TABLE AFW_13_PAGE_ITEM ADD (
CONSTRAINT AFW_13_PAGE_ITEM_FK2
FOREIGN KEY (REF_MESG_AIDE)
REFERENCES AFW_01_MESG (SEQNC)
ENABLE VALIDATE)
/
| lgcarrier/APEXFramework | 5.2.3/Database/Constraints/AFW_13_PAGE_ITEM_FK2.sql | SQL | mit | 171 |
// Copyright © 2014-2016 Ryan Leckey, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#ifndef ARROW_PASS_H
#define ARROW_PASS_H
#include <memory>
#include <string>
#include "arrow/generator.hpp"
namespace arrow {
class Pass {
public:
explicit Pass(GContext& ctx) : _ct... | arrow-lang/arrow | include/arrow/pass.hpp | C++ | mit | 572 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once("Auth.php");
class GameQuestion extends Auth {
public function __construct(){
parent::__construct();
$this->load->model("game_md");
$this->load->model("question_md");
}
public function index($game_id)
{
$data = arra... | premkamon746/quizgame | application/controllers/GameQuestion.php | PHP | mit | 2,321 |
---
date: 2015-05-09T16:59:30+02:00
title: "Exporting Your Mockups"
menu: "menugoogledrive3"
product: "Balsamiq Mockups 3 for Google Drive"
weight: 160
tags:
- "Exporting"
- "PDF"
- "PNG"
- "Printing"
- "Image"
include: "exporting"
editorversion: 3
aliases: /google-drive/exporting/
---
| balsamiq/docs.balsamiq.com | content/google-drive/b3/exporting.md | Markdown | mit | 297 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | gmange/RT | src/get_next_line.c | C | mit | 4,184 |
/* ===========================================================
* bootstrap-modal.js v2.1
* ===========================================================
* Copyright 2012 Jordan Schroter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | ner0tic/landmarxApp | src/Landmarx/UtilityBundle/Resources/public/js/bootstrap-modal.js | JavaScript | mit | 9,265 |
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
namespace Affixx.Core.Database.Generator
{
internal class SqlServerSchemaReader : SchemaReader
{
private DbConnection _connection;
public override Tables ReadSchema(DbConnection connection)
{
var result = new Tables();
_c... | Affixx/affixx | Affixx.Core/Database/Generator/SqlServerSchemaReader.cs | C# | mit | 4,940 |
<p align="center"><a href="https://godoc.org/github.com/volatile/response"><img src="http://volatile.whitedevops.com/images/repositories/response/logo.png" alt="response" title="response"></a><br><br></p>
Package [response](https://godoc.org/github.com/volatile/response) is a helper for the [core](https://godoc.org/gi... | volatile/response | README.md | Markdown | mit | 547 |
<div class="row">
<div class="col-xs-4 form-group" validity-coordinator>
<label for="petname{{ctrl.index}}">Pet name</label>
<input validate ng-model="ctrl.pet.name" type="text" class="form-control" id="petname{{ctrl.index}}" />
<validity-indicator></validity-indicator>
</div>
<div class="col-xs-4 form-group">
... | nikospara/egkyron | src/examples/angular/app/scripts/main/petEditor.tpl.html | HTML | mit | 1,391 |
<p><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="bc.css">
<script src="run_prettify.js" type="text/javascript"></script>
<!---
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
-... | jeremytammik/tbc | a/1410_delete_print_setup.html | HTML | mit | 15,927 |
use SEPSLoader
go
-- Statement for schema creation
DECLARE @sql NVARCHAR(MAX)
SET @sql ='CREATE SCHEMA StackExchange AUTHORIZATION [dbo]'
IF NOT EXISTS(SELECT name FROM sys.schemas WHERE name = 'StackExchange')
begin
EXEC sp_executesql @sql;
end
-- NOTE: StackExchange is replaced by the name of the site
IF EXIST... | mjlmo/SEPSLoader | mssql.sql | SQL | mit | 10,242 |
var AWS = require('aws-sdk');
var Policy = require("./s3post").Policy;
var helpers = require("./helpers");
var POLICY_FILE = "policy.json";
var schedule = require('node-schedule');
var Worker = function(sqsCommnad, s3Object, simpleData){
var queue = sqsCommnad;
var s3 = s3Object;
var simpleDataAuth = simpleData;... | GlowackiHolak/awsWorker | worker.js | JavaScript | mit | 1,975 |
# TODO When raising an exception pass a lambda function, the function being the module/path/name thing
ERROR = {'default': "Unknown engine error ({0})",
400: "Bad request sent to search API ({0})",
401: "Incorrect API Key ({0})",
403: "Correct API but request refused ({0})",
404: "B... | leifos/ifind | ifind/search/exceptions.py | Python | mit | 2,524 |
import React, { Component } from 'react'
import { Form, Grid, Image, Transition } from 'shengnian-ui-react'
const transitions = [
'scale',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swi... | shengnian/shengnian-ui-react | docs/app/Examples/modules/Transition/Explorers/TransitionExampleGroupExplorer.js | JavaScript | mit | 1,810 |
#!/bin/bash
QBIN=$(which qdyn5_r8)
OK="(\033[0;32m OK \033[0m)"
FAILED="(\033[0;31m FAILED \033[0m)"
steps=( $(ls -1v *inp | sed 's/.inp//') )
for step in ${steps[@]}
do
echo "Running step ${step}"
if ${QBIN} ${step}.inp > ${step}.log
then echo -e "$OK"
cp ${step}.re ${step}.re.rest
else
echo -e "$FA... | mpurg/qtools | docs/tutorials/seminar_2017_03_08/data/2-fep/run_q_local.sh | Shell | mit | 396 |
# s-vertical-rhythm-class
Return the vertical-rhythm setting scope class
Return **{ [String](http://www.sass-lang.com/documentation/file.SASS_REFERENCE.html#sass-script-strings) }** The vertical-rhythm scope class from settings.vertical-rhythm.scope-class
Author : Olivier Bossel [olivier.bossel@gmail.com](mailto:oli... | Coffeekraken/sugar | doc/src/sass/core/functions/_s-vertical-rhythm-class.md | Markdown | mit | 397 |
export class Guest {
constructor(public name: String, public quantity: number){
}
} | vnaranjo/wedding-seating-chart | client/controllers/guest/guest.ts | TypeScript | mit | 95 |
FROM sameersbn/ubuntu:14.04.20150805
MAINTAINER sameer@damagehead.com
ENV REDMINE_VERSION=3.1.0 \
REDMINE_USER="redmine" \
REDMINE_HOME="/home/redmine" \
REDMINE_LOG_DIR="/var/log/redmine" \
SETUP_DIR="/var/cache/redmine" \
RAILS_ENV=production
ENV REDMINE_INSTALL_DIR="${REDMINE_HOME}/redmine" \
... | rewiko/docker-redmine | Dockerfile | Dockerfile | mit | 2,089 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dosen extends MY_Controller {
public $data = array(
'breadcrumb' => 'Dosen',
'pesan' => '',
'subtitle' => '',
'main_view' => 'viewDosen',
);
public function __construct(){
parent::__construct();
$this->load->model('Dosen_mod... | dhena201/tadev | application/controllers/Dosen.php | PHP | mit | 3,127 |
import {server} from './initializers'
module.exports = function startServer(){
server.listen(8080)
} | klirix/ThunderCloudServer | src/app.ts | TypeScript | mit | 105 |
## Estrutura de diretórios para projetos AngularJS
* app/ -> arquivos da aplicação
+ css/ -> arquivos css
+ js/ -> componentes javascript da aplicação
+ controllers/ -> diretório para os controllers
+ directives/ -> diret... | IgorSantos17/BigBangProject | AngularJS/AngularJS.md | Markdown | mit | 967 |
# totem-enquete-ru
Versão Arduino para dar sua opinião sobre o cardápio do Restaurante Universitário da UFRN
| m4nolo/totem-enquete-ru | README.md | Markdown | mit | 113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.