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 { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { ColorPickerModule } from 'angular2-color-picker...
vijayantkatyal/svg-bits
src/module.ts
TypeScript
mit
1,406
<?php $_pluginInfo=array( 'name'=>'Inet', 'version'=>'1.0.3', 'description'=>"Get the contacts from a Inet account", 'base_version'=>'1.8.0', 'type'=>'email', 'check_url'=>'http://inet.ua/index.php', 'requirement'=>'email', 'allowed_domains'=>array('/(inet.ua)/i','/(fm.com.ua)/i'), ); /** * Inet P...
mbrung/lcOpenInviterPlugin
lib/extern/openInviter/plugins/inet.plg.php
PHP
mit
5,581
package org.workcraft.plugins.circuit; import org.workcraft.annotations.DisplayName; import org.workcraft.annotations.Hotkey; import org.workcraft.annotations.SVGIcon; import org.workcraft.dom.Node; import org.workcraft.dom.visual.BoundingBoxHelper; import org.workcraft.dom.visual.DrawRequest; import org.workcraft.for...
tuura/workcraft
workcraft/CircuitPlugin/src/org/workcraft/plugins/circuit/VisualFunctionContact.java
Java
mit
13,140
from core.himesis import Himesis, HimesisPreConditionPatternLHS import uuid class HUnitDaughter2Woman_ConnectedLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HUnitDaughter2Woman_ConnectedLHS """ # Flag this instance as compiled now self.is_...
levilucio/SyVOLT
ExFamToPerson/contracts/unit/HUnitDaughter2Woman_ConnectedLHS.py
Python
mit
2,107
<?php /* TwigBundle:Exception:traces.html.twig */ class __TwigTemplate_9109da3b5a8f9508fb31e1e2c4868542dc8f79b94134ac992407a779404545e3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array(...
cristian3040/Cupon
app/cache/dev/twig/89/89ed4a643ac881b9b276624f1e201f6f6459e825e3dad4b2ed9447cc114d4ee5.php
PHP
mit
9,187
var models=require('../models/models.js'); // Autoload :id de comentarios exports.load=function (req,res,next,commentId) { models.Comment.find({ where:{ id:Number(commentId) } }).then(function (comment) { if(comment){ req.comment=comment; next(); }else{ next(new Error('No existe commentId=' +comme...
armero1989/quiz-2016
controllers/comment_controller.js
JavaScript
mit
1,348
package net.dirtyfilthy.bouncycastle.asn1.nist; import net.dirtyfilthy.bouncycastle.asn1.DERObjectIdentifier; import net.dirtyfilthy.bouncycastle.asn1.sec.SECNamedCurves; import net.dirtyfilthy.bouncycastle.asn1.sec.SECObjectIdentifiers; import net.dirtyfilthy.bouncycastle.asn1.x9.X9ECParameters; import net.dirtyfilth...
dirtyfilthy/dirtyfilthy-bouncycastle
net/dirtyfilthy/bouncycastle/asn1/nist/NISTNamedCurves.java
Java
mit
2,937
<?php // Include the API require '../../lastfmapi/lastfmapi.php'; // Get the session auth data $file = fopen('../auth.txt', 'r'); // Put the auth data into an array $authVars = array( 'apiKey' => trim(fgets($file)), 'secret' => trim(fgets($file)), 'username' => trim(fgets($file)), 'sessionKey' => trim(fgets($file...
SimonTalaga/MusicalTastesViz
vendor/lastfm/examples/tag.gettopalbums/index.php
PHP
mit
960
package com.cosmos.kafka.client.producer; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; import java.util.Properties; import java.util.Random; import static org.apache.kafka.clients.producer.ProducerConfig.*; /** * Producer using multiple partition ...
dantin/kafka-demo
kafka-producer/src/main/java/com/cosmos/kafka/client/producer/MultipleBrokerProducer.java
Java
mit
1,747
#David Hickox #Feb 15 17 #Squares (counter update) #descriptions, description, much descripticve #variables # limit, where it stops # num, sentry variable #creates array if needbe #array = [[0 for x in range(h)] for y in range(w)] #imports date time and curency handeling because i hate string formating (this tak...
dwhickox/NCHS-Programming-1-Python-Programs
Chap 3/Squares.py
Python
mit
778
<?php namespace Minsal\GinecologiaBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * SrgTipoConsultaPf * * @ORM\Table(name="srg_tipo_consulta_pf") * @ORM\Entity */ class SrgTipoConsultaPf { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * ...
sisreg/siap
src/Minsal/GinecologiaBundle/Entity/SrgTipoConsultaPf.php
PHP
mit
2,743
using System; using AppStudio.Uwp; namespace DJNanoShow.ViewModels { public class PrivacyViewModel : ObservableBase { public Uri Url { get { return new Uri(UrlText, UriKind.RelativeOrAbsolute); } } public string UrlText ...
wasteam/DJNanoSampleApp
W10/DJNanoShow.W10/ViewModels/PrivacyViewModel.cs
C#
mit
435
import React, { PropTypes } from 'react'; import TodoItem from './TodoItem'; const TodoList = ({todos}) => ( <ul className="todo-list"> {todos.map(todo => <TodoItem key={todo.id} {...todo} /> )} </ul> ); TodoList.propTypes = { todos: PropTypes.array.isRequired } export default TodoList;
johny/react-redux-todo-app
src/components/TodoList.js
JavaScript
mit
312
<?php namespace Podlove\Settings\Dashboard; use Podlove\Model; class FileValidation { public static function content() { global $wpdb; $sql = ' SELECT p.post_status, mf.episode_id, mf.episode_asset_id, mf.size, mf.id media_file_id FROM `'.Model\MediaFile::table_name().'...
podlove/podlove-publisher
lib/settings/dashboard/file_validation.php
PHP
mit
1,726
/* * Copyright (c) 2016. Xiaomu Tech.(Beijing) LLC. All rights reserved. */ package de.mpg.mpdl.labcam.code.common.widget; /** * Created by yingli on 10/19/15. */ public class Constants { public static final String STATUS_SUCCESS = "SUCCESS"; public static final String KEY_CLASS_NAME = "key_class_name";...
MPDL/MPDL-Cam
app/src/main/java/de/mpg/mpdl/labcam/code/common/widget/Constants.java
Java
mit
1,174
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2017 Christian Boulanger License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for detai...
johnspackman/qxcompiler
source/class/qx/tool/cli/commands/package/Migrate.js
JavaScript
mit
9,371
package gavilan.irc; import java.util.Set; import javax.annotation.PreDestroy; import org.pircbotx.PircBotX; public interface TwitchCore { void doGreet(ChatMessage cm); Set<String> getPendings(); void message(String channel, String message); void onMessage(ChatMessage cm); @PreDestroy void shutdown...
gavilancomun/irc-explorer
src/main/java/gavilan/irc/TwitchCore.java
Java
mit
366
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Documento * * @ORM\Table(name="documentos") * @ORM\Entity */ class Documento { /** * @var integer * * @ORM\Column(nam...
johnnykatz/colegio
src/AppBundle/Entity/Documento.php
PHP
mit
7,069
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("Imm...
preslavc/SoftUni
Programming Fundamentals/More Exercises/Dictionaries and Lists/Immune System/Properties/AssemblyInfo.cs
C#
mit
1,397
package com.github.visgeek.utils.collections; import java.util.Iterator; class LinqConcateIterator<T> implements Iterator<T> { // コンストラクター public LinqConcateIterator(Iterable<T> source, Iterable<? extends T> second) { this.second = second; this.itr = source.iterator(); this.isSwitched = false; } ...
visGeek/JavaVisGeekCollections
src/src/main/java/com/github/visgeek/utils/collections/LinqConcateIterator.java
Java
mit
1,003
package de.csmath.QT; import java.util.Collection; import java.util.List; /** * This class builds a FTypeAtom from given parameters. * @author lpfeiler */ public class FTypeAtomBuilder extends QTAtomBuilder { /** * @see FTypeAtom#majBrand */ private int majBrand = 0; /** * @see FTypeAt...
lpcsmath/QTReader
src/main/java/de/csmath/QT/FTypeAtomBuilder.java
Java
mit
1,783
// Video: https://www.youtube.com/watch?v=WH5BrkzGgQY const daggy = require('daggy') const compose = (f, g) => x => f(g(x)) const id = x => x //===============Define Coyoneda========= // create constructor with props 'x' and 'f' // 'x' is our value, 'f' is a function const Coyoneda = daggy.tagged('x', 'f') // map ...
dmitriz/functional-examples
examples/coyoneda.js
JavaScript
mit
1,828
package org.coursera.androidcapstone.symptomchecker.repository; import java.util.List; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import org.s...
emadhilo/capstone
SymptomCheckerService/src/main/java/org/coursera/androidcapstone/symptomchecker/repository/PatientRepository.java
Java
mit
860
var map, boroughSearch = [], theaterSearch = [], museumSearch = []; /* Basemap Layers */ var mapquestOSM = L.tileLayer("http://{s}.tiles.mapbox.com/v3/am3081.h0po4e8k/{z}/{x}/{y}.png"); var mbTerrainSat = L.tileLayer("https://{s}.tiles.mapbox.com/v3/matt.hd0b27jd/{z}/{x}/{y}.png"); var mbTerrainReg = L.tileL...
availabs/transit_analyst
assets/js/main.js
JavaScript
mit
2,596
# frozen_string_literal: true require 'spec_helper' describe ErrorTracking::ProjectErrorTrackingSetting do include ReactiveCachingHelpers set(:project) { create(:project) } subject { create(:project_error_tracking_setting, project: project) } describe 'Associations' do it { is_expected.to belong_to(:pr...
axilleas/gitlabhq
spec/models/error_tracking/project_error_tracking_setting_spec.rb
Ruby
mit
7,804
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. 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.ap...
tmcgee/cmv-wab-widgets
wab/2.13/widgets/CostAnalysis/setting/nls/pl/strings.js
JavaScript
mit
10,828
<?php /** * Created by PhpStorm. * User: Renfrid-Sacids * Date: 2/4/2016 * Time: 9:44 AM */ class Xform_model extends CI_Model { /** * Table name for xform definitions * * @var string */ private static $xform_table_name = "xforms"; //default value /** * Table name for archived/deleted xforms * *...
renfrid/dataManager
application/models/Xform_model.php
PHP
mit
5,088
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body> <!-- Main navigation --> <?php do_action( 'omega_before_header' ); ?> <!-- Featured post --> <div class="container...
serpentinegalleries/radio-serpentine
header-home.php
PHP
mit
1,005
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\RepeatedType; use Symfony\Component\...
Fabcra/bien_etre
src/AppBundle/Form/registerType.php
PHP
mit
962
/* * This file is part of the Cliche project, licensed under MIT License. See LICENSE.txt file in root folder of Cliche * sources. */ package net.dudehook.cliche2.util; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.S...
dudehook/Cliche2
src/main/java/net/dudehook/cliche2/util/ArrayHashMultiMap.java
Java
mit
2,003
const fs = require('fs') const { normalize, resolve, join, sep } = require('path') function getAppDir () { let dir = process.cwd() while (dir.length && dir[dir.length - 1] !== sep) { if (fs.existsSync(join(dir, 'quasar.conf.js'))) { return dir } dir = normalize(join(dir, '..')) } const { f...
rstoenescu/quasar-framework
app/lib/app-paths.js
JavaScript
mit
1,321
<?php require_once('config.php'); $session->requireLoggedIn(); require('design_head.php'); $text = ''; if (!empty($_POST['text'])) { $text = $_POST['text']; guessLanguage($text); } ?> <h2>Guess language</h2> Enter some text and see if the program can guess the language that the text were wr...
martinlindhe/core_dev
projects/lang/guess_language.php
PHP
mit
538
'use strict'; import Maths from './maths.js' import FSM from './fsm.js' import { Animation, Interpolation } from './animation.js' export { Maths, FSM, Interpolation, Animation }
InconceivableVizzini/interjs
src/inter.js
JavaScript
mit
179
namespace Free.FileFormats.VRML.Interfaces { public interface IX3DTexturePropertiesNode { } }
shintadono/Free.FileFormats.VRML
18 Texturing/Interfaces/IX3DTexturePropertiesNode.cs
C#
mit
100
// Runs the wiki on port 80 var server = require('./server'); server.run(80);
rswingler/byuwiki
server/controller/js/wiki.js
JavaScript
mit
79
using System; using System.Linq; namespace CapnProto.Schema.Parser { class CapnpVisitor { protected Boolean mEnableNestedType = true; protected CapnpModule mActiveModule; protected void EnableNestedType() { mEnableNestedType = true; } protected void DisableNestedTyp...
tempbottle/capnproto-net
CapnProto.net.Schema/Parser/CapnpVisitor.cs
C#
mit
7,402
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: AssemblyTi...
nwoolls/MultiMiner
MultiMiner.Update/Properties/AssemblyInfo.cs
C#
mit
1,454
package pipe.actions.gui; import pipe.controllers.PetriNetController; import pipe.controllers.PlaceController; import uk.ac.imperial.pipe.models.petrinet.Connectable; import uk.ac.imperial.pipe.models.petrinet.Place; import java.awt.event.MouseEvent; import java.util.Map; /** * Abstract action responsible for addin...
frig-neutron/PIPE
pipe-gui/src/main/java/pipe/actions/gui/TokenAction.java
Java
mit
2,378
var Type = require("@kaoscript/runtime").Type; module.exports = function(expect) { class Shape { constructor() { this.__ks_init(); this.__ks_cons(arguments); } __ks_init_0() { this._color = ""; } __ks_init() { Shape.prototype.__ks_init_0.call(this); } __ks_cons_0(color) { if(arguments.leng...
kaoscript/kaoscript
test/fixtures/compile/implement/implement.ctor.nseal.alias.js
JavaScript
mit
1,741
module TasksFileMutations AddFilesToTask = GraphQL::Relay::Mutation.define do name 'AddFilesToTask' input_field :id, !types.ID return_field :task, TaskType resolve -> (_root, inputs, ctx) { task = GraphqlCrudOperations.object_from_id_if_can(inputs['id'], ctx['ability']) files = [ctx[:fi...
meedan/check-api
app/graph/mutations/tasks_file_mutations.rb
Ruby
mit
972
package uk.co.nevarneyok.entities.product; import com.google.gson.annotations.SerializedName; public class ProductSize { private long id; @SerializedName("remote_id") private long remoteId; private String value; public ProductSize() { } public ProductSize(long id, long remoteId, String...
tugrulkarakaya/NeVarNeYok
app/src/main/java/uk/co/nevarneyok/entities/product/ProductSize.java
Java
mit
1,689
# -*- coding: utf-8 -*- """ 将json文件中的数据存到数据库中 """ import requests import json import os from word.models import (Word, EnDefinition, CnDefinition, Audio, Pronunciation, Example, Note) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) print(BASE_DIR) def process_data(data): data = data...
HideMode/ShanBay
data/script.py
Python
mit
1,642
namespace Watcher.Messages.Person { public class PersonRequest { } }
ronaldme/Watcher
Watcher.Messages/Person/PersonRequest.cs
C#
mit
84
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: AssemblyTi...
jeffld/CSharp-Regex
GenericApp/GenericApp.Program/Properties/AssemblyInfo.cs
C#
mit
1,480
<?php namespace System\Classes; use App; use Url; use File; use Lang; use Event; use Cache; use Route; use Config; use Request; use Response; use Assetic\Asset\FileAsset; use Assetic\Asset\GlobAsset; use Assetic\Asset\AssetCache; use Assetic\Asset\AssetCollection; use Assetic\Factory\AssetFactory; use October\Rain\Par...
lupin72/piergorelli.com
modules/system/classes/CombineAssets.php
PHP
mit
24,315
<?php /** * SimplePie * * A PHP-Based RSS and Atom Feed Framework. * Takes the hard work out of managing a complete RSS/Atom solution. * * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or w...
b13/t3ext-newsfeedimport
Classes/SimplePie/library/SimplePie.php
PHP
mit
88,133
#include "ObservationSequences.h" #include <iostream> #include <fstream> #include <algorithm> #include "boost\filesystem.hpp" using namespace std; namespace bst = boost::filesystem; ObservationSequences::~ObservationSequences() { } ObservationSequences::ObservationSequences(std::string folderName) { noOfFiles =...
anish-shekhawat/hmm-adaboost
src/ObservationSequences.cpp
C++
mit
1,824
'use strict' angular .module('softvApp') .controller('ModalAddhubCtrl', function (clusterFactory, tapFactory, $rootScope, areaTecnicaFactory, $uibModalInstance, opcion, ngNotify, $state) { function init() { if (opcion.opcion === 1) { vm.blockForm2 = true; muestraColonias(); muestr...
alesabas/Softv
app/scripts/controllers/areatecnica/ModalAddhubCtrl.js
JavaScript
mit
3,930
/* * The MIT License (MIT) * * Copyright (c) 2015 Lachlan Dowding * * 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 u...
Permafrost/Tundra.java
src/main/java/permafrost/tundra/math/IntegerHelper.java
Java
mit
4,471
require 'asciidoctor/extensions' Asciidoctor::Extensions.register do treeprocessor do process do |doc| doc end end end
feelpp/www.feelpp.org
_plugins/asciidoctor-extensions.rb
Ruby
mit
138
package com.artfulbits.utils; import android.text.TextUtils; import java.io.UnsupportedEncodingException; import java.util.logging.Logger; /** Common string routine. */ public final class StringUtils { /* [ CONSTANTS ] ==============================================================================================...
OleksandrKucherenko/spacefish
_libs/artfulbits-sdk/src/main/com/artfulbits/utils/StringUtils.java
Java
mit
1,547
from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core.management import call_command from django.db import models, connections, transaction from django.urls import reverse from django_tenants.clone import CloneSchema from .postgresql_backend.base import _check_sc...
tomturner/django-tenants
django_tenants/models.py
Python
mit
9,732
package server import ( "io" "io/ioutil" "log" "net/http" ) type Rest struct { channels map[string]*Channel } func NewRestServer(server *Server) *Rest { return &Rest{server.channels} } func (self *Rest) PostOnly(h http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) {...
nkostadinov/websocket
server/rest.go
GO
mit
1,150
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class HistorialC extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper('date'); $this->load->model('HistorialM'); if (!$this->session->userdata("login")) { ...
euphoz/correosusers
application/controllers/HistorialC.php
PHP
mit
506
using System; using System.Collections.Generic; using System.Linq; using RiotSharp.MatchEndpoint.Enums; namespace RiotSharp.Misc { static class Util { public static DateTime BaseDateTime = new DateTime(1970, 1, 1); public static DateTime ToDateTimeFromMilliSeconds(this long millis) {...
frederickrogan/RiotSharp
RiotSharp/Misc/Util.cs
C#
mit
1,281
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('pillzApp')); var MainCtrl, scope, $httpBackend; // Initialize the controller and a mock scope beforeEach(inject(function (_$httpBackend_, $controller, $rootScope) { $httpBackend = _$...
captDaylight/pillz
test/client/spec/controllers/main.js
JavaScript
mit
769
<?php use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\RequestContext; /** * appDevUrlMatcher * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlMatcher ext...
sekouzed/Libraire-biblioth-ques-en-ligne-avec-Symfony
app/cache/dev/appDevUrlMatcher.php
PHP
mit
27,519
'use strict'; var assert = require('power-assert'); var resetStorage = require('./'); var dbName = 'test-item'; describe('#localStorage', function () { beforeEach(function (done) { localStorage.clear(); done(); }); it('should save value', function () { var expected = { foo: 'bar', goo: 'nuu' }; ...
pandawing/node-reset-storage
test.js
JavaScript
mit
4,421
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Xml; using System.Xml.XPath; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Data.SqlTypes; using alby.core.threadpool ; namespace alby.codegen.generator { public partial...
casaletto/alby.codegen.2015
alby.codegen.generator/ViewGeneratorThreadPoolItem.cs
C#
mit
7,334
// Copyright (c) 2016-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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <chainparams.h> #include <chainparamsbase.h> #...
ElementsProject/elements
src/bitcoin-wallet.cpp
C++
mit
4,831
<?php namespace App\Common\Models\Order\Mysql; use App\Common\Models\Base\Mysql\Base; class OrderCommon extends Base { /** * 订单-订单扩展信息表管理 * This model is mapped to the table iorder_common */ public function getSource() { return 'iorder_common'; } public function reorganize...
handsomegyr/models
lib/App/Common/Models/Order/Mysql/OrderCommon.php
PHP
mit
613
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Treorisoft.Net.Utilities { /// <summary> /// Provides properties and instance methods for sending files ove...
Borvik/Winsock.Net
Winsock/Utilities/FileData.cs
C#
mit
11,804
package main import "fmt" func main() { fmt.Println("go" + "lang") fmt.Println("1+1 =", 1+1) fmt.Println("7.0/3.0 =", 7.0/3.0) fmt.Println(true && false) fmt.Println(true || false) fmt.Println(!true) }
csaura/go_examples
values/values.go
GO
mit
217
import React from 'react' import DocumentTitle from 'react-document-title' import ReactHeight from 'react-height' import Header from './header/header' import Content from './content/content' import Footer from './footer/footer' import { APP_NAME } from '../constants' class Layout extends React.Component { render()...
HendrikCrause/crossword-creator
src/components/layout.js
JavaScript
mit
792
import Graph from 'graphology-types'; export default function mergePath(graph: Graph, nodes: Array<unknown>): void;
graphology/graphology
src/utils/merge-path.d.ts
TypeScript
mit
117
var i18n = require('i18n'); var _ = require('lodash'); exports.register = function (plugin, options, next) { i18n.configure(options); plugin.ext('onPreResponse', function (request, extNext) { // If is an error message if(request.response.isBoom) { i18n.setLocale(getLocale(request, options)); ...
jozzhart/josepoo
lib/index.js
JavaScript
mit
731
from nintendo import dauth, switch from anynet import http import pytest CHALLENGE_REQUEST = \ "POST /v6/challenge HTTP/1.1\r\n" \ "Host: 127.0.0.1:12345\r\n" \ "User-Agent: libcurl (nnDauth; 16f4553f-9eee-4e39-9b61-59bc7c99b7c8; SDK 12.3.0.0)\r\n" \ "Accept: */*\r\n" \ "X-Nintendo-PowerState: FA\r\n...
Kinnay/NintendoClients
tests/test_dauth.py
Python
mit
2,095
package com.jxtech.distributed.zookeeper.pool; import java.util.NoSuchElementException; import org.apache.commons.pool.ObjectPool; import org.apache.commons.pool.PoolableObjectFactory; import org.apache.commons.pool.impl.StackObjectPool; import org.apache.zookeeper.ZooKeeper; import org.slf4j.Logger; import org.slf4j...
wmzsoft/JXADF
Source/JxADF/JxPlatform/src/main/java/com/jxtech/distributed/zookeeper/pool/ZookeeperPoolManager.java
Java
mit
3,203
<div class="page-actions"> <!-- AUDIO CONTAINER (conditional) --> <?php if ($page->episode_file()->isNotEmpty()) { ?> <div class="audio-holder" itemprop="audio"> <audio preload="none" controls> <source src="/podcasts/<?php echo $page->episode_file() ?>" type="audio/mpeg" /> </audio> </d...
AhoyLemon/TheFPlus
site/snippets/page-actions.php
PHP
mit
7,943
<?php namespace Braintree\Error; /** * * Validation Error codes and messages * * ErrorCodes class provides constants for validation errors. * The constants should be used to check for a specific validation * error in a ValidationErrorCollection. * The error messages returned from the server may change; * but t...
priyankamackwan/fit.lara
app/Libraries/vendor/braintree/braintree_php/lib/Braintree/Error/Codes.php
PHP
mit
50,875
var xml = require('xmlbuilder'); var fs = require('fs'); /** * Function is used to create plis file which is required for downloading ios app. * @param {string} name app name * @param {string} path path to application * @param {string} title title for alert * @param {Function} callback functi...
dimko1/ohmystore
server/utils/utils.xml.js
JavaScript
mit
1,412
package math; import util.IReplicable; public class Vector3 implements IReplicable<Vector3> { private static final float MIN_TOLERANCE = (float) 1E-9; public float x; public float y; public float z; public static Vector3 of(float x, float y, float z) { Vector3 vector = new Vector3(); ...
NathanJAdams/verJ
src/math/Vector3.java
Java
mit
4,539
using Phaxio.Examples.ReceiveCallback.Models; using System.Collections.Generic; using System.Runtime.Caching; using System.Web.Mvc; namespace Phaxio.Examples.ReceiveCallback.Controllers { public class HomeController : Controller { public ActionResult Index() { ObjectCache cache = M...
phaxio/phaxio-dotnet
Phaxio.Examples.ReceiveCallback/Controllers/HomeController.cs
C#
mit
461
'use strict'; define([], function($) { var Util = class { static charToLineCh(string, char) { var stringUpToChar = string.substr(0, char); var lines = stringUpToChar.split("\n"); return { line: lines.length - 1, ch: lines[lines.length - 1].length }; } }; return Util; });
pixelmaid/DynamicBrushes
javascript/app/Util.js
JavaScript
mit
319
package org.usfirst.frc.team5518.robot.subsystems; import org.usfirst.frc.team5518.robot.RobotMap; import org.usfirst.frc.team5518.robot.commands.ArcadeDriveJoystick; import edu.wpi.first.wpilibj.GenericHID; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.S...
TechnoWolves5518/2015RobotCode
JoystickDemo2/src/org/usfirst/frc/team5518/robot/subsystems/DrivingSys.java
Java
mit
1,232
<?php session_start(); if (isset($_SESSION['username'])) { $username = $_SESSION['username']; } $veza = new PDO('mysql:host=' . getenv('MYSQL_SERVICE_HOST') . ';port=3306;dbname=developer_blog', 'admin', 'user'); $veza->exec("set names utf8"); if (isset($_POST['update'])) { ...
NerminImamovic/developer-Blog
shareProblem.php
PHP
mit
4,871
#if !NOT_UNITY3D namespace Zenject { public class GameObjectNameGroupNameScopeArgBinder : GameObjectGroupNameScopeArgBinder { public GameObjectNameGroupNameScopeArgBinder( BindInfo bindInfo, GameObjectCreationParameters gameObjectInfo) : base(bindInfo, gameO...
austinmao/reduxity
Assets/Packages/Zenject/Source/Binding/Binders/GameObject/GameObjectNameGroupNameScopeArgBinder.cs
C#
mit
567
<?php namespace Hautelook\ExactTargetBundle\Services; use ET_Subscriber; use Hautelook\ExactTargetBundle\Model\Subscriber as SubscriberProperties; class SubscriberService extends AbstractService { public function __construct($appSignature, $clientId, $clientSecret, $defaultWsdl) { parent::__construct...
BradLook/ExactTargetBundle
Services/SubscriberService.php
PHP
mit
541
function initBtnStartAlgo(){ $('#btn_startDispatch').bind('click', function(event) { event.preventDefault(); initAlgo(); createResultPanel("div_resultPanel"); doRound(); printRound("resultRegion"); printResultPersonal("resultPersonal"); createDownloadableContent(); }); } // 初始化變數、將 htm...
johnyluyte/EPA-SMS-Dispatcher
js/algo.js
JavaScript
mit
7,887
/* * Velcro Physics: * Copyright (c) 2017 Ian Qvist */ using System.Collections.Generic; using Microsoft.Xna.Framework; using QEngine.Physics.Shared; using QEngine.Physics.Tools.Triangulation.Delaunay.Delaunay; using QEngine.Physics.Tools.Triangulation.Delaunay.Delaunay.Sweep; namespace QEngine.Physics.Tools.Triangu...
Quincy9000/QEngine.Framework
QEngine/Code/Physics/Tools/Triangulation/Delaunay/CDTDecomposer.cs
C#
mit
2,417
<?php namespace Sf\TodoBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class SfTodoBundle extends Bundle { }
a1092/pa8
src/Sf/TodoBundle/SfTodoBundle.php
PHP
mit
120
import * as _ from 'lodash'; import Vuex from 'vuex'; import {Deck} from '../models/Deck' import DeckState from '../models/state/DeckState' const store = { state: new DeckState(), mutations: { addToDeck(state, card) { if (!card) { return; } state.currentDeck.cards...
jmazouri/Deckard
Deckard/Frontend/src/deckard/state/DeckModule.ts
TypeScript
mit
2,091
namespace _01.SchoolClasses { // Disciplines have name, number of lectures and number of exercises using System; class Disciplines : BasicInfoPeopleAndObjects { private int lecturesNumber; private int exercisesNumber; public Disciplines(string name, int lecturesNumber, int ex...
clangelov/TelerikAcademyHomework
03_CSharp-OOP/OOP-Principles-Part1-Homework/01.SchoolClasses/Disciplines.cs
C#
mit
1,440
# == Schema Information # # Table name: github_stargazers # # id :integer not null, primary key # linked_account_id :integer not null # tracker_id :integer not null # stargazer :boolean # subscriber :boolean # forker :boolean # synced_at ...
bountysource/core
app/models/github_stargazer.rb
Ruby
mit
6,853
'use strict'; angular.module('articles').controller('ChangeHeaderImageController', ['$scope', '$timeout', '$stateParams', '$window', 'Authentication', 'FileUploader', 'Articles', function ($scope, $timeout, $stateParams, $window, Authentication, FileUploader, Articles) { $scope.user = Authentication.user; $s...
davidsbelt/bacca-app
modules/articles/client/controllers/change-header-image.client.controller.js
JavaScript
mit
2,451
/** @jsx h */ import h from '../../../helpers/h' import { Mark } from '../../../..' export default function(change) { change.addMark( Mark.create({ type: 'bold', data: { thing: 'value' }, }) ) } export const input = ( <value> <document> <paragraph> <anchor />w<focus />ord...
ashutoshrishi/slate
packages/slate/test/changes/at-current-range/add-mark/with-mark-object.js
JavaScript
mit
556
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * App\Entity$EditeurNatureSupport. * * @ORM\Table(name="editeurnaturesupport") * @ORM\Entity(repositoryClass="App\Repository\EditeurNatureSupportRepository...
dmsr45/github_sf_media
src/Entity/EditeurNatureSupport.php
PHP
mit
4,995
package main import ( "net/http" "sync" "time" "github.com/1lann/airlift/airlift" humanize "github.com/dustin/go-humanize" "github.com/gin-gonic/contrib/renders/multitemplate" "github.com/gin-gonic/contrib/sessions" "github.com/gin-gonic/gin" ) func formatBasicTime(t time.Time) string { return getDay(t) + "...
1lann/airlift
notes.go
GO
mit
2,768
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
JayWalker512/CrueltyGame
cruelty/vendor/cakephp/bake/src/Shell/Task/FixtureTask.php
PHP
mit
15,668
using System; namespace _14.MagicLetter { class Program { static void Main(string[] args) { char letter1 = char.Parse(Console.ReadLine()); char letter2 = char.Parse(Console.ReadLine()); string letter3 = Console.ReadLine(); for (char i = letter1;...
spacex13/SoftUni-Homework
ConditionalStatementsAndLoops/14.MagicLetter/Program.cs
C#
mit
806
<?php namespace Metro; use Monolog\Handler\HandlerInterface; use Monolog\Handler\PsrHandler; use Monolog\Logger; use Psr\Log\LoggerInterface; class Worker { /** @var ConsumableQueue */ private $metro; /** @var JobExecutor */ private $jobExecutor; /** @var string[] */ private $queues; /...
metro-q/metro
src/Worker.php
PHP
mit
3,524
<?php namespace EasiestWay\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; /** * User */ class User extends BaseUser { /** * @var integer */ protected $id; /** * Get id * * @return integer */ public function getId() ...
easiestway/project
src/EasiestWay/MainBundle/Entity/User.php
PHP
mit
358
package algorithms.sorting; import java.util.Scanner; /* * Sample Challenge * This is a simple challenge to get things started. Given a sorted array (ar) * and a number (V), can you print the index location of V in the array? * * Input Format: * There will be three lines of input: * * V - the va...
RCoon/HackerRank
algorithms/sorting/FindIndexIntro.java
Java
mit
1,297
require 'resque' require 'resque/plugins/heroku_scaler/version' require 'resque/plugins/heroku_scaler/config' require 'resque/plugins/heroku_scaler/manager' require 'resque/plugins/heroku_scaler/worker' require 'resque/plugins/heroku_scaler/resque' module Resque module Plugins module HerokuScaler class <<...
aarondunnington/resque-heroku-scaler
lib/resque/plugins/heroku_scaler.rb
Ruby
mit
2,946
using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace BlizzardAPI.Wow.DataResources { public class CharacterRaces { private List<CharacterRace> races = new List<CharacterRace>(); public List<CharacterRace> Races { get => races; set => races = value; } public Charac...
EcadryM/BlizzardAPI
BlizzardAPI/BlizzardAPI.Wow/DataResources/CharacterRaces.cs
C#
mit
1,046
/* * The Life Simulation Challenge * https://github.com/dankrusi/life-simulation-challenge * * Contributor(s): * Dan Krusi <dan.krusi@nerves.ch> (original author) * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "So...
dankrusi/life-simulation-challenge
Core/GUI/StartScreen.cs
C#
mit
4,607
""" Django settings for keyman project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
htlcnn/pyrevitscripts
HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keyman/settings.py
Python
mit
3,109
<script src="flowplayer-6.0.5/flowplayer.min.js'"></script> <script src="flowplayer-6.0.5/flowplayer.dashjs.min.js'"></script> <script src="flowplayer-6.0.5/flowplayer.hlsjs.min.js'"></script> <script src="flowplayer-6.0.5/flowplayer.quality-selector.min.js'"></script> <link rel="flowplayer-6.0.5/skin/functional.css"/>...
balrok/web_video
video.php
PHP
mit
1,711
package sx1272 const ( SX1272_REG_LR_FIFO byte = 0x00 // Common settings SX1272_REG_LR_OPMODE = 0x01 SX1272_REG_LR_FRFMSB = 0x06 SX1272_REG_LR_FRFMID = 0x07 SX1272_REG_LR_FRFLSB = 0x08 // Tx settings SX1272_REG_LR_PACONFIG = 0x09 SX1272_REG_LR_PARAMP = 0x0A SX1272_REG_LR_OCP = 0x0B // Rx settings SX...
NeuralSpaz/semtech1301
sx1272/sx1272LoraRegisters.go
GO
mit
2,318
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HTLib2.Bioinfo { public partial class ForceField { public class PwVdw : INonbonded, IHessBuilder4PwIntrAct { public virtual string[] FrcFldType { get { return new string[] { "...
htna/HCsbLib
HCsbLib/HCsbLib/HTLib2.Bioinfo/ForceField/ForceField.Pw/ForceField.PwVdw.cs
C#
mit
10,124