code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
import time
import json
import redis
import subprocess
from subprocess import Popen, check_output
import shlex
import os
from py_cf_new_py3.chain_flow_py3 import CF_Base_Interpreter
from redis_graph_py3 import farm_template_py3
class Process_Control(object ):
def __init__(self):
pass
de... | glenn-edgar/local_controller_3 | process_control_py3.py | Python | mit | 9,357 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | DustinCampbell/vscode | src/vs/base/browser/ui/tree/indexTreeModel.ts | TypeScript | mit | 14,919 |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Tests\Act... | jordisala1991/SonataAdminBundle | tests/Action/SetObjectFieldValueActionTest.php | PHP | mit | 14,552 |
module.exports={
"file":1, // fname, mode, contents
"filedelete":2, // fname
"checkout":3, // fname
"checkin":4, // fname
"ping":5, // -
"pong":6, // -
"edit":{
"open":100, // fname
"close":101, // fname
"open_ok":102, // fname
"open_err":103, // fname
"close_ok":104, // fname
"close_err":105 // fna... | tomsmeding/gvajnez | msgtype.js | JavaScript | mit | 329 |
package com.mines.main;
import com.mines.domain.enums.BoardSize;
import com.mines.domain.enums.Difficulty;
public class MineField{
private int[][] field;
private BoardSize size;
private Difficulty diff;
private int nrMines = 0;
public MineField(){
diff = Difficulty.EASY;
size = BoardSi... | tonycatapano/JMinesField | src/main/java/com/mines/main/MineField.java | Java | mit | 1,804 |
// Decompiled with JetBrains decompiler
// Type: System.Fabric.Management.ServiceModel.ApplicationPoliciesType
// Assembly: System.Fabric.Management.ServiceModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: C6D32D4D-966E-4EA3-BD3A-F4CF14D36DBC
// Assembly location: C:\Git\ServiceFabricSd... | aL3891/ServiceFabricSdkContrib | System.Fabric.Management.ServiceModel/ApplicationPoliciesType.cs | C# | mit | 2,017 |
# Django settings for obi project.
from os.path import abspath, dirname
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.... | adityadharne/TestObento | obi/obi/settings.py | Python | mit | 6,014 |
var Cheerleaders = angular.module('Cheerleaders', [ 'ngRoute', 'ngDragDrop', 'angularjs-dropdown-multiselect']);
Cheerleaders.config(function ($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/index.html',
controller: 'routineIndexController',
access: {restricted: true}
})
... | richard-mack/cheer-planner | client/app.js | JavaScript | mit | 1,525 |
require 'cocaine'
require 'English'
require 'time'
require_relative 'result'
require_relative 'error'
class LittleneckClamAV
class Clam
def engine
version[:engine] if available?
end
def database_version
version[:database_version].to_i if available?
end
def database_date
Time.... | theozaurus/littleneck_clamav | lib/littleneck_clamav/clam.rb | Ruby | mit | 2,029 |
using System;
using System.Threading.Tasks;
using work.bacome.async;
using work.bacome.imapclient.support;
using work.bacome.trace;
namespace work.bacome.imapclient
{
public partial class cIMAPClient
{
internal cMessageHandleList SetUnseenCount(iMailboxHandle pMailboxHandle)
{
var ... | bacome/imapclient | imapclient/imapclient/client/setunseencount.cs | C# | mit | 2,008 |
import assert from "assert";
import BufSamples from "../../../src/scapi/units/BufSamples";
describe("scapi/units/BufSamples", () => {
it(".kr should create control rate node", () => {
const node = BufSamples.kr(1);
assert.deepEqual(node, {
type: "BufSamples", rate: "control", props: [ 1 ]
});
})... | mohayonao/neume | test/scapi/units/BufSamples.js | JavaScript | mit | 684 |
<?php
namespace AerialShip\SteelMqBundle\Entity;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass="AerialShip\SteelMqBundle\Entity\Repository\User... | aerialship/steel-mq | src/AerialShip/SteelMqBundle/Entity/User.php | PHP | mit | 11,457 |
<?php
namespace GuildWars2\Api\Entity;
use GuildWars2\Api\SetEntityBase;
abstract class ItemInfoBase extends SetEntityBase
{
private $_itemId;
private $_amount;
private $_skinId;
private $_upgradeIds;
private $_infusionIds;
private $_bindType;
private $_boundCharacterName;
protected ... | TorbenKoehn/gw2-php | Api/Entity/ItemInfoBase.php | PHP | mit | 2,373 |
#pragma once
/* LightedMaterial.hpp
*
* Copyright (C) 2017 Dynamic Reflectance
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
//std
#include <string>
#include <vector>
namespace core {
namespace utils {
std::vector<std::s... | dynamicreflectance/core | utils/source/Tokenizer.hpp | C++ | mit | 558 |
import { combineReducers } from 'redux';
import { routerReducer as routing } from 'react-router-redux';
import account from '../reducers/account';
import authentication from '../reducers/authentication';
import user from '../reducers/user';
import modelPortfolio from '../reducers/modelPortfolio';
import portfolio from ... | AlexisDeschamps/portfolio-rebalancer | app/reducers/index.js | JavaScript | mit | 1,039 |
var mongo = require('mongodb');
var fs = require('fs');
var path = require("path");
var Server = mongo.Server,
Db = mongo.Db,
BSON = mongo.BSONPure;
var server = new Server('localhost', 27017, {auto_reconnect: true});
db = new Db('vivudb', server);
function getExtPart(str){
var n=str.split(".");
return n[... | tonycaovn/vivuserver | services/audio.js | JavaScript | mit | 5,449 |
var gulp = require('gulp');
var connect = require('gulp-connect');
var wiredep = require('wiredep').stream;
var $ = require('gulp-load-plugins')();
var del = require('del');
var jsReporter = require('jshint-stylish');
var annotateAdfPlugin = require('ng-annotate-adf-plugin');
var pkg = require('./package.json');
var a... | reshak/angular-dashboard-framework | sample/widgets/deviceInventory/gulpfile.js | JavaScript | mit | 2,787 |
from rest_framework import serializers
from rest_auth.serializers import UserDetailsSerializer
class UserSerializer(UserDetailsSerializer):
website = serializers.URLField(source="userprofile.website", allow_blank=True, required=False)
about = serializers.CharField(source="userprofile.about", allow_blank=True... | ZachLiuGIS/reactjs-auth-django-rest | django_backend/user_profile/serializers.py | Python | mit | 1,016 |
/** @license React vundefined
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !... | cdnjs/cdnjs | ajax/libs/react/18.0.0-alpha-bdd6d5064-20211001/umd/react.development.js | JavaScript | mit | 112,128 |
<?
$prefix = $_SERVER['DOCUMENT_ROOT'];
require_once($prefix . '/common/markdown.php');
require_once($prefix . '/common/smartypants.php');
// Connect to Database
include('common/dbconnect.php');
// Only items that have been published
// (No posts scheduled for the future)
$post_cutoff_time = time();
// Number of Pos... | mk14/Long-Beach | atom-feed.php | PHP | mit | 3,777 |
angular.module('ExampleCtrl', []).controller('ExampleCtrl', ['$scope',
function($scope) {
$scope.createItems = function() {
$scope.items = [];
for (var i = 0; i < 100; i++) {
$scope.items[i] = {
ratio: Math.max(0.4, Math.random() * 2),
color: ... | homerjam/angular-columnify | example/app.js | JavaScript | mit | 557 |
package model.expression;
/**
* The type Operation.
*/
public class Operation
{
/**
* The constant ADD.
*/
public static final int ADD = 1;
/**
* The constant SUBTRACT.
*/
public static final int SUBTRACT = 2;
/**
* The constant MULTIPLY.
*/
public static fi... | leyyin/university | advanced-programming-methods/labs/toy-interpreter-java/src/model/expression/Operation.java | Java | mit | 895 |
var _ = require('lodash'),
EventEmitter = require('events').EventEmitter,
config = require('./config'),
Channel = require('./channel'),
Connection = require('./connection'),
Bus = require('./bus'),
API = require('./utils');
var subscribedChannels;
func... | dobrite/gusher | src/javascripts/gusher.js | JavaScript | mit | 1,015 |
var less = require('less');
var lessStr = '.class { width: (1+1)}';
less.render(lessStr, function(e, output) {
console.log(output.css);
});
console.log(less.render(lessStr)); | escray/besike-nodejs-harp | lessExample.js | JavaScript | mit | 177 |
namespace LibMinecraft
{
public struct Vector3
{
public static Vector3 Zero
{
get { return new Vector3(0, 0, 0); }
}
public static Vector3 UpX
{
get { return new Vector3(1, 0, 0); }
}
public static Vector3 UpY
{
get { return new Vector3(0, 1, 0); }
}
public static Vector3 UpZ
{
get... | inku25253/MineProtocol.net | LibMinecraft/Vector3.cs | C# | mit | 996 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TheCode
{
public class Customer
{
public string Id { get; set; }
public string Name { get; set; }
public bool Pro { get; set; }
}
}
| chadmichel/UnitTest | TheCode/Customer.cs | C# | mit | 298 |
<?php
$ISO_3166_2 = array();
$ISO_3166_2['01'] = "Adana";
$ISO_3166_2['02'] = "Adiyaman";
$ISO_3166_2['03'] = "Afyonkarahisar";
$ISO_3166_2['04'] = "Agri";
$ISO_3166_2['68'] = "Aksaray";
$ISO_3166_2['05'] = "Amasya";
$ISO_3166_2['06'] = "Ankara";
$ISO_3166_2['07'] = "Antalya";
$ISO_3166_2['75'] = "Ardahan";
$ISO_3166_2... | Yarduddles/ISO-3166 | PHP/ISO-3166-2-TR.php | PHP | mit | 2,522 |
<?php
require_once(__DIR__ . "/../model/config.php");
//takes and stores exp - exp4
//$exp = filter_input(INPUT_POST, "exp", FILTER_SANITIZE_STRING);
//$exp1 = filter_input(INPUT_POST, "exp1", FILTER_SANITIZE_STRING);
//$exp2 = filter_input(INPUT_POST, "exp2", FILTER_SANITIZE_STRING);
//$exp3 = filter_input(INPUT_POST... | SimonAnna/final | Php/controller/save-user.php | PHP | mit | 815 |
import React from "react";
import { SelectAddressModal } from "../ImportAccount";
import { roundingNumber } from "../../utils/converter"
import PathSelector from "../../containers/CommonElements/PathSelector";
const ImportByDeviceView = (props) => {
function choosePath(dpath) {
let inputPath = document.getEleme... | KyberNetwork/KyberWallet | src/js/components/ImportAccount/ImportByDeviceView.js | JavaScript | mit | 4,782 |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2015 The Singularity developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "primitives/transaction.h"
#include "main.h"
#include <boost/t... | grumpydevelop/singularity | src/test/main_tests.cpp | C++ | mit | 806 |
class FixColumnName < ActiveRecord::Migration
def change
rename_column :posts, :user, :username
rename_column :tagged_posts, :user, :username
add_column :posts, :likes, :integer
add_column :tagged_posts, :likes, :integer
end
end
| joannangx/visionaria_app | db/migrate/20161029100010_fix_column_name.rb | Ruby | mit | 254 |
package iso20022
// Details of the securities trade.
type SecuritiesTradeDetails54 struct {
// Reference assigned to the trade by the investor or the trading party. This reference will be used throughout the trade life cycle to access/update the trade details.
TradeIdentification []*Max35Text `xml:"TradId,omitempty... | fgrid/iso20022 | SecuritiesTradeDetails54.go | GO | mit | 4,526 |
const Discord = require('discord.js');
const client = new Discord.Client({
forceFetchUsers: true,
autoReconnect: true,
disableEveryone: true,
});
const settings = require('./auth.json');
const chalk = require('chalk');
const fs = require('fs');
const moment = require('moment');
require('./util/eventLoader')(client);... | Ryahn/SoEBot | bot.js | JavaScript | mit | 2,929 |
class TokyoMetro::App::Renderer::RealTimeInfos::EachRailwayLine < TokyoMetro::Factory::Decorate::MetaClass
TRAIN_OPERATION_STATUS_FOR_TEST = ::YAML.load_file( "#{ ::TokyoMetro::DICTIONARY_DIR }/view/train_operation_status_for_test.yaml" )
def initialize( request , railway_line , http_client , test_mode )
supe... | osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/app/renderer/real_time_infos/each_railway_line.rb | Ruby | mit | 7,218 |
# -*- coding: utf-8 -*-
"""
flask_via.examples.basic
========================
A simple ``Flask-Via`` example Flask application.
"""
from flask import Flask
from flask.ext.via import Via
from flask.ext.via.routers.default import Functional
app = Flask(__name__)
def foo(bar=None):
return 'Functional Foo View!'... | thisissoon/Flask-Via | flask_via/examples/basic.py | Python | mit | 542 |
<?php
use App\Match;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateMatchesTable extends Migration
{
public function up()
{
Schema::create('matches', function(Blueprint $table) {
$table->increments(... | nixsolutions/ggf | database/migrations/2015_07_07_144512_create_matches_table.php | PHP | mit | 1,556 |
require('server.babel'); // babel registration (runtime transpilation for node)
const path = require('path');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');
const webpack = require... | sankalplakhina/isomorphic-universal-react-redux-boilerplate-seed | webpack/prod.config.js | JavaScript | mit | 5,226 |
using System.ComponentModel.DataAnnotations;
namespace OptionsWebSite.ViewModels.Account
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
}
}
| FriendlyNPC/MVC6_Mac | OptionsWebsite/ViewModels/Account/ExternalLoginConfirmationViewModel.cs | C# | mit | 253 |
package com.dev.lambda.demo;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.junit.BeforeClass;
import org.junit.Test;
import com.amazonaws.services.lambda.runtime.Context;
import com.dev.lambda.demo.model.Input;
/**
* A simple test harness for locally invoking your Lambda fu... | kaulavinash/berryme | src/test/java/com/dev/lambda/demo/LambdaFunctionHandlerTest.java | Java | mit | 1,143 |
/*****************************************************************************
* *
* OpenNI 2.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* ... | Windowsfreak/NIStreamer | Android/NiViewer.Android/src/org/openni/android/tools/niviewer/NiViewerActivity.java | Java | mit | 10,505 |
<?php
namespace Vision\DependencyInjection;
use Psr\Container\NotFoundExceptionInterface;
use RuntimeException;
class NotFoundException extends RuntimeException implements NotFoundExceptionInterface
{
}
| Trainmaster/Vision | src/DependencyInjection/NotFoundException.php | PHP | mit | 206 |
<?php defined('KOHANASYSPATH') or die('No direct script access.');
/**
* UTF8::from_unicode
*
* @package Kohana
* @author Kohana Team
* @copyright (c) 2007-2011 Kohana Team
* @copyright (c) 2005 Harry Fuecks
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
*/
function _from... | ivantcholakov/codeigniter-utf8 | application/third_party/kohana/utf8/from_unicode.php | PHP | mit | 1,718 |
/*
* Copyright 2002-2016 the original author or authors.
*
* 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 a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | boggad/jdk9-sample | sample-catalog/spring-jdk9/src/spring.jms/org/springframework/jms/connection/JmsResourceHolder.java | Java | mit | 7,474 |
<?php
namespace GRT\MainBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class GRTMainBundle extends Bundle
{
}
| mwd410/GRT-Interview | src/GRT/MainBundle/GRTMainBundle.php | PHP | mit | 122 |
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AuthService } from './auth.service';
import { IToastr, TOASTR_TOKEN } from '../common/toastr.service';
@Component({
templateUrl: 'app/user... | AdamNagy/FrontendTryouts | Angular/EventManager/app/user/profile.component.ts | TypeScript | mit | 1,870 |
require('dotenv').config();
import http from 'http';
import https from 'https';
import Koa from 'koa';
import Io from 'socket.io';
import KoaBody from 'koa-body';
import cors from 'kcors';
import Router from 'koa-router';
import Socket from './socket';
import crypto from 'crypto';
import mailer from './utils/mailer';
i... | seripap/darkwire.io | server/src/index.js | JavaScript | mit | 3,919 |
# -*- coding: utf-8 -*-
"""Functions for manipulating FGONG files. These are provided through
the **FGONG** object and a module function to read an **FGONG** object
from a file.
"""
import numpy as np
import warnings
from .adipls import fgong_to_amdl
from .constants import G_DEFAULT
from .utils import integrate, to... | warrickball/tomso | tomso/fgong.py | Python | mit | 22,737 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | joseph00713/Sponge | src/main/java/org/spongepowered/mod/mixin/core/world/MixinWorld.java | Java | mit | 3,950 |
namespace Tharga.Toolkit.Console.Entities
{
public class Position
{
public int Left { get; }
public int Top { get; }
public int? Width { get; }
public int? Height { get; }
public int? BufferWidth { get; }
public int? BufferHeight { get; }
public Position(... | poxet/tharga-console | Tharga.Toolkit.Console/Entities/Position.cs | C# | mit | 640 |
"""Automatically format references in a LaTeX file."""
import argparse
from multiprocessing import Pool
from reference_utils import Reference, extract_bibtex_items
from latex_utils import read_latex_file, write_latex_file
class ReferenceFormatter:
def __init__(self, add_arxiv):
self.add_arxiv = add_arxi... | teunzwart/latex-production-tools | reference_formatter.py | Python | mit | 1,870 |
<!-- SECTION Judul-->
<!--===============================================================-->
<div class="section-heading-page">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1 class="heading-page text-center-xs">Dashboard</h1>
</div>
... | reeganaga/tokoonline | application/views/front/history/content_detail.php | PHP | mit | 10,478 |
require 'spec_helper'
describe SerpMetrics::CommandSets::Flux, :vcr do
before do
api_configuration = YAML.load_file('spec/api_credentials.yml')
@client = SerpMetrics.client.configure do |client|
client.key = api_configuration['key']
client.secret = api_configuration['secret']
end
end
des... | wearetribe/serp_metrics | spec/lib/serp_metrics/command_sets/flux_spec.rb | Ruby | mit | 686 |
import sqlite3
import requests
from random import sample
import textwrap
from printer import ThermalPrinter
LINE_WIDTH = 32
potm = "http://creepypasta.wikia.com/api/v1/Articles/List?category=PotM&limit=1000"
spotlighted = "http://creepypasta.wikia.com/api/v1/Articles/List?category=Spotlighted_Pastas&limit=1000"
def g... | AngryLawyer/creepypasta-strainer | src_python/strainer.py | Python | mit | 2,457 |
<?php
class CM_WP_Exception_PluginNotRegisteredException extends
Exception
{
/**
* Plugin slug
*
* @var string
*/
protected $slug;
/**
* [__construct description]
*
* @param string $slug
*/
public function __construct( $slug ) {
$this->slug = $slug;
... | cubicmushroom/wordpress-helper | src/CM/WP/Exception/PluginNotRegisteredException.php | PHP | mit | 504 |
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("01.... | Steffkn/SoftUni | 01.ProgrammingBasicsC#/Exams/17July2016/01.Money/Properties/AssemblyInfo.cs | C# | mit | 1,387 |
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link http://phpdoc.org
*/
namespace phpDocumentor\Descriptor\Filter;
use Mockery as m;
use Mockery\Adapt... | rgeraads/phpDocumentor2 | tests/unit/phpDocumentor/Descriptor/Filter/StripOnVisibilityTest.php | PHP | mit | 3,762 |
import { NgModule } from '@angular/core';
import {
ToolbarModule
} from 'primeng/primeng';
import { PageToolbarComponent } from './page-toolbar.component';
@NgModule({
exports: [PageToolbarComponent],
declarations: [PageToolbarComponent],
imports: [
ToolbarModule
]
})
export class PageToolbarModule {
}... | dreamer99x/ceb | src/app/shared/components/page-toolbar/index.ts | TypeScript | mit | 321 |
class ParseException < Exception
end | ably-forks/cloudyscripts | lib/audit/lib/parser/parse_exception.rb | Ruby | mit | 36 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# 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 a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | hkhpub/show_and_tell_korean | webdemo/webdemo/inference_wrapper.py | Python | mit | 1,658 |
#include <cstdlib>
#include <stack>
#include <vector>
using namespace std;
#include "binary_tree_inorder_traversal.h"
#include "../util/util_tree.h"
vector<int>
BinaryTreeInorderTraversal::inorderTraversalRecursive(TreeNode *root) {
vector<int> traversal_history;
if (root == NULL)
return traversal_history;
... | metacpp/LeetCpp | src/tree/binary_tree_inorder_traversal.cc | C++ | mit | 1,826 |
angular.module('zfaModal', ['foundation'])
.provider('zfaModal', function () {
var configs = {};
function register (modalId, config) {
if (typeof modalId === 'string') {
return configs[modalId] = config;
}else{
throw new Error('zfaModalProvide... | Miklecc/foundation-apps-modal | src/zfaModalProvider.js | JavaScript | mit | 1,054 |
package main
import (
"os"
"github.com/codegangsta/cli"
"github.com/denkhaus/tcgl/applog"
"github.com/gitmonster/cmnodes/command"
"github.com/gitmonster/cmnodes/nodes"
)
var initFileName = ".cmnodesrc"
var releaseVersion = "0.0.1"
func main() {
app := cli.NewApp()
app.Name = "cmnodes"
app.Version = releaseV... | gitmonster/cmnodes | cmnodes.go | GO | mit | 1,188 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2015-11-08 00:53:15 --> 404 Page Not Found --> robots.txt
ERROR - 2015-11-08 02:46:43 --> 404 Page Not Found --> robots.txt
ERROR - 2015-11-08 02:47:31 --> 404 Page Not Found --> robots.txt
ERROR - 2015-11-08 03:10:36 --> 404 Page N... | cmorenokkatoo/kkatooapp | application/logs/log-2015-11-08.php | PHP | mit | 2,507 |
#include <iostream>
#include <stdlib.h>
int main()
{
// int a = 1;
// int *b = &a;
int *b = (int *) malloc(sizeof(int));
*b = 5;
int *c = b;
int *d = c;
free (d);
// *b = 7;
std::cout << *b << std::endl;
}
| lindsayad/programming | cpp/lots_of_pointers.cpp | C++ | mit | 225 |
package no.notanumber.sosql;
import java.util.Objects;
public class Join {
public final DatabaseColumn primary;
public final DatabaseColumn foreign;
public Join(DatabaseColumn primary, DatabaseColumn foreign) {
this.primary = primary;
this.foreign = foreign;
}
@Override
publ... | NotANumber-no/sosql | src/main/java/no/notanumber/sosql/Join.java | Java | mit | 803 |
package com.bitdubai.fermat_dmp_plugin.layer.world.crypto_index.developer.bitdubai;
import com.bitdubai.fermat_api.Plugin;
import com.bitdubai.fermat_api.PluginDeveloper;
import com.bitdubai.fermat_api.layer.all_definition.enums.CryptoCurrency;
import com.bitdubai.fermat_api.layer.all_definition.enums.TimeFrequency;
i... | fvasquezjatar/fermat-unused | DMP/plugin/world/fermat-dmp-plugin-world-crypto-index-bitdubai/src/main/java/com/bitdubai/fermat_dmp_plugin/layer/world/crypto_index/developer/bitdubai/DeveloperBitDubai.java | Java | mit | 1,395 |
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as test_command
class PyTest(test_command):
user_options = [
('pytest-args=', 'a', 'Arguments for pytest'),
]
def initialize_options(self):
test_command.initialize_opti... | sablet/algo_trade | setup.py | Python | mit | 985 |
'use strict';
/**
* @ngdoc directive
* @name myDashingApp.directive:widgetText
* @description
* # widgetText
*/
angular.module('myDashingApp')
.directive('widgetText', function () {
return {
template: '<div><div class="title">{{data.title}}</div><div class="value">{{data.value}}</div><div ... | GuyMograbi/ng-dashing | app/scripts/directives/widgettext.js | JavaScript | mit | 482 |
<?php
/* SMASMABundle:Public:about2.html.twig */
class __TwigTemplate_95bc6be8200ffe9eef6c99c778e963bf4ee22d5d533dcb62c75dbe15624dff5e extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("SMASMABundle:... | matsuyuki/smanegeri11 | app/cache/dev/twig/95/bc/6be8200ffe9eef6c99c778e963bf4ee22d5d533dcb62c75dbe15624dff5e.php | PHP | mit | 2,653 |
window.dev1(1);
| delambo/gettit | test/assets/dev1/js/test2.js | JavaScript | mit | 16 |
/*
* The MIT License
*
* Copyright 2014 Kamnev Georgiy (nt.gocha@gmail.com).
*
* Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного
* обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"),
* использовать Программное Обеспечение без огра... | gochaorg/lang2 | src/main/java/xyz/cofe/lang2/parser/SyntaxTreeDump.java | Java | mit | 5,610 |
/* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.office;
import com.wilutions.com.*;
/**
* MsoTextTabAlign.
*
*/
@SuppressWarnings("all")
@CoInterface(guid="{00000000-0000-0000-0000-000000000000}")
public class MsoTextTabAlign implements ComEnum {
static boolean __typelib__loade... | wolfgangimig/joa | java/joa/src-gen/com/wilutions/mslib/office/MsoTextTabAlign.java | Java | mit | 2,449 |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
OptionsDialog::OptionsDialog(QWidget *parent) :
QDialog(parent),
... | max-winderbaum/maxcoin | src/qt/optionsdialog.cpp | C++ | mit | 8,952 |
describe ApiGuardian::Helpers::Digits do
let(:subject) do
ApiGuardian::Helpers::Digits.new(
auth_url,
auth_header
)
end
let(:auth_url) { 'https://api.digits.com/v1/something.json' }
let(:auth_header) { 'OAuth oauth_consumer_key="foo"' }
it { should have_attr_reader(:auth_url) }
it { sh... | lookitsatravis/api_guardian | spec/lib/helpers/digits_spec.rb | Ruby | mit | 2,828 |
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">Ínteres por tipo de alimento</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<button class="btn btn-box... | adrianturnes/menorcagastronomic | resources/views/backend/partials/donutChart.blade.php | PHP | mit | 1,877 |
var searchData=
[
['parseprocinfo',['ParseProcInfo',['../tinyoslib_8h.html#ab98738d69f4b198fbcad1a6f2e20a44d',1,'tinyoslib.c']]],
['pipe',['Pipe',['../group__syscalls.html#gab6355ce54e047c31538ed5ed9108b5b3',1,'Pipe(pipe_t *pipe): kernel_pipe.c'],['../group__syscalls.html#gab6355ce54e047c31538ed5ed9108b5b3',1,... | TedPap/opsys | doc/html/search/functions_b.js | JavaScript | mit | 367 |
<?php
namespace Ebbe\Test\SpecificationBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* TestCase
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Ebbe\Test\SpecificationBundle\Entity\TestCaseRepository")
*/
class TestCase
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
... | rschumacher/jvtm | src/Ebbe/Test/SpecificationBundle/Entity/TestCase.php | PHP | mit | 4,027 |
require 'test/unit'
require File.join(File.dirname(__FILE__), '..', '..', 'init.rb')
require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'spark_lines')
require File.join(File.dirname(__FILE__), 'rest_loader')
class Test::Unit::TestCase
def project(name)
@project ||= RESTfulLoaders::ProjectLoader.new(na... | mrmarkyb/spark-line-mingle-macro | test/integration/integration_test_helper.rb | Ruby | mit | 450 |
var util = require('util')
, StoreError = require('jsr-error')
, CommandArgLength = StoreError.CommandArgLength
, InvalidFloat = StoreError.InvalidFloat
, Constants = require('jsr-constants')
, AbstractCommand = require('jsr-exec').DatabaseCommand;
/**
* Handler for the ZADD command.
*/
function SortedSet... | freeformsystems/jsr-server | lib/command/database/zset/zadd.js | JavaScript | mit | 907 |
var expect = require('expect.js'),
_ = require('lodash'),
RevisionGuard = require('../../lib/revisionGuard'),
revGuardStore = require('../../lib/revisionGuardStore');
describe('revisionGuard', function () {
var store;
before(function (done) {
revGuardStore.create(function (err, s) {
store = s... | togusafish/adrai-_-node-cqrs-saga | test/unit/revisionGuardTest.js | JavaScript | mit | 10,450 |
/**
* Copyright 2016 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrat... | josedab/react-native-examples | meetup-information/js/rating/RatingCard.js | JavaScript | mit | 2,905 |
#ifndef __ciri_graphics_CullMode__
#define __ciri_graphics_CullMode__
namespace ciri {
/**
* Triangle winding order cull mode.
*/
enum class CullMode {
None, /**< Do not cull triangles regardless of vertex ordering. */
Clockwise, /**< Cull triangles with clockwise vertex ordering. */
CounterCloc... | KasumiL5x/ciri | ciri/inc/ciri/graphics/CullMode.hpp | C++ | mit | 402 |
#region Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
/// <copyright>
/// Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
///
/// 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 Sof... | remobjects/Obfuscar | Obfuscar/Project.cs | C# | mit | 8,875 |
#include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
vector <string> computeKMostFrequentQueries(vector <string> queries) {
}
| tzhenghao/InterviewQuestionExercises | ElementsOfProgrammingInterviews/Chapter13/ComputeKMostFrequentQueries.cpp | C++ | mit | 162 |
namespace Reusable.Diagnostics
{
public static class DebuggerDisplayString
{
public const string DefaultNoQuotes = "{DebuggerDisplay,nq}";
}
} | he-dev/Reusable | Reusable.Core/src/Diagnostics/DebuggerDisplayString.cs | C# | mit | 162 |
/*
* RPCType.cpp
*
* Created on: 30 Apr 2014
* Author: meltuhamy
*/
#include <string>
#include "ppapi/cpp/var.h"
#include "RPCType.h"
#include <vector>
namespace pprpc{
//TODO - right now all the integer type marshaling is just wrapping the int32_t type!
// byte
pp::Var ByteType::AsVar(const ValidType<in... | meltuhamy/native-calls | cpp/RPCType.cpp | C++ | mit | 5,999 |
package org.knowm.xchange.gemini.v1.service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.stream.Collectors;
import lombok.Getter;
import lombok.Setter;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.c... | stachon/XChange | xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/service/GeminiTradeService.java | Java | mit | 9,136 |
#include <map>
#include <set>
#include <vector>
#include <memory>
#include <gumbo.h>
#include <goosepp/contentExtraction/BoostChecker.h>
#include <goosepp/contentExtraction/NodeTextCleaner.h>
#include <goosepp/contentExtraction/TextNodeCollector.h>
#include <goosepp/util/gumboUtils.h>
#include <goosepp/stopwords/stop... | scivey/goosepp | src/contentExtraction/BoostChecker.cpp | C++ | mit | 2,214 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js | JavaScript | mit | 707 |
$(document).ready(function(){
$('#environment,#language').change(function(){
var environment = $('#environment').val();
var language = $('#language').val();
if(environment==0)
return true;
$('#file').parent('div').addClass('hidden');
$('#load').addClass('hidden');
... | cobonto/public | admin/js/translate.js | JavaScript | mit | 1,275 |
using System;
namespace Nancy.Swagger.ObjectModel.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Enum, AllowMultiple = false, Inherited = true)]
public class SwaggerDataAttribute : Attribute { }
} | pinnstrat/snap-nancy-swagger | src/Nancy.Swagger/ObjectModel/Attributes/SwaggerDataAttribute.cs | C# | mit | 261 |
/**
* @author Joe Adams
*/
goog.provide('CrunchJS.Systems.PathfindingSystem');
goog.require('CrunchJS.System');
goog.require('CrunchJS.Components.Path');
goog.require('goog.structs');
goog.require('goog.array');
goog.require('goog.math');
/**
* Creates a new Pathfinding System
* @constructor
* @class
*/
Crun... | jadmz/CrunchJS | app/js/engine/systems/PathfindingSystem.js | JavaScript | mit | 5,422 |
using System;
using System.Windows.Forms;
namespace DocumentExplorerExample
{
/// <summary>
/// Provides full information about application exception.
/// </summary>
public class ExceptionDialog : Form
{
#region Windows Form Designer generated code
private System.ComponentModel.Container components = null... | assadvirgo/Aspose_Words_NET | Examples/CSharp/Viewers-Visualizers/Document-Explorer/ExceptionDialog.cs | C# | mit | 3,308 |
#region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | x335/WootzJs | WootzJs.Compiler.Tests/Linq/Expressions/MethodCallExpressionTests.cs | C# | mit | 3,963 |
#define PROTOTYPE
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using ProBuilder2.Common;
using ProBuilder2.MeshOperations;
namespace ProBuilder2.Examples
{
[RequireComponent(typeof(AudioSource))]
public class IcoBumpin : MonoBehaviour
{
pb_Object ico; // A r... | hakur/shooter | Assets/ProCore/ProBuilder/API Examples/Icosphere FFT/Scripts/IcoBumpin.cs | C# | mit | 8,702 |
require 'rails_helper'
RSpec.describe OnlineApplicationPolicy, type: :policy do
subject(:policy) { described_class.new(user, online_application) }
let(:online_application) { build_stubbed(:online_application) }
context 'for staff' do
let(:user) { build_stubbed(:staff) }
it { is_expected.to permit_acti... | ministryofjustice/fr-staffapp | spec/policies/online_application_policy_spec.rb | Ruby | mit | 1,255 |
require "active_record"
require "active_record/mass_assignment_security/associations"
require "active_record/mass_assignment_security/attribute_assignment"
require "active_record/mass_assignment_security/core"
require "active_record/mass_assignment_security/nested_attributes"
require "active_record/mass_assignment_sec... | rails/protected_attributes | lib/active_record/mass_assignment_security.rb | Ruby | mit | 1,126 |
/**
* Created by james on 3/11/15.
*/
var crypto = Npm.require('crypto');
IntercomHash = function(user, secret) {
var secret = new Buffer(secret, 'utf8')
return crypto.createHmac('sha256', secret)
.update(user._id).digest('hex');
}
| jamesoy/Microscope | packages/intercom/intercom_server.js | JavaScript | mit | 251 |
using System;
using System.Drawing.Imaging;
using System.IO;
using System.Text;
namespace TeknikProgramlama.Tools.Image {
public static class Utils {
public static string Image2Base64(this System.Drawing.Image image, ImageFormat format) {
var imgBytes = image.ToBytes(format);
var b... | teknikprogramlama/Teknikprogramlama.Tools | TeknikProgramlama.Tools/Image/Utils.cs | C# | mit | 1,121 |
using UnityEngine;
using System.Collections;
public class sample : MonoBehaviour {
// Use this for initialization
void Start () {
Vector3 startPos = new Vector3(0,0,0);
Vector3 endPos = new Vector3(10,-10,0);
Vector3 center = Vector3.Lerp(startPos, endPos, 0.5f);
Vector3 cut = (endPos - startPos)... | HackathonHC/team-z | Assets/sample.cs | C# | mit | 985 |