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 |
|---|---|---|---|---|---|
/*\
|*|
|*| :: cookies.js ::
|*|
|*| A complete cookies reader/writer framework with full unicode support.
|*|
|*| Revision #1 - September 4, 2014
|*|
|*| https://developer.mozilla.org/en-US/docs/Web/API/document.cookie
|*| https://developer.mozilla.org/User:fusionchess
|*|
|*| This framework is released under th... | thinhhung610/my-blog | js/vendor/cookie.js | JavaScript | isc | 2,508 |
module Scubaru
VERSION = "0.0.1"
end
| JoshAshby/scubaru | lib/scubaru/version.rb | Ruby | mit | 39 |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "m... | object88/langd | vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go | GO | mit | 16,890 |
<?php
namespace yanivgal\Exceptions;
use Exception;
class CronomJobException extends Exception { } | yanivgal/Cronom | src/Exceptions/CronomJobException.php | PHP | mit | 101 |
module Fonenode
class SmsOutbox < SmsList
def initialize(client)
super(client)
@path = "sms/outbox"
@box_type = Sms::OUTBOUND
end
end
end | digitalnatives/fonenode | lib/fonenode/sms_outbox.rb | Ruby | mit | 169 |
import {Response} from './Response';
import {Settlement} from './Settlement';
export interface ReportResponse extends Response {
settlements: Settlement[];
}
| solinor/paymenthighway-javascript-lib | ts/src/model/response/ReportResponse.ts | TypeScript | mit | 163 |
'use strict';
// Proxy URL (optional)
const proxyUrl = 'drupal.dev';
// API keys
const TINYPNG_KEY = '';
// fonts
const fontList = [];
// vendors
const jsVendorList = [];
const cssVendorList = [];
// paths to relevant directories
const dirs = {
src: './src',
dest: './dist'
};
// paths to file sources
const sour... | TricomB2B/tricom-drupal-7-base | gulpfile.babel.js | JavaScript | mit | 5,441 |
<?php
/*
* This File is part of the Lucid\Common\Data package
*
* (c) iwyg <mail@thomas-appel.com>
*
* For full copyright and license information, please refer to the LICENSE file
* that was distributed with this package.
*/
namespace Lucid\Common\Struct;
use SplPriorityQueue;
/**
* @class PriorityQueue
* ... | iwyg/common | src/Struct/PriorityQueue.php | PHP | mit | 933 |
'use strict';
const debug = require('debug')('WechatController');
const EventEmitter = require('events').EventEmitter;
const Cache = require('../../service/Cache');
const Wechat = require('../../service/Wechat');
const config = require('../../config');
const _ = require('lodash');
const async = require('async');
/* 微... | xwang1024/bomblab | lib/controller/wechat/index.js | JavaScript | mit | 10,120 |
<?php
namespace Nemundo\Package\Bootstrap\Table;
use Nemundo\Html\Table\Table;
class BootstrapTable extends Table
{
/**
* @var bool
*/
public $smallTable = false;
/**
* @var bool
*/
public $hover = false;
/**
* @var bool
*/
public $inverse = false;
/**
... | nemundo/framework | src/Package/Bootstrap/Table/BootstrapTable.php | PHP | mit | 853 |
// get the languange parameter in the URL (i for case insensitive;
//exec for test for a match in a string and return thr first match)
function getURLParameter(key) {
var result = new RegExp(key + '=([^&]*)', 'i').exec(window.location.search);
return result && result[1] || '';
}
//
function toggleLang(lang) {
v... | geoadmin/web-storymaps | htdocs/common/js/toggleLang.js | JavaScript | mit | 624 |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq;
using System.Text;
namespace EduHub.Data.Entities
{
/// <summary>
/// Leave Group Types Data Set
/// </summary>
[GeneratedCode("E... | garysharp/EduHub.Data | src/EduHub.Data/Entities/PLTDataSet.cs | C# | mit | 43,736 |
package iso20022
// Details of the standing settlement instruction to be applied.
type StandingSettlementInstruction9 struct {
// Specifies what settlement standing instruction database is to be used to derive the settlement parties involved in the transaction.
SettlementStandingInstructionDatabase *SettlementStand... | fgrid/iso20022 | StandingSettlementInstruction9.go | GO | mit | 1,985 |
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _exten... | andres81/auth-service | frontend/node_modules/react-icheck/lib/Radio.js | JavaScript | mit | 1,815 |
"""
Util classes
------------
Classes which represent data types useful for the package pySpatialTools.
"""
## Spatial elements collectors
from spatialelements import SpatialElementsCollection, Locations
## Membership relations
from Membership import Membership
| tgquintela/pySpatialTools | pySpatialTools/utils/util_classes/__init__.py | Python | mit | 266 |
!(function(root) {
function Grapnel(opts) {
"use strict";
var self = this; // Scope reference
this.events = {}; // Event Listeners
this.state = null; // Router state object
this.options = opts || {}; // Options
this.options.env = this.options.env || (!!(Object.keys(... | matikbird/matikbird.github.io | portfolio/copylee/assets/mtk-route.js | JavaScript | mit | 16,205 |
package com.isme.zteui.cache;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader.ImageCache;
/**
* Title: Volley 的缓存类</br><br>
* Description: </br><br>
* Copyright: Copyright(c)2003</br><br>
* Company: ihalma </br><br>
* @author and</br><br>
... | heyugtan/zteUI | ZTEUI/src/com/isme/zteui/cache/BitmapLruCache.java | Java | mit | 944 |
# frozen_string_literal: true
module Hackbot
module Interactions
module Concerns
module Triggerable
extend ActiveSupport::Concern
SLACK_TEAM_ID = Rails.application.secrets.default_slack_team_id
class_methods do
# This constructs a fake Slack event to start the interactio... | hackclub/api | app/models/hackbot/interactions/concerns/triggerable.rb | Ruby | mit | 794 |
module Fog
module Compute
class Google
class Mock
def insert_network(_network_name, _ip_range, _options = {})
Fog::Mock.not_implemented
end
end
class Real
def insert_network(network_name, ip_range, options = {})
api_method = @compute.networks.insert
... | plribeiro3000/fog-google | lib/fog/compute/google/requests/insert_network.rb | Ruby | mit | 771 |
package warhammerrpg.database.exception;
import warhammerrpg.core.exception.WarhammerRpgException;
public class DatabaseException extends WarhammerRpgException {
public DatabaseException(Exception originalExceptionObject) {
super(originalExceptionObject);
}
public DatabaseException() {
su... | tomaszkowalczyk94/warhammer-rpg-helper | src/main/java/warhammerrpg/database/exception/DatabaseException.java | Java | mit | 335 |
package org.ethereum.android.service;
import android.os.Message;
public interface ConnectorHandler {
boolean handleMessage(Message message);
void onConnectorConnected();
void onConnectorDisconnected();
String getID();
}
| BlockchainSociety/ethereumj-android | ethereumj-core-android/src/main/java/org/ethereum/android/service/ConnectorHandler.java | Java | mit | 240 |
package gwent
const (
// AbilityNone means unit card has no ability at all
AbilityNone = iota
)
// CardUnit is single unit used for combat
type CardUnit struct {
UnitType CardType
UnitRange CardRange
UnitFaction CardFaction
UnitPower, UnitAbility int
UnitHero bool
BasicCard
}
// Play put... | bobesa/gwent | gwent/card.unit.go | GO | mit | 1,807 |
class Foo { [prop1]: string; } | motiz88/astring-flow | test/data/roundtrip/flow-parser-tests/test-046.js | JavaScript | mit | 30 |
package medtronic
import (
"bytes"
"fmt"
"log"
"github.com/ecc1/medtronic/packet"
)
// Command represents a pump command.
type Command byte
//go:generate stringer -type Command
const (
ack Command = 0x06
nak Command = 0x15
cgmWriteTimestamp Command = 0x28
setBasalPatter... | ecc1/medtronic | command.go | GO | mit | 13,574 |
(function () {
"use strict";
angular.module('projectManagerSPA').controller('userLoginController', ['authenticationService', '$scope', '$state',function (authenticationService, $scope, $state) {
$scope.logIn = function () {
authenticationService.logIn($scope.username, $scope.password, functi... | ivanthescientist/ProjectManager | src/main/resources/public/js/controller/user.login.controller.js | JavaScript | mit | 503 |
require 'spec_helper'
describe ChequeFormatter do
describe ".date_to_ddmmyy" do
subject { ChequeFormatter.date_to_ddmmyy(date) }
context "5-Nov-2011" do
let(:date) { "5-Nov-2011" }
it { should == '051111' }
end
context "2011-11-05" do
let(:date) { "5-Nov-2011" }
it { should ... | pivotalexperimental/cheques | spec/lib/cheque_formatter_spec.rb | Ruby | mit | 2,124 |
/// <reference types="react-scripts" />
declare module "office-ui-fabric-react/lib/Modal" {
const Modal: React.StatelessComponent<IModalProps>;
}
| azu/faao | src/react-app-env.d.ts | TypeScript | mit | 150 |
#include "forms/transactioncontrol.h"
#include "forms/graphicbutton.h"
#include "forms/label.h"
#include "forms/listbox.h"
#include "forms/scrollbar.h"
#include "forms/ui.h"
#include "framework/data.h"
#include "framework/framework.h"
#include "framework/logger.h"
#include "framework/renderer.h"
#include "game/state/ci... | FranciscoDA/OpenApoc | forms/transactioncontrol.cpp | C++ | mit | 29,041 |
<?php
namespace Upc\Cards\Bundle\CardsBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Upc\Cards\Bundle\CardsBundle\Entity\GroupCategory;
use Symfony\Compo... | devupc/cards | src/Upc/Cards/Bundle/CardsBundle/Controller/GroupCategoryCrudController.php | PHP | mit | 3,369 |
var map;
var infoWindow;
// A variável markersData guarda a informação necessária a cada marcador
// Para utilizar este código basta alterar a informação contida nesta variável
var markersData = [
{
lat: -3.741262,
lng: -38.539389,
nome: "Campus do Pici - Universidade Federal do Ceará",
end... | KatharineAmaral29/ArenaSports | js/mapslackline.js | JavaScript | mit | 3,584 |
<?php require_once(APPPATH . 'views/header.php'); ?>
<link rel="stylesheet" href="<?= base_url(); ?>assets/css/fullcalendar.css" />
<link rel="stylesheet" href="<?= base_url(); ?>css/mine.css" />
<style>
.form-horizontal .controls {
margin-left: 12px;
}
</style>
<div class="page-content">
<div cla... | WereDouglas/epitrack | application/views/management.php | PHP | mit | 41,131 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _default() {
return function ({
addUtilities,
variants
}) {
addUtilities({
'.bg-clip-border': {
'background-clip': 'border-box'
},
'.bg-clip-padding': {
... | matryer/bitbar | xbarapp.com/node_modules/tailwindcss/lib/plugins/backgroundClip.js | JavaScript | mit | 550 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Pl... | GazmanDevelopment/docman | application/config/hooks.php | PHP | mit | 542 |
# frozen_string_literal: true
module ProductMutationHelper
def coerce_pricing_structure_input(input)
return nil unless input
value_field =
case input[:pricing_strategy]
when 'fixed'
:fixed_value
when 'scheduled_value'
:scheduled_value
end
PricingStructure.new(pric... | neinteractiveliterature/intercode | app/graphql/product_mutation_helper.rb | Ruby | mit | 1,074 |
/*
* Copyright (c) 2003-2009 jMonkeyEngine
* 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 must retain the above copyright
* notice, this list of ... | accelazh/ThreeBodyProblem | lib/jME2_0_1-Stable/src/com/jme/curve/CurveController.java | Java | mit | 9,311 |
using BizHawk.Common;
namespace BizHawk.Emulation.Cores.Nintendo.NES
{
//AKA half of mapper 034 (the other half is AVE_NINA_001 which is entirely different..)
public sealed class BxROM : NES.NESBoardBase
{
//configuration
int prg_bank_mask_32k;
int chr_bank_mask_8k;
//state
int prg_bank_32k;
int chr_b... | ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BxROM.cs | C# | mit | 1,817 |
/**
* Created by quanpower on 14-8-20.
*/
var config = require('./../config');
var redis = require('./redis');
var _ = require('lodash');
function cacheDevice(device){
if(device){
var cloned = _.clone(device);
redis.set('DEVICE_' + device.uuid, JSON.stringify(cloned),function(){
//... | SmartLinkCloud/IOT-platform | lib/cacheDevice.js | JavaScript | mit | 479 |
"""
This module is to support *bbox_inches* option in savefig command.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import warnings
from matplotlib.transforms import Bbox, TransformedBbox, Affine2D
def adjust_bbox(fig, bbox_inches, fixe... | yavalvas/yav_com | build/matplotlib/lib/matplotlib/tight_bbox.py | Python | mit | 2,604 |
# Require any additional compass plugins here.
require 'sass-globbing'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "_includes/css"
sass_dir = "_includes/sass"
images_dir = "assets/img"
javascripts_dir = "assets/js"
relative_assets = true
# Compilation pour la prod :
environment ... | chipisan/blog | config.rb | Ruby | mit | 1,100 |
/**
* morningstar-base-charts
*
* Copyright © 2016 . All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import defaultClasses from "../config/classes.js";
import ChartBase from "./chartBase.js";
import { ChartU... | jmconde/charts | src/js/charts/horizontal.js | JavaScript | mit | 3,156 |
<?php
namespace Wowo\NewsletterBundle\Newsletter\Placeholders;
use Wowo\NewsletterBundle\Newsletter\Placeholders\Exception\InvalidPlaceholderMappingException;
class PlaceholderProcessor implements PlaceholderProcessorInterface
{
protected $mapping;
protected $referenceClass;
protected $placeholder_delim... | mortenthorpe/gladturdev | vendor/wowo/wowo-newsletter-bundle/Wowo/NewsletterBundle/Newsletter/Placeholders/PlaceholderProcessor.php | PHP | mit | 3,955 |
# -*- coding: utf-8 -*-
r"""
Bending of collimating mirror
-----------------------------
Uses :mod:`shadow` backend.
File: `\\examples\\withShadow\\03\\03_DCM_energy.py`
Influence onto energy resolution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pictures after monochromator,
:ref:`type 2 of global normalization<globalNorm>`. ... | kklmn/xrt | examples/withShadow/04_06/04_dE_VCM_bending.py | Python | mit | 4,894 |
Rails.application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'application#hello'
root 'application#goodbye'
# Example of regular route... | tkakisu/rails_tutorial | chapter1/config/routes.rb | Ruby | mit | 1,634 |
using System.Net;
using FluentAssertions;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Serialization.Objects;
using Microsoft.Extensions.DependencyInjection;
using TestBuildingBlocks;
using Xunit;
namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Links;
public sealed class AtomicAbsolut... | json-api-dotnet/JsonApiDotNetCore | test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Links/AtomicAbsoluteLinksTests.cs | C# | mit | 5,903 |
#include "WebForm.h"
WebForm::WebForm(void)
:__pWeb(null), __phonegapCommand(null)
{
geolocation = null;
device = null;
accel = null;
network = null;
console = null;
compass = null;
contacts = null;
}
WebForm::~WebForm(void) {
}
bool
WebForm::Initialize()
{
return true;
}
result
WebForm::OnInitializing(voi... | johnwargo/phonegap-essentials-code | chapter04/HelloWorld/src/WebForm.cpp | C++ | mit | 5,118 |
import { flatArgs } from './Query';
import type { Entity } from '../binding';
import type { Filter } from './Filter';
import { JsonMap } from '../util';
import type { GeoPoint } from '../GeoPoint';
/**
* The Condition interface defines all existing query filters
*/
export interface Condition<T extends Entity> {
/... | Baqend/js-sdk | lib/query/Condition.ts | TypeScript | mit | 13,300 |
package googlechat
import "time"
// ChatMessage is message type from Pub/Sub events
type ChatMessage struct {
Type string `json:"type"`
EventTime time.Time `json:"eventTime"`
Token string `json:"token"`
Message struct {
Name string `json:"name"`
Sender struct {
Name string `json:"... | go-chat-bot/bot | google-chat/chat_msg.go | GO | mit | 1,746 |
/**
* This is a "mini-app" that encapsulates router definitions. See more
* at: http://expressjs.com/guide/routing.html (search for "express.Router")
*
*/
var router = require('express').Router({ mergeParams: true });
module.exports = router;
// Don't just use, but also export in case another module needs to use thes... | KalenAnson/nodebootstrap | lib/hello/hello.js | JavaScript | mit | 903 |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | kfrost32/AdventureAnswers | config/environments/development.rb | Ruby | mit | 1,673 |
import WebhookNotification, {
LinkClick,
LinkClickCount,
MessageTrackingData,
WebhookDelta,
WebhookObjectAttributes,
WebhookObjectData,
} from '../src/models/webhook-notification';
import { WebhookTriggers } from '../src/models/webhook';
describe('Webhook Notification', () => {
test('Should deserialize f... | nylas/nylas-nodejs | __tests__/webhook-notification-spec.js | JavaScript | mit | 4,538 |
using HoloToolkit.Unity;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Networking;
public class AuthorizationManager : Singleton<AuthorizationManager>
{
[SerializeField]
private string clientId = "... | rwth-acis/GaMR | Frontend/GaMR/Assets/Scripts/Login/AuthorizationManager.cs | C# | mit | 6,336 |
/*
* Copyright (C) 2011 ZXing 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 applicable law or agr... | longluo/AndroidDemo | app/src/main/java/com/longluo/demo/qrcode/zxing/client/android/encode/Formatter.java | Java | mit | 1,015 |
import deepFreeze from 'deep-freeze';
import { arrayToMap, mapKeysToArray } from './mapUtils';
describe('arrayToMap', () => {
it('should create map from 2D array', () => {
const a = [
['key1', 'value1'],
['key2', 'value2']
];
deepFreeze(a);
const result = arrayToMap(a);
expect(resu... | TrueWill/embracer | src/utils/mapUtils.test.js | JavaScript | mit | 1,107 |
namespace SimShift.Data
{
public enum Ets2DataAuxilliary : int
{
CruiseControl = 0,
Wipers = 1,
ParkBrake = 2,
MotorBrake = 3,
ElectricEnabled = 4,
EngineEnabled = 5,
BlinkerLeftActive = 6,
BlinkerRightActive = 7,
BlinkerLeftOn = 8,... | zappybiby/SimShift | SimShift/SimShift/Data/Ets2DataAuxilliary.cs | C# | mit | 797 |
<h2>This is my home page</h2>
<p>some text here</p> | OrifInformatique/ci_tuto | application/views/pages/home.php | PHP | mit | 51 |
/**
*
*/
package com.kant.datastructure.queues;
import com.kant.sortingnsearching.MyUtil;
/**
* @author shaskant
*
*/
public class GenerateBinaryNumbers1toN {
/**
*
* @param n
* @return
* @throws OverFlowException
* @throws UnderFlowException
*/
public String[] solve(int n) throws OverFlowExcept... | thekant/myCodeRepo | src/com/kant/datastructure/queues/GenerateBinaryNumbers1toN.java | Java | mit | 1,022 |
// Binary-search solution for balance.
// O(n * log (max coordinate / epsilon))
// David Garcia Soriano.
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;
const int maxn = 50000;
const double eps = 1e-11, infinity = 1e300;
double px[maxn], py[maxn];
int n;
bool possible(double d, double& p... | Emunt/contest_problems | Java/PC2/Solutions/TrickTreat/balance.cpp | C++ | mit | 1,320 |
require 'log4r'
module VagrantPlugins
module G5K
module Network
class Nat
def initialize(env, driver, oar_driver)
@logger = Log4r::Logger.new("vagrant::network::nat")
# command driver is unused
@env = env
@driver = driver
@oar_driver = oar_driver
... | msimonin/vagrant-g5k | lib/vagrant-g5k/network/nat.rb | Ruby | mit | 1,523 |
<?php
namespace Gitlab\Clients;
class DeployKeyClient extends AbstractClient
{
/**
* @param int $projectId
* @return \Psr\Http\Message\ResponseInterface
*/
public function listDeployKeys($projectId)
{
return $this->getRequest(sprintf('projects/%u/keys', $projectId));
}
... | AlexKovalevych/gitlab-api | src/Clients/DeployKeyClient.php | PHP | mit | 1,173 |
from django.db import models
import warnings
from django.utils import timezone
import requests
from image_cropping import ImageRatioField
class CompMember(models.Model):
"""A member of compsoc"""
class Meta:
verbose_name = 'CompSoc Member'
verbose_name_plural = 'CompSoc Members'
index = ... | compsoc-ssc/compsocssc | general/models.py | Python | mit | 2,517 |
import complexism as cx
import complexism.agentbased.statespace as ss
import epidag as dag
dbp = cx.read_dbp_script(cx.load_txt('../scripts/SIR_BN.txt'))
pc = dag.quick_build_parameter_core(cx.load_txt('../scripts/pSIR.txt'))
dc = dbp.generate_model('M1', **pc.get_samplers())
ag = ss.StSpAgent('Helen', dc['Sus'], pc... | TimeWz667/Kamanian | example/OOP/O2.4 SS, Single agent model.py | Python | mit | 446 |
from __future__ import division, print_function
from abc import ABCMeta, abstractmethod
import matplotlib as mpl
mpl.use('TkAgg')
from matplotlib.ticker import MaxNLocator, Formatter, Locator
from matplotlib.widgets import Slider, Button
import matplotlib.patches as patches
import matplotlib.pyplot as plt
from matplotl... | vaquerizaslab/tadtool | tadtool/plot.py | Python | mit | 28,848 |
<?php
/**
* Namesilo DNS Management
*
* @copyright Copyright (c) 2013, Phillips Data, Inc.
* @license http://opensource.org/licenses/mit-license.php MIT License
* @package namesilo.commands
*/
class NamesiloDomainsDns {
/**
* @var NamesiloApi
*/
private $api;
/**
* Sets the API to use for communicati... | mrrsm/Blesta-Namesilo | apis/commands/domains_dns.php | PHP | mit | 2,513 |
namespace Pioneer.Blog.Models
{
public class Contact
{
public int ContactId { get; set; }
public string Email { get; set; }
}
}
| PioneerCode/pioneer-blog | src/Pioneer.Blog/Models/Contact.cs | C# | mit | 159 |
package com.baomidou.hibernateplus.spring.vo;
import java.io.Serializable;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import com.baomidou.hibernateplus.entity.Convert;
/**
* <p>
* Vdemo
* </p>
*
* @author Caratacus
* @date 2016-12-2
*/
publi... | baomidou/hibernate-plus | hibernate-plus/src/test/java/com/baomidou/hibernateplus/spring/vo/Vdemo.java | Java | mit | 1,066 |
import cProfile
from pathlib import Path
def main(args, results_dir: Path, scenario_dir: Path):
try:
scenario_dir.mkdir(parents=True)
except FileExistsError:
pass
cProfile.runctx(
'from dmprsim.scenarios.python_profile import main;'
'main(args, results_dir, scenario_dir)',
... | reisub-de/dmpr-simulator | dmprsim/analyze/profile_core.py | Python | mit | 432 |
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Trafikverket.NET
{
/// <summary>
/// Timetable information, represents a single train at a location
/// </summary>
public class TrainAnnouncement
{
/// <summary>
/// Get ObjectType... | mrjfalk/Trafikverket.NET | src/Trafikverket.NET/Responses/DataModels/TrainAnnouncement.cs | C# | mit | 5,935 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pasteurizer : Clickable {
[SerializeField]
private Transform positionMark;
private Vector3 initial;
[SerializeField]
private GameObject milkObject;
public override void OnStart() {
base.OnSt... | TeamTorchBear/Guzzlesaurus | Assets/Scripts/Barn/Pasteurizer.cs | C# | mit | 872 |
require('./node')
require('./console')
| Jam3/hihat | lib/prelude/node-console.js | JavaScript | mit | 39 |
/*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* 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
* with... | rwaldron/mraa | examples/javascript/example.js | JavaScript | mit | 1,305 |
<?php $view->extend('EmVistaBundle::base.html.php'); ?>
<?php $view['slots']->start('body') ?>
<div class="container">
<form method="post" action="<?php echo $view['router']->generate('submissao_iniciar') ?>">
<div class="row">
<div class="col-sm-12">
<h3>Termos de uso</h3>
... | brunonm/emvista | src/EmVista/EmVistaBundle/Resources/views/Submissao/termosUso.html.php | PHP | mit | 920 |
package main
import (
"flag"
"fmt"
"github.com/ammario/fastpass"
)
func cmdGet(fp *fastpass.FastPass) {
search := flag.Arg(0)
if len(flag.Args()) != 1 {
usage()
}
results := fp.Entries.SortByName()
if search != "" {
results = fp.Entries.SortByBestMatch(search)
}
if len(results) == 0 {
fail("no r... | ammario/fastpass | cmd/fp/cmd_get.go | GO | mit | 599 |
from django.http import HttpResponse
from django.core.servers.basehttp import FileWrapper
from django.contrib.auth.models import User
from django.shortcuts import render_to_response, redirect, get_object_or_404
from requests import get
from urllib import urlretrieve
from common.models import Repository
from common.ut... | vault/bugit | viewer/views.py | Python | mit | 3,804 |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'sqap-about',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
})
export class AboutComponent implements OnInit {
constructor() {
}
ngOnInit() {
console.log('hello `About` component');
}
}
| MarcinMilewski/sqap | sqap-ui/src/main/frontend/app/about/about.component.ts | TypeScript | mit | 311 |
<?php
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) |
+... | le51/foundation | app/library/Phalcon/Error/Error.php | PHP | mit | 2,269 |
import classnames from 'classnames';
import cloneDeep from 'lodash/cloneDeep';
import React from 'react';
import {
HTMLFieldProps,
connectField,
filterDOMProps,
joinName,
useField,
} from 'uniforms';
export type ListAddFieldProps = HTMLFieldProps<
unknown,
HTMLSpanElement,
{ initialCount?: number }
>;
... | vazco/uniforms | packages/uniforms-semantic/src/ListAddField.tsx | TypeScript | mit | 1,438 |
import * as Lint from 'tslint';
import * as ts from 'typescript';
const RULE_FAILURE = `Undecorated class defines fields with Angular decorators. Undecorated ` +
`classes with Angular fields cannot be extended in Ivy since no definition is generated. ` +
`Add a "@Directive" decorator to fix this.`;
/**
* Rule th... | trimox/angular-mdc-web | tools/tslint-rules/noUndecoratedClassWithNgFieldsRule.ts | TypeScript | mit | 2,257 |
/*! fingoCarousel.js © heoyunjee, 2016 */
function(global, $){
'use strict';
/**
* width: carousel width
* height: carousel height
* margin: tabpanel margin
* count: how many tabpanels will move when you click button
* col: how many columns in carousel mask
* row: how many rows in carousel mask
... | ooyunjee/fingoCarousel | fingo.carousel.js | JavaScript | mit | 13,831 |
<?php
use \SeedDataInterface as SeedDataInterface;
abstract class BaseSeedData implements SeedDataInterface{
public function markMigration(){
$data = [];
$data['class_name'] = get_called_class();
$seedMigration = SeedMigrationModel::createObject($data,SeedMigrationModel::$attributes);
... | poupouxios/custom-light-mvc | db/seed-data/BaseSeedData.php | PHP | mit | 403 |
class upnp_soaprequest {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
GetLifet... | mrpapercut/wscript | testfiles/COMobjects/JSclasses/UPnP.SOAPRequest.js | JavaScript | mit | 569 |
module.exports = {
schedule_inputError: "Not all required inputs are present in the request",
reminder_newscheduleSuccess: "A new mail has been successfully saved and scheduled",
schedule_ShdlError: "The scheduleAt should be a timestamp (like : 1411820580000) and should be in the future",
gbl_oops: "Oop... | karankohli13/sendgrid-scheduler | messages/messages.js | JavaScript | mit | 375 |
package xsmeral.semnet.sink;
import java.util.Properties;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.sail.SailRepository;
import org.openrdf.sail.rdbms.RdbmsStore;
/**
* Factory of {@link RdbmsStore} repositories.
* <br />
* Takes para... | rsmeral/semnet | SemNet/src/xsmeral/semnet/sink/RdbmsStoreFactory.java | Java | mit | 1,465 |
<?php
namespace Tecnotek\ExpedienteBundle\Controller;
use Tecnotek\ExpedienteBundle\Entity\User;
use Tecnotek\ExpedienteBundle\Entity\Route;
use Tecnotek\ExpedienteBundle\Entity\Buseta;
use Tecnotek\ExpedienteBundle\Entity\Period;
use Tecnotek\ExpedienteBundle\Entity\Grade;
use Tecnotek\ExpedienteBundle\Entity\Course... | selimcr/Tecnotek_Expediente | src/Tecnotek/ExpedienteBundle/Controller/SuperAdminController.php | PHP | mit | 153,919 |
/**
* create edit language file link
*/
export default (lang) => {
return `https://github.com/electerm/electerm-locales/edit/master/locales/${lang}.js`
}
| electerm/electerm | src/client/common/create-lang-edit-link.js | JavaScript | mit | 159 |
using System.Security.Cryptography.X509Certificates;
using Xunit;
namespace OpenGost.Security.Cryptography.X509Certificates
{
public class GostECDsaCertificateExtensionsTests : CryptoConfigRequiredTest
{
[Theory]
[InlineData("GostECDsa256")]
[InlineData("GostECDsa512")]
public ... | sergezhigunov/gost | tests/OpenGost.Security.Cryptography.Tests/X509Certificates/GostECDsaCertificateExtensionsTests.cs | C# | mit | 748 |
"""
The MIT License (MIT)
Copyright (c) 2016 Louis-Philippe Querel l_querel@encs.concordia.ca
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... | louisq/staticguru | utility/jdk_override.py | Python | mit | 1,445 |
/*
Módulo: Financeiro
Função: Relatório Recebimento por Cliente
Autor.: Jackson Patrick Werka
Data..: 01/07/2012
© Copyright 2012-2012 SoftGreen - All Rights Reserved
*/
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "uFin3015.h"
//---------------... | jpwerka/SistemaSFG | Financeiro/uFin3015.cpp | C++ | mit | 669 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About bitcoinlite</source>
<translation type="unfinished"/>
</message>
<message>
<location... | bitcoinlitedev/bitcoinlite-master | src/qt/locale/bitcoin_pt_PT.ts | TypeScript | mit | 119,136 |
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("16... | svetlai/TelerikAcademy | Programming-with-C#/C#-Part-2/01-Arrays/16-SubsetWithSumS/Properties/AssemblyInfo.cs | C# | mit | 1,410 |
<?php
namespace Brainwave\Database;
/**
* Narrowspark - a PHP 5 framework
*
* @author Daniel Bannert <info@anolilab.de>
* @copyright 2014 Daniel Bannert
* @link http://www.narrowspark.de
* @license http://www.narrowspark.com/license
* @version 0.9.3-dev
* @package Narrowspark/framewor... | ovr/framework-2 | src/Brainwave/Database/DatabaseManager.php | PHP | mit | 8,220 |
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 21 16:29:34 2017
@author: ishort
"""
import math
""" procedure to generate Gaussian of unit area when passed a FWHM"""
#IDL: PRO GAUSS2,FWHM,LENGTH,NGAUS
def gauss2(fwhm, length):
#length=length*1l & FWHM=FWHM*1l
#NGAUS=FLTARR(LENGTH)
... | sevenian3/ChromaStarPy | Gauss2.py | Python | mit | 996 |
/**
* @author Ultimo <von.ultimo@gmail.com>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 0.1 (25-06-2017)
*
* Hier schreiben wir die JavaScript Funktionen.
* */
src="jquery-3.2.1.min";
$(document).ready(function(){
$("td:contains('-')").filter(":contains('€')").addCl... | vonUltimo/kasse | js/lib.js | JavaScript | mit | 446 |
AMD::Engine.routes.draw do
get '/amd/:asset', to: 'assets#finder'
end
| Yellowen/amd | config/routes.rb | Ruby | mit | 72 |
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("Co... | bstaykov/Telerik-CSharp-Part-1 | Console-Input-Output/Console-Input-Output/Properties/AssemblyInfo.cs | C# | mit | 1,416 |
var compare = require('typewiselite')
var search = require('binary-search')
function compareKeys (a, b) {
return compare(a.key, b.key)
}
module.exports = function (_compare) {
var ary = [], kv
_compare = _compare || compare
function cmp (a, b) {
return _compare(a.key, b.key)
}
return kv = {
ge... | dominictarr/binary-map | index.js | JavaScript | mit | 1,040 |
namespace Grauenwolf.TravellerTools.Names
{
public class RandomPerson
{
/// <summary>
/// Initializes a new instance of the <see cref="RandomName"/> class.
/// </summary>
/// <param name="firstName"></param>
/// <param name="lastName"></param>
internal RandomPer... | Grauenwolf/TravellerTools | TravellerTools/Grauenwolf.TravellerTools.Services/Names/RandomPerson.cs | C# | mit | 1,109 |
define( [
'jquery',
'angular',
'json!nuke/data/dummy_model.json',
'json!nuke/data/dummy_layout.json',
'text!nuke/demo.html'
], function( $, ng, dummyModel, dummyLayout, htmlDemoTemplate ) {
'use strict';
var module = ng.module( 'NukeDemoApp', [ 'nbe' ] )
.run( [ '$templateCache', function( $... | x1B/nbe | examples/nuke/lib/NukeDemoController.js | JavaScript | mit | 998 |
module Editor::Controllers::Document
class Export
include Editor::Action
include ::Noteshare::Core::Document
expose :document, :active_item
def call(params)
@active_item = 'editor'
@document = DocumentRepository.find params[:id]
ContentManager.new(@document).export
redirect_t... | jxxcarlson/noteshare | apps/editor/controllers/document/export.rb | Ruby | mit | 368 |
using UnityEngine;
using System.Collections;
public class Menu : MonoBehaviour
{
public GUIStyle exit;
public GUIStyle play;
// Use this for initialization
void Start () {
Screen.showCursor = true;
}
// Update is called once per frame
void Update () {
}
void OnGUI() {
if (GUI.Button(new Rect(Sc... | lazokin/FollowZeus | Assets/Scripts/Menu.cs | C# | mit | 516 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------... | Microsoft/vscode-mono-debug | src/DebugSession.cs | C# | mit | 11,204 |