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 |
|---|---|---|---|---|---|
/**
* The GiftEntry class describes a gift in terms of three values:
* the gift name, the gift receipient, and whether the gift
* has been bought yet.
*
* @author Richard White
* @version 2013-12-05
*/
public class GiftEntry
{
/**
* Constructor for known recipient with blank Gift
* @param reci... | mattsoulanille/compSci | GiftList/GiftEntry.java | Java | mit | 1,290 |
<?php
/**
* Copyright (c) 2014 Webflavia
*
* 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, modify, merge, pu... | EduardoMRB/webflavia-php-sdk-v1 | src/Webflavia/Entity/AbstractNavigable.php | PHP | mit | 2,220 |
module.exports = function(params) {
params = params || {};
_.extend(this, params);
this.validate = params.validate || function() {
return true;
};
} | chrisharrington/traque | app/models/base.js | JavaScript | mit | 177 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Join_Arrays
{
class Program
{
static void Main(string[] args)
{
int[] nums = { 100, 200, 300 };
foreach (var x in nums)
{
... | giggals/Software-University | Arrays - Lab/Join Arrays/Program.cs | C# | mit | 382 |
<?php
// EventFormBundle:Categoria:index.html.twig
return array (
);
| DelBianco/TesteSymfony | app/cache/dev/assetic/config/8/8933b2c685bce28af52752733fbcafbf.php | PHP | mit | 70 |
public class IsUnique {
public static boolean isUnique1(String input) {
int checker = 0;
int n = input.length();
if (n <= 1) return true;
for (int i = 0; i < n; i++) {
int c = input.charAt(i) - 'a';
if ((checker & (1 << c)) > 0) return false;
checker |= (1 << c);
}
return tru... | fzheng/codejam | ccup/ch1/IsUnique.java | Java | mit | 1,234 |
require_dependency "venture/application_controller"
module Venture
class ProjectsController < ApplicationController
before_action :set_project, only: [:show, :edit, :update, :destroy]
# GET /projects
def index
@projects = Project.all
end
# GET /projects/1
def show
end
# GET /... | LaunchU/QuadVenture | app/controllers/venture/projects_controller.rb | Ruby | mit | 1,365 |
#ifndef PANELITEM_HPP
#define PANELITEM_HPP
#include "LevelMakerPanel.hpp"
#include "Button.hpp"
#include "InputString.hpp"
#include "Text.hpp"
class PanelItem : public LevelMakerPanel {
private:
Sprite* sprite_input_mass;
Button* button_input_mass;
lalge::R2Vector input_mass_position;
bool invalid_input_mass;
... | matheuscscp/nanotrip | src/PanelItem.hpp | C++ | mit | 1,943 |
namespace StarsReloaded.Client.ViewModel.Controls
{
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using GalaSoft.MvvmLight.CommandWpf;
using GalaSoft.MvvmLight.Messaging;
using StarsReloaded.Client.Mediation.Mes... | Misza13/StarsReloaded | StarsReloaded.Client.ViewModel/Controls/GalaxyMapPanelViewModel.cs | C# | mit | 4,361 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sq" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Vector</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+... | vectorcoindev/Vector | src/qt/locale/bitcoin_sq.ts | TypeScript | mit | 110,078 |
class DataControl {
constructor() {
this.appData
updateData()
}
updateData() {
this.appData = fetcherama()
}
fetcherama() {
lib.fetch(`http://localhost:8080/api/class/getNearbyClasses/${coor.long}/${coor.lat}`, opt, data => {
if (data.success === true) {
return data.classes
... | andrewgremlich/presence-keeper | pk_static_files_server/app/js/util/DataControl.js | JavaScript | mit | 369 |
<?php
if(!defined('ROOT')) exit('No direct script access allowed');
$dashboard=getConfig("DASHBOARD_PAGE");
?>
<div id="workspace" style='display:none;overflow:hidden;width: 100%;height: 100%;'>
<ul>
<?php if(strlen($dashboard)>0) { ?>
<li><a href='#dashboard'>Dashboard</a></li>
<?php } ?>
</ul>
<?php if(str... | LogiksPlugins/tabbedspace | index.php | PHP | mit | 4,102 |
package cn.cloudself.dao;
import cn.cloudself.model.AppJiyoujiaHeadEntity;
import cn.cloudself.model.IntegerEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;
import java.util.List;
/**
* @author HerbLuo
* @ve... | HerbLuo/shop-api | src/main/java/cn/cloudself/dao/IAppJiyoujiaHeadDao.java | Java | mit | 887 |
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... | thruelios/ab180 | src/qt/signverifymessagedialog.cpp | C++ | mit | 8,779 |
package view;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import java.awt.Font;
public class PasswordManagerRegistration {
JPanel regpanel;
private JTextField txtUsername;
private... | zoltanvi/password-manager | src/view/PasswordManagerRegistration.java | Java | mit | 2,435 |
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace System.Data
{
public static class DbTypeConsts
{
/// <summary>
/// 自定义一个 DbType 表示 pgsql 的 json 类型
/// </summary>
public const DbType NpgJson = (DbType)135;
/// <summary>
... | shuxinqin/Chloe | src/ChloeDemo/DbTypeConsts.cs | C# | mit | 487 |
# -*- coding: utf-8 -*-
"""
This module provides the necessary methods for a Certification Authority.
For creating the self signed Certificate for the CA, use the following command:
$ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem
@author: Vasco Santos
"""
import time
from M2Crypto impo... | vasco-santos/CertificationService | certModule/CertAuthority.py | Python | mit | 6,803 |
export class Power{
public id:string;
public code:string;
public url:string;
public title:string;
public explain:string;
public menuId:string;
public type:string;
public isValid:boolean;
public isChecked:boolean=false;
public operation:Array<string>=new Array<string>();
pub... | Lslgg/admin-manager | src/app/admin/power/shared/power.model.ts | TypeScript | mit | 1,410 |
from baby_steps import given, then, when
from district42 import represent, schema
def test_list_of_representation():
with given:
sch = schema.list(schema.bool)
with when:
res = represent(sch)
with then:
assert res == "schema.list(schema.bool)"
def test_list_of_values_represent... | nikitanovosibirsk/district42 | tests/list/test_list_of_representation.py | Python | mit | 1,650 |
/* */
"format cjs";
(function(e){if("function"==typeof bootstrap)bootstrap("csv2geojson",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeCsv2geojson=e}else"undefined"!=typeof window?window.csv2ge... | thomjoy/turftest | src/jspm_packages/npm/mapbox.js@2.1.5/docs/assets/csv2geojson.js | JavaScript | mit | 5,283 |
import { Buffer } from 'buffer';
const discordmailhooksLegacyBrailleRegex = /([\u2800-\u28FF]+)(?:.)([\u2800-\u28FF]+)/;
class DiscordMailHooks {
email: string
constructor(email: string) {
this.email = email;
}
matches() {
return discordmailhooksLegacyBrailleRegex.test(this.email);
}
toWebhook()... | moustacheminer/discordmail | src/mail/DiscordMailHooks.ts | TypeScript | mit | 1,161 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/system.h>
#ifdef ENABLE_EXTERNAL_SIGNER
#if defined(WIN32) && !de... | instagibbs/bitcoin | src/util/system.cpp | C++ | mit | 46,739 |
<?php
namespace AppBundle\Command;
use FOS\UserBundle\Util\Canonicalizer;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony... | alexdu98/Ambiguss | src/AppBundle/Command/CanonicalisationCommand.php | PHP | mit | 1,454 |
package apimanagement
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regen... | Azure/azure-sdk-for-go | services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement/group.go | GO | mit | 28,709 |
var module = angular.module('mtg', ['ngRoute', 'timer']);
DEBUG = true;
module.controller('main', function($scope, $filter) {
$scope.matches = [];
$scope.players = [{}, {}];
var orderBy = $filter('orderBy');
$scope.importFromStorage = function() {
console.log("Importing from local storage");
tourney = JSON.... | Tethik/mtg | mtg.js | JavaScript | mit | 5,687 |
// Copyright 2011 the V8 project authors. 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 ... | Noah-Huppert/Website-2013 | vhosts/www.noahhuppert.com/htdocs/trex/deps/v8/src/mips/frames-mips.cc | C++ | mit | 2,234 |
var LOTUS = Symbol.for('lotus');
var lotus = global[LOTUS];
if (!lotus) {
var lotusPath = process.env.LOTUS_PATH;
// Try using the local version.
if (lotusPath) {
lotusPath += '/lotus-require';
if (__dirname === lotusPath) {
// We are already using the local version.
}
else if (require('f... | aleclarson/lotus-require | index.js | JavaScript | mit | 554 |
using System;
namespace Timesheet.Domain
{
public class TimeRegistration
{
public Guid Id { get; set; }
public Guid TaskId { get; set; }
public string EmployeeId { get; set; }
public DateTimeOffset TimeStart { get; set; }
public DateTimeOffset TimeEnd { get; se... | wcabus/MADN-oAuth | Timesheet.Domain/TimeRegistration.cs | C# | mit | 423 |
<?php
class Shadowbox extends Modules {
static function __install() {
Like::install();
}
static function __uninstall($confirm) {
if ($confirm)
Like::uninstall();
}
static function admin_sb_settings($admin) {
if (!Visitor::... | parttimenerd/chyrp_de | modules/shadowbox/shadowbox.php | PHP | mit | 2,824 |
module EasySerializer
class Cacher
attr_reader :serializer, :metadata
def initialize(serializer, metadata)
@serializer = serializer
@metadata = metadata
end
def execute
CacheOutput.new(_execute)
end
private
def _execute
strategy = if metadata.is_a?(EasySerializer... | arturictus/easy_serializer | lib/easy_serializer/cacher.rb | Ruby | mit | 738 |
'use strict';
describe('Controller: HomeCtrl', function () {
it('should make a unit test ...', function () {
});
});
| topheman/cycle-infos | test/spec/controllers/home.js | JavaScript | mit | 123 |
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Action;
use Fig\Http\Message\StatusCodeInterface;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Shlinkio\Shlink\Core\Crawling\CrawlingHel... | shlinkio/shlink | module/Core/src/Action/RobotsAction.php | PHP | mit | 1,270 |
import cx_Freeze
import sys
import os
executables = [cx_Freeze.Executable("MusicCompiler.py", base=None)]
cx_Freeze.setup(
name= "MusicCompiler",
description = "Best Program Ever Known To Humanity.",
author = "Space Sheep Enterprises",
options = {"build_exe":{"excludes":["urllib","html","h... | Jonathan-Z/PowerShellMusic | setup.py | Python | mit | 457 |
package com.anji_ahni.nn.activationfunction;
/**
* Square-root function.
*
* @author Oliver Coleman
*/
public class PowerActivationFunction implements ActivationFunction, ActivationFunctionNonIntegrating {
/**
* identifying string
*/
public final static String NAME = "power";
/**
* @see Object#toString(... | Fumaloko92/MSc-Thesis | 17-05-2017/neuralturingmachines-master/src/com/anji_ahni/nn/activationfunction/PowerActivationFunction.java | Java | mit | 1,453 |
using EasyLOB.Data;
using System.Collections.Generic;
namespace Chinook.Data
{
public partial class Customer
{
#region Profile
public static IZProfile Profile { get; private set; } = new ZProfile
(
Name: "Customer",
IsIdentity: true,
Ke... | EasyLOB/EasyLOB-Chinook-2 | Chinook.Data/Profiles/CustomerProfile.cs | C# | mit | 2,406 |
using System;
class PrintLongSequence
{
static void Main(string[] args)
{
for (int i = 2; i <= 1002; i++)
{
if ((i%2)==0)
{
Console.WriteLine(i);
}
else
{
Console.WriteLine(-i);
}
}
... | KrisPetkov/Test-repository | Intro-Programming/16.Print-Long-Sequence/PrintLongSequence.cs | C# | mit | 331 |
<?php
namespace App\Jobs\Auth;
use App\Jobs\Job;
use App\Storage\EmailConfirmation\EmailConfirmationRepository;
use Illuminate\Support\Facades\Mail;
class SendEmailChangeConfirmation extends Job
{
protected $newEmail;
/**
* Create a new job instance.
*
* @return void
*/
public functi... | adiachenko/catchy_api | app/Jobs/Auth/SendEmailChangeConfirmation.php | PHP | mit | 828 |
using System; //default
using System.Collections.Generic; //dictionary,list
using System.Linq; //because jon skeet
using NetFwTypeLib; //firewall library
using System.Net.Sockets; //protocol enum
using System.Net; //IPAddress class
namespace msf... | caesarshift/msfw | msfw/MSFirewallRule.cs | C# | mit | 34,510 |
const
pObj=pico.export('pico/obj'),
fb=require('api/fbJSON'),
rdTrip=require('redis/trip')
return {
setup(context,cb){
cb()
},
addPickup(user,action,evt,name,next){
const text=pObj.dotchain(evt,['message','text'])
if(!text) return next(null,`fb/ask${action[action.length-1]}`)
const a=action.pop()
switch(... | ldarren/mysg | api/addTrip.js | JavaScript | mit | 1,913 |
/*
* Property of RECAPT http://recapt.com.ec/
* Chief Developer Ing. Eduardo Alfonso Sanchez eddie.alfonso@gmail.com
*/
package com.recapt.domain;
import java.time.LocalDateTime;
/**
*
* @author Eduardo
*/
public class IssueHistory {
private String name;
private String description;
private String r... | edecisions/recapt | src/main/java/com/recapt/domain/IssueHistory.java | Java | mit | 1,356 |
"use strict";
var testCase = require('nodeunit').testCase,
path = require('path'),
fs = require('fs'),
avconv;
function read(stream, callback) {
var output = [],
err = [];
stream.on('data', function(data) {
output.push(data);
});
stream.on('error', function(d... | olivererxleben/hipsterbility | serverside/node_modules/avconv/tests/basics.js | JavaScript | mit | 6,328 |
Clazz.declarePackage ("J.renderspecial");
Clazz.load (["J.render.ShapeRenderer"], "J.renderspecial.PolyhedraRenderer", ["JU.P3i", "JM.Atom", "JU.C"], function () {
c$ = Clazz.decorateAsClass (function () {
this.drawEdges = 0;
this.isAll = false;
this.frontOnly = false;
this.screens = null;
this.vibs = false;
Cl... | rishiloyola/jsmol-models | jsmol/j2s/J/renderspecial/PolyhedraRenderer.js | JavaScript | mit | 3,499 |
using System.Reflection;
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: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")... | ipjohnson/Grace | tests/Grace.Tests/Properties/AssemblyInfo.cs | C# | mit | 784 |
var taxi = require('..');
var chromedriver = require('chromedriver');
var fs = require('fs');
var user = process.env.SAUCE_USERNAME;
var accessKey = process.env.SAUCE_ACCESS_KEY;
var sauceLabsUrl = "http://" + user + ":" + accessKey + "@ondemand.saucelabs.com/wd/hub";
var tests = [
{ url:'http://localhost:9515/', c... | preceptorjs/taxi | examples/stitching.js | JavaScript | mit | 4,049 |
#!/Users/Varun/Documents/GitHub/LockScreen/venv/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import l... | LockScreen/Backend | venv/bin/rst2xml.py | Python | mit | 642 |
/**
* @author Chine
*/
function switchTheme(theme) {
$.cookie('blog_theme', theme, { expires: 30 });
location.href = location.href;
}
| harveyqing/Qingblog | Qingblog/public/static/dopetrope/js/theme.js | JavaScript | mit | 142 |
var mtd = require('mt-downloader');
var fs = require('fs');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Download = function() {
EventEmitter.call(this);
this._reset();
this.url = '';
this.filePath = '';
this.options = {};
this.meta = {};
this._retry... | leeroybrun/node-mt-files-downloader | lib/Download.js | JavaScript | mit | 8,675 |
import * as utils from '../../utils/utils'
import * as math from '../../math/math'
import QR from '../../math/qr'
import LMOptimizer from '../../math/lm'
import {ConstantWrapper, EqualsTo} from './constraints'
import {dog_leg} from '../../math/optim'
/** @constructor */
function Param(id, value, readOnly) {
this.res... | Autodrop3d/autodrop3dServer | public/webcad/app/sketcher/constr/solver.js | JavaScript | mit | 7,075 |
(function() {
function Base(props) {
this.id = Ambient.getID();
$.extend(this, props || {});
}
Base.extend = function(methods) {
if (typeof methods === "function") {
methods = methods();
}
methods = (methods || {});
... | lewie9021/ambient-js | src/Controller.js | JavaScript | mit | 870 |
import React from 'react'
import { Router, Route, hashHistory, browserHistory, IndexRoute } from 'react-router'
import MainContainer from '../components/MainContainer'
import Login from '../components/hello/Login'
import Register from '../components/hello/Register'
import Index from '../components/index/Index'
import H... | weifengsmile/xiexie | client/src/containers/Root.js | JavaScript | mit | 931 |
from messenger import Skype
import keyring
import utils
token = keyring.get_password('messagesReceiver', 'skypeToken')
registrationToken = keyring.get_password('messagesReceiver', 'skypeRegistrationToken')
username = keyring.get_password('messagesReceiver', 'skypeUsername')
password = keyring.get_password('messagesRec... | khapota/messages-terminal | test.py | Python | mit | 1,064 |
package br.com.command.comandos;
import br.com.command.interfaces.Command;
import br.com.command.modelos.PersianaSuite;
/**
* Created by danielmarcoto on 17/11/15.
*/
public class PersianaSuiteAbrirCommand implements Command {
private PersianaSuite persiana;
public PersianaSuiteAbrirCommand(PersianaSuite p... | danielmarcoto/ControleRemoto | app/src/main/java/br/com/command/comandos/PersianaSuiteAbrirCommand.java | Java | mit | 435 |
<?php
/**
* Used to implement Action Controllers for use with the Front Controller.
*
* @link Benri_Controller_Abstract.html Benri_Controller_Abstract
*/
abstract class Benri_Controller_Action extends Benri_Controller_Action_Abstract
{
/**
* Layout used by this controller.
* @var string
*/
p... | douggr/benri | library/Benri/Controller/Action.php | PHP | mit | 1,579 |
<?php
namespace Persona\Hris\Attendance\Model;
use Persona\Hris\Repository\RepositoryInterface;
/**
* @author Muhamad Surya Iksanudin <surya.iksanudin@personahris.com>
*/
interface ShiftmentRepositoryInterface extends RepositoryInterface
{
/**
* @param string $id
*
* @return ShiftmentInterface|n... | HRPersona/Backend | src/Attendance/Model/ShiftmentRepositoryInterface.php | PHP | mit | 394 |
var READONLY = false
// How much labor you generate per minute
var LABORGENRATE = 2;
if (READONLY){
// This is just for setting up a display-only example of this app
Characters = new Meteor.Collection(null)
Timers = new Meteor.Collection(null)
} else {
Characters = new Meteor.Collection("characters");
Timer... | OverloadUT/LaborTracker | LaborTracker.js | JavaScript | mit | 18,428 |
/* */ package com.elcuk.jaxb;
/* */
/* */ import javax.xml.bind.annotation.XmlEnum;
/* */ import javax.xml.bind.annotation.XmlType;
/* */
/* */ @XmlType(name="OptionalWeightUnitOfMeasure")
/* */ @XmlEnum
/* */ public enum OptionalWeightUnitOfMeasure
/* */ {
/* 30 */ GR,
/* 31 */ KG,
/... | kenyonduan/amazon-mws | src/main/java/com/elcuk/jaxb/OptionalWeightUnitOfMeasure.java | Java | mit | 740 |
#!/usr/bin/env python
import os
import sys # provides interaction with the Python interpreter
from functools import partial
from PyQt4 import QtGui # provides the graphic elements
from PyQt4.QtCore import Qt # provides Qt identifiers
from PyQt4.QtGui import QPushButton
t... | AlManja/logs.py | logsgui3.py | Python | mit | 9,203 |
<?php
$path = '/home3/johangau/orcapilot';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require_once 'framework_0_2/_include.inc';
$session = new Session();
$pa = new PilotArray();
$pa->loadOperationPilots($_GET['operation']);
include 'framework_0_2/_header.php';
?>
<h3>Make a payment</h3>
<p... | johangau/Orca-Pilot | public_html/app/paypilot.php | PHP | mit | 965 |
import express from 'express'
import adminOnly from 'desktop/lib/admin_only'
import { buildServerApp } from 'reaction/Router'
import { routes } from './routes'
import { renderLayout } from '@artsy/stitch'
import { Meta } from './components/Meta'
const app = (module.exports = express())
app.get('/isomorphic-relay-exam... | kanaabe/force | src/desktop/apps/isomorphic-relay-example/server.js | JavaScript | mit | 1,049 |
var view = require("ui/core/view");
var proxy = require("ui/core/proxy");
var dependencyObservable = require("ui/core/dependency-observable");
var color = require("color");
var bindable = require("ui/core/bindable");
var types;
function ensureTypes() {
if (!types) {
types = require("utils/types");
}
}
v... | danik121/HAN-MAD-DT-NATIVESCRIPT | node_modules/tns-core-modules/ui/segmented-bar/segmented-bar-common.js | JavaScript | mit | 4,284 |
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace advent.Solutions
{
[UsedImplicitly]
internal class Day1 : Day
{
public Day1()
{
DayNumber = 1;
LoadInput();
}
#region IDay Memb... | rnelson/adventofcode | advent2019/advent/Solutions/Day1.cs | C# | mit | 1,433 |
// This code is part of the Fungus library (https://github.com/snozbot/fungus)
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
namespace Fungus
{
public class GameObjectCollection : GenericCollection<UnityEngine.GameObject>
{
}
} | snozbot/fungus | Assets/Fungus/Scripts/VariableTypes/Collection/GameObjectCollection.cs | C# | mit | 314 |
<?php
require_once __DIR__ . '/fpBaseErrorNotifierDecorator.php';
/**
*
* @package fpErrorNotifier
* @subpackage decorator
*
* @author Maksim Kotlyar <mkotlar@ukr.net>
*/
class fpErrorNotifierDecoratorHtml extends fpBaseErrorNotifierDecorator
{
/**
*
* @return string
*/
public function forma... | CollectorsQuest/cqErrorNotifierPlugin | lib/decorator/fpErrorNotifierDecoratorHtml.php | PHP | mit | 2,031 |
package nineChap5_DP2;
/**
* http://www.lintcode.com/en/problem/regular-expression-matching/
* Created at 9:59 AM on 11/29/15.
*/
public class RegularExpressionMatching {
public static void main(String[] args) {
String s = "aaaab";
String p = "a*b";
boolean ans = new RegularExpressionMatching().isMatc... | vlsi1217/leetlint | src/nineChap5_DP2/RegularExpressionMatching.java | Java | mit | 2,348 |
a = [1,2,3,4,5]
b = [2,3,4,5,6]
to_100=list(range(1,100))
print ("Printing B")
for i in a:
print i
print ("Printing A")
for i in b:
print i
print ("Print 100 elements")
for i in to_100:
print i | davidvillaciscalderon/PythonLab | Session 4/bucles.py | Python | mit | 211 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSeeds</source>
<translation>Sobre BitSeeds</translation>
</message>
<message>
<lo... | BitSeedsFoundation/BitSeeds | src/qt/locale/bitcoin_ca_ES.ts | TypeScript | mit | 132,255 |
'use strict';
module.exports = ({ app, controllers, authentication }) => {
const controller = controllers.auth;
const authRoute = '/api/auth';
app.post(authRoute + '/register', controller.register);
app.post(authRoute + '/login', controller.loginLocal);
app.get(authRoute + '/logout', controller.log... | Team3OfAKind/course-project-back-end | server/routers/auth-router.js | JavaScript | mit | 405 |
<?php
namespace DF\PHPCoverFish\Common;
/**
* Class CoverFishPHPUnitTest, wrapper for all phpUnit testClass files
*
* @package DF\PHPCoverFish
* @author Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @copyright 2015 Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @license http://www.opensource.org/l... | dunkelfrosch/phpcoverfish | src/PHPCoverFish/Common/CoverFishPHPUnitTest.php | PHP | mit | 5,429 |
var m2pong = require('./m2pong');
Player = function(connection, name, nr){
this.connection = connection;
this.name = name;
this.nr = nr;
this.x = 0;
this.y = 0;
this.height = 0;
this.width = 0;
this.score = 0;
this.move = function(x, y){
this.x = x;
this.y = y;
m2pong.sendToDisplays('movePlayer',... | sabl0r/m2pong | server/player.js | JavaScript | mit | 547 |
var _ = require("underscore");
var os = require("os");
var path = require("path");
var assert = require("assert");
// All of these functions are attached to files.js for the tool;
// they live here because we need them in boot.js as well to avoid duplicating
// a lot of the code.
//
// Note that this file does NOT con... | mjmasn/meteor | tools/static-assets/server/mini-files.js | JavaScript | mit | 3,947 |
<?php
$hostname_conn = "localhost";
$database_conn = "tcc_interface";
$username_conn = "root";
$password_conn = "senha.123";
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
?>
| giovaniandrerizzardi/tccgiovani | script/conn.php | PHP | mit | 246 |
<?php
/**
* Enable an Item
*/
class fleetManagerOfficeItemEnableProcessor extends modObjectProcessor {
public $objectType = 'fleetManagerItem';
public $classKey = 'fleetManagerItem';
public $languageTopics = array('fleetmanager');
//public $permission = 'save';
/**
* @return array|string
*/
public functi... | ananimals/fleetmanager | core/components/fleetmanager/processors/office/item/enable.class.php | PHP | mit | 957 |
<?php
/*******************************************************************************
*
* filename : PersonView.php
* last change : 2003-04-14
* description : Displays all the information about a single person
*
* http://www.infocentral.org/
* Copyright 2001-2003 Phillip Hullquist, Deane Barker, Chris G... | focuz07/CRM | churchinfo/PersonView.php | PHP | mit | 35,722 |
import DS from 'ember-data';
export default DS.Model.extend({
user: DS.belongsTo('user'),
userUsername: DS.attr('string'),
emailNotifications: DS.attr('boolean')
});
| jbingham94/innovation-week-project | example_app/static/example_app/app/models/user-profile.js | JavaScript | mit | 179 |
from ga_starters import * | Drob-AI/music-queue-rec | src/playlistsRecomender/gaPlaylistGenerator/__init__.py | Python | mit | 25 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<?php
require_once("../../vendor/autoload.php");
use OpenDataAPI\aggregator\providers\government\BankGovUa;
use OpenDataAPI\aggregator\constants\DataFormat;
use OpenDataAPI\aggregator\constants\Currency;
$response = BankGovUa::... | OpenDataAPI/aggregator | examples/government/bank-gov-ua.php | PHP | mit | 577 |
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("14... | g-yonchev/TelerikAcademy | Homeworks/C# 1/06.LoopsHW/14. DecimalToBinaryNumber/Properties/AssemblyInfo.cs | C# | mit | 1,426 |
#!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from te... | segwit/atbcoin-insight | qa/rpc-tests/p2p-feefilter.py | Python | mit | 4,317 |
'use strict';
// Tasks controller
angular.module('tasks').controller('TasksController', ['$scope', '$stateParams', '$location', 'Authentication', 'Tasks',
function($scope, $stateParams, $location, Authentication, Tasks) {
$scope.authentication = Authentication;
$scope.bases = [
{name: 'Squat', lift: 'squat'}, ... | kyleaziz/lptrack | public/modules/tasks/controllers/tasks.client.controller.js | JavaScript | mit | 1,862 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.communication.models;
import com.azure.resourcemanager.communication.fluent.models.LinkedNotificationHubInner;
/** An immutable... | Azure/azure-sdk-for-java | sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/models/LinkedNotificationHub.java | Java | mit | 796 |
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("Pr... | atanas-georgiev/TelerikAcademy | 02.CSharp-Part-2/Homeworks/Homework3/Problem15NumberCalculations/Properties/AssemblyInfo.cs | C# | mit | 1,462 |
<?php
/* MyBlogBundle:Page1:show.html.twig */
class __TwigTemplate_08fcdadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $this-... | ceccy13/myblog-symfony2 | app/cache/dev/twig/08/fc/dadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f.php | PHP | mit | 2,528 |
require_relative '../../../spec_helper'
require_relative '../../../../lib/noaa_weather_client/responses/current_observation'
module NoaaWeatherClient
module Responses
describe CurrentObservation do
let(:body) {
VCR.use_cassette(:current_observations, match_requests_on: [:method, :uri]) { |c|
... | tylerdooling/noaa_weather_client | spec/lib/noaa_client/responses/current_observation_spec.rb | Ruby | mit | 4,618 |
angular
.module('eventApp', [
'ngResource',
'ui.bootstrap',
'ui.select',
'ui.bootstrap.datetimepicker',
'global',
'messagingApp',
'datasetApp'
])
.constant('HEK_URL', 'http://www.lmsal.com/hek/her')
.constant('HEK_QUERY_PARAMS', {
'cosec': 2, // ask for json
'cmd': 'search', // search command
'type': 'column'... | bmampaey/SVO | event/module.js | JavaScript | mit | 1,566 |
<?php
namespace BramR\Stack;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class Heartbeat implements HttpKernelInterface
{
const MESSAGE = 'OK';
protected $app;
protected $handler;
protected $route;... | bramr/stack-heartbeat | src/Heartbeat.php | PHP | mit | 1,394 |
'use strict';
module.exports = {
db: 'mongodb://localhost/qaapp-dev',
//db: 'mongodb://nodejitsu:e0b737c9d532fc27e1e753a25a4f823e@troup.mongohq.com:10001/nodejitsudb3924701379',
mongoose: {
debug: true
},
app: {
name: 'AskOn'
},
facebook: {
clientID: 'DEFAULT_APP_ID',
clientSecret: 'APP_S... | Chien19861128/qa-app | config/env/development.js | JavaScript | mit | 1,201 |
package com.flowpowered.math.imaginary;
import java.io.Serializable;
import com.flowpowered.math.GenericMath;
import com.flowpowered.math.HashFunctions;
import com.flowpowered.math.TrigMath;
import com.flowpowered.math.matrix.Matrix3f;
import com.flowpowered.math.vector.Vector3f;
/**
* Represent a quaternion of the... | DragonSphereZ/DragonSphereZ | src/com/flowpowered/math/imaginary/Quaternionf.java | Java | mit | 29,581 |
//
// kit.cpp
// Neo4j-cpp-driver
//
// Created by skyblue on 2017/7/9.
// Copyright © 2017年 skyblue. All rights reserved.
//
#include "kit.hpp"
#include <sstream>
namespace neo4jDriver
{
//Neo4j工具包
std::string Kit::getStatusCode(std::string httpHeader)
{
size_t begin = httpHeader.find_f... | skybluezx/Neo4j-cpp-driver | kit.cpp | C++ | mit | 4,696 |
// Based on original code by Tim Kientzle, March 2009.
#include <util.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boost/filesystem.hpp>
/* Parse an octal number, ignoring leading and trailing nonsense. */
static int
parseoct(const char *p, size_t n)
{
int i = 0;
while ((*p < '0'... | navcoindev/navcoin-core | src/untar.cpp | C++ | mit | 4,450 |
package al.artofsoul.data;
import java.util.concurrent.CopyOnWriteArrayList;
public class TowerIce extends Tower {
public TowerIce(TowerType type, Pllaka filloPllaka, CopyOnWriteArrayList<Armiku> armiqt) {
super(type, filloPllaka, armiqt);
}
@Override
public void shoot (Armiku target) {
super.projectiles.a... | tonikolaba/MrTower | src/al/artofsoul/data/TowerIce.java | Java | mit | 429 |
""" TODO: Add docstring """
import re
import pexpect
class MediaObject(object):
"""Represents an encodable object"""
def __init__(self, input_filename, output_filename):
self.input_filename = input_filename
self.output_filename = output_filename
self.media_duration = self.get_media_d... | thethomaseffect/travers-media-tools | traversme/encoder/media_object.py | Python | mit | 2,000 |
module.exports = function ( grunt ) {
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
banner: '/*!\n' +
'* <%= pkg.name %> v<%= pkg.version %> - <%= pkg.description %>\n' +
'* Copyright (c) <%= grunt.template.today(\'yyyy\') %> <%= pkg.author %>. All rights reserved... | yaohaixiao/AutocJS | Gruntfile.js | JavaScript | mit | 5,753 |
import random
import musictheory
import filezart
import math
from pydub import AudioSegment
from pydub.playback import play
class Part:
def __init__(self, typ=None, intensity=0, size=0, gen=0, cho=0):
self._type = typ #"n1", "n2", "bg", "ch", "ge"
if intensity<0 or gen<0 or cho<0 or size<0 or inte... | joaoperfig/mikezart | source/markovzart2.py | Python | mit | 8,058 |
/*
setInterval(function() {
console.log(document.activeElement);
}, 1000);
*/
/*
* Notes regarding app state/modes, activeElements, focusing etc.
* ==============================================================
*
* 1) There is always exactly one item selected. All executed commands
* operate on this item.
... | sysuzhang/my-mind | src/app.js | JavaScript | mit | 3,807 |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class MenuSettingController extends MY_Controller {
public function __construct(){
parent ::__construct();
$this->is_logged_in();
$this->load->model('menuDao');
}
publ... | didikhari/sekode | application/controllers/MenuSettingController.php | PHP | mit | 2,837 |
'use strict';
// Setting up route
angular.module('publications').config(['$stateProvider',
function ($stateProvider) {
// publications state routing
$stateProvider
.state('publications', {
abstract: true,
url: '/publications',
template: '<ui-view/>'
})
.state('public... | hibernator11/Galatea | modules/publications/client/config/publications.client.routes.js | JavaScript | mit | 1,447 |
define(function() {
var ctor = function () {
};
//Note: This module exports a function. That means that you, the developer, can create multiple instances.
//This pattern is also recognized by Durandal so that it can create instances on demand.
//If you wish to create a singleton, you should export a... | monmamo/Website | app/Misc/home.js | JavaScript | mit | 375 |
package components;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.... | Zippocat/JavaFX-MyVoip | src/components/HttpClientExample.java | Java | mit | 2,204 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Words;
using Aspose.Words.Reporting;
namespace CSharp.LINQ
{
class PieChart
{
public static void Run()
{
// The path to the documents directory.
string dataDir = RunExampl... | assadvirgo/Aspose_Words_NET | Examples/CSharp/LINQ/PieChart.cs | C# | mit | 1,034 |
package demo.java.v2c03network.InetAddressTest;
import java.net.*;
/**
* This program demonstrates the InetAddress class. Supply a host name as command line argument, or
* run without command line arguments to see the address of the local host.
* @version 1.01 2001-06-26
* @author Cay Horstmann
*/
public... | myid999/javademo | core/src/main/java/demo/java/v2c03network/InetAddressTest/InetAddressTest.java | Java | mit | 918 |