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
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Projection::ExtensionOperand, '#optimizable?' do subject { object.optimizable? } let(:header) { Relation::Header.coerce([[:id, Integer], [:name, String], [:age, Integer]]) } let(:base) { Relation.new(header, LazyEnumerable.new([[1, 'Dan...
dkubb/axiom-optimizer
spec/unit/axiom/optimizer/algebra/projection/extension_operand/optimizable_predicate_spec.rb
Ruby
mit
1,187
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Rendering; namespace ASP.NET_Core_Email.Models.ManageViewModels { public class ConfigureTwoFactorViewModel { public string SelectedProvider { get; set; } public ICol...
elanderson/ASP.NET-Core-Email
ASP.NET-Core-Email/src/ASP.NET-Core-Email/Models/ManageViewModels/ConfigureTwoFactorViewModel.cs
C#
mit
378
import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import Ember from "ember-metal/core"; // Ember.assert import EmberError from "ember-metal/error"; import { Descriptor, defineProperty } from "ember-metal/properties"; import { ComputedProperty } from "ember-metal/compute...
gdi2290/ember.js
packages/ember-metal/lib/alias.js
JavaScript
mit
2,326
/* * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package. * * author: emicklei */ V8D.receiveCallback = function(msg) { var obj = JSON.parse(msg); var context = this; if (obj.receiver != "this") { var namespaces = obj.rece...
emicklei/v8dispatcher
js/setup.js
JavaScript
mit
3,684
<?php namespace Symfony\Component\Serializer; use Symfony\Component\Serializer\SerializerInterface; /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ ...
flyingfeet/FlyingFeet
vendor/symfony/src/Symfony/Component/Serializer/SerializerAwareInterface.php
PHP
mit
608
// ƒwƒbƒ_ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh #include <windows.h> // •W€WindowsAPI #include <tchar.h> // TCHARŒ^ #include <string.h> // C•¶Žš—ñˆ— // ŠÖ”‚̃vƒƒgƒ^ƒCƒvéŒ¾ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // ƒEƒBƒ“ƒhƒEƒƒbƒZ[ƒW‚ɑ΂µ‚ēƎ©‚̏ˆ—‚ð‚·‚é‚æ‚¤‚É’è‹`‚µ‚½ƒR[ƒ‹ƒoƒbƒNŠ...
bg1bgst333/Sample
winapi/SetBkColor/SetBkColor/src/SetBkColor/SetBkColor/SetBkColor.cpp
C++
mit
5,385
/** * * Modelo de Login usando MCV * Desenvolvido por Ricardo Hirashiki * Publicado em: http://www.sitedoricardo.com.br * Data: Ago/2011 * * Baseado na extensao criada por Wemerson Januario * http://code.google.com/p/login-window/ * */ Ext.define('Siccad.view.authentication.CapsWarningTooltip', ...
romeugodoi/demo_sf2
src/Sicoob/SiccadBundle/Resources/public/js/siccad/view/authentication/CapsWarningTooltip.js
JavaScript
mit
1,010
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { public Vector3 m_rotate; public float m_speed; void Start() { transform.rotation = Random.rotation; } // Update is called once per frame void Update () { transf...
a172862967/ProceduralSphere
KGProceduralSphere/Assets/Demo/Rotate.cs
C#
mit
373
<?php /* SRVDVServerBundle:Registration:email.txt.twig */ class __TwigTemplate_d9fb642ef38579dd6542f4eacc9668ce91ac497e0fd5b3f1b1ca25429847bdfe extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks ...
youcefboukersi/serveurdevoeux
app/cache/dev/twig/a4/a4d5e331da6ebdf63a769ec513a07ed062a09e096299142f0540503ab3951bbb.php
PHP
mit
6,108
using Portal.CMS.Entities.Enumerators; using Portal.CMS.Services.Generic; using Portal.CMS.Services.PageBuilder; using Portal.CMS.Web.Architecture.ActionFilters; using Portal.CMS.Web.Architecture.Extensions; using Portal.CMS.Web.Areas.PageBuilder.ViewModels.Component; using Portal.CMS.Web.ViewModels.Shared; using Syst...
tommcclean/PortalCMS
Portal.CMS.Web/Areas/PageBuilder/Controllers/ComponentController.cs
C#
mit
7,137
<?php /** * Created by PhpStorm. * User: robert * Date: 1/14/15 * Time: 3:06 PM */ namespace Skema\Directive; class Binding extends Base { }
Skema/Skema
Skema/Directive/Binding.php
PHP
mit
149
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // ActionOnDispose.cs // // // Implemention of IDisposable that runs a del...
cuteant/dotnet-tpl-dataflow
source/Internal/ActionOnDispose.cs
C#
mit
5,481
using System; using System.Collections.Generic; using Esb.Transport; namespace Esb.Message { public interface IMessageQueue { void Add(Envelope message); IEnumerable<Envelope> Messages { get; } Envelope GetNextMessage(); void SuspendMessages(Type messageType); void Resu...
Xynratron/WorkingCluster
Esb/Message/IMessageQueue.cs
C#
mit
548
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CRealMoveRequestDelayCheckerDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Register { class CRealMoveRequestDelayChec...
goodwinxp/Yorozuya
library/ATF/CRealMoveRequestDelayCheckerRegister.hpp
C++
mit
727
//----------------------------------------------------------------------- // <copyright file="LocalizableFormBase.cs" company="Hyperar"> // Copyright (c) Hyperar. All rights reserved. // </copyright> // <author>Matías Ezequiel Sánchez</author> //---------------------------------------------------------------------...
hyperar/Hattrick-Ultimate
Hyperar.HattrickUltimate.UserInterface/LocalizableFormBase.cs
C#
mit
1,283
var width = window.innerWidth, height = window.innerHeight, boids = [], destination, canvas, context; const MAX_NUMBER = 100; const MAX_SPEED = 1; const radius = 5; init(); animation(); function init(){ canvas = document.getElementById('canvas'), context = canvas.getContext( "2d" ); canvas.w...
yuuki2006628/boid
boid.js
JavaScript
mit
4,749
package com.facetime.spring.support; import java.util.ArrayList; import java.util.List; import com.facetime.core.conf.ConfigUtils; import com.facetime.core.utils.StringUtils; /** * 分页类 * * @author yufei * @param <T> */ public class Page<T> { private static int BEGIN_PAGE_SIZE = 20; /** 下拉分页列表的递增数量级 */ priva...
allanfish/facetime
facetime-spring/src/main/java/com/facetime/spring/support/Page.java
Java
mit
3,885
package com.cnpc.framework.base.service.impl; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSON; import com.cnpc.framework.base.entity.Dict; import com.cnpc.framework.base.pojo.TreeNode; import com.c...
Squama/Master
AdminEAP-framework/src/main/java/com/cnpc/framework/base/service/impl/DictServiceImpl.java
Java
mit
4,363
#include "unicorn/format.hpp" #include <cmath> #include <cstdio> using namespace RS::Unicorn::Literals; using namespace std::chrono; using namespace std::literals; namespace RS::Unicorn { namespace UnicornDetail { namespace { // These will always be called with x>=0 and prec>=0 ...
CaptainCrowbar/unicorn-lib
unicorn/format.cpp
C++
mit
14,380
// // IOService.cpp // Firedrake // // Created by Sidney Just // Copyright (c) 2015 by Sidney Just // 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...
JustSid/Firedrake
slib/libio/service/IOService.cpp
C++
mit
3,272
//----------------------------------------------------------------------- // <copyright file="IDemPlateFileGenerator.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation 2011. All rights reserved. // </copyright> //----------------------------------------------------------------------- name...
WorldWideTelescope/wwt-tile-sdk
Core/IDemPlateFileGenerator.cs
C#
mit
977
namespace PlacesToEat.Data.Common { using System; using System.Data.Entity; using System.Linq; using Contracts; using Models; public class DbUserRepository<T> : IDbUserRepository<T> where T : class, IAuditInfo, IDeletableEntity { public DbUserRepository(DbContext context) ...
tcholakov/PlacesToEat
Source/Data/PlacesToEat.Data.Common/DbUserRepository{T}.cs
C#
mit
1,375
describe("Dragable Row Directive ", function () { var scope, container, element, html, compiled, compile; beforeEach(module("app", function ($provide) { $provide.value("authService", {}) })); beforeEach(inject(function ($compile, $rootScope) { html = '<div id="element-id" data-draggable-row=""' ...
wongatech/remi
ReMi.Web/ReMi.Web.UI.Tests/Tests/app/common/directives/draggableRowTests.js
JavaScript
mit
5,831
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Ninject.Modules; using Ninject.Extensions.Conventions; namespace SongManager.Web.NinjectSupport { /// <summary> /// Automatically loads all Boot Modules and puts them into the Ninject Dependency Resolver /// </summary> publ...
fjeller/ADC2016_Mvc5Sample
SongManager/SongManager.Web/NinjectSupport/DependencyBindingsModule.cs
C#
mit
725
package com.kromracing.runningroute.client; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.Widget; final public class Utils { private Utils() { } /** * Sets the HTML id ...
chadrosenquist/running-route
src/main/java/com/kromracing/runningroute/client/Utils.java
Java
mit
1,100
/** * This file was copied from https://github.com/jenkinsci/mercurial-plugin/raw/master/src/test/java/hudson/plugins/mercurial/MercurialRule.java * so we as well have a MercurialRule to create test repos with. * The file is licensed under the MIT License, which can by found at: http://www.opensource.org/licenses/mi...
jenkinsci/gatekeeper-plugin
src/test/java/org/paylogic/jenkins/advancedscm/MercurialRule.java
Java
mit
5,618
package zhou.adapter; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import java.util.List; /** * Created by zzhoujay on 2015/7/22 0022. */ public class Norm...
ChinaKim/AdvanceAdapter
app/src/main/java/zhou/adapter/NormalAdapter.java
Java
mit
1,412
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GulfCoin</source> <translation>關於位元幣</translation> </message> <message> <location li...
coingulf/gulfcoin
src/qt/locale/bitcoin_zh_TW.ts
TypeScript
mit
119,082
package UserInterface.Animation; /** * Makes shit get big, makes shit get small. */ public class SizeAnimation extends Animation { protected int iW, iH, fW, fH, cW, cH; public SizeAnimation(long period, int paceType, boolean loop, int iW, int iH, int fW, int fH) { super(period, paceType, loop); ...
Daskie/Crazy8-CPE-103
src/UserInterface/Animation/SizeAnimation.java
Java
mit
731
import _ from 'lodash'; import { createSelector } from 'reselect'; const srcFilesSelector = state => state.srcFiles; const featuresSelector = state => state.features; const featureByIdSelector = state => state.featureById; const keywordSelector = (state, keyword) => keyword; function getMarks(feature, ele) { const ...
supnate/rekit-portal
src/features/home/selectors/explorerTreeData.js
JavaScript
mit
4,178
<?php class Receiving_lib { var $CI; function __construct() { $this->CI =& get_instance(); } function get_cart() { if(!$this->CI->session->userdata('cartRecv')) $this->set_cart(array()); return $this->CI->session->userdata('cartRecv'); } function set_cart($cart_data) { $t...
songwutk/opensourcepos
application/libraries/Receiving_lib.php
PHP
mit
9,998
package com.mauriciotogneri.apply.compiler.syntactic.nodes.arithmetic; import com.mauriciotogneri.apply.compiler.lexical.Token; import com.mauriciotogneri.apply.compiler.syntactic.TreeNode; import com.mauriciotogneri.apply.compiler.syntactic.nodes.ExpressionBinaryNode; public class ArithmeticModuleNode extends Expres...
mauriciotogneri/apply
src/main/java/com/mauriciotogneri/apply/compiler/syntactic/nodes/arithmetic/ArithmeticModuleNode.java
Java
mit
603
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; @Component({ selector: 'app-user', template: '<router-outlet></router-outlet>' }) export class UserComponent implements OnInit { constructor(public router: Router) { } ngOnInit() { if (this.router.url ...
ahmelessawy/Hospital-Dashboard
Client/src/app/layouts/user/user.component.ts
TypeScript
mit
402
exports.login = function* (ctx) { const result = yield ctx.service.mine.login(ctx.request.body); if (!result) { ctx.status = 400; ctx.body = { status: 400, msg: `please check your username and password`, } return; } ctx.body = { access_token: result.access_token, msg: 'login ...
VIPShare/VIPShare-REST-Server
app/controller/mine.js
JavaScript
mit
2,077
using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Web; namespace Umbraco.Core { ///<summary> /// Extension methods for dictionary & concurrentdictionary ///...
lars-erik/Umbraco-CMS
src/Umbraco.Core/DictionaryExtensions.cs
C#
mit
12,153
import * as yargs from "yargs"; import { getEnvironment, getSlimConfig } from "../cli-helpers"; export const devCommand: yargs.CommandModule = { command: "dev", describe: "Start a development server.", builder: { open: { alias: "o", type: "boolean", description: ...
INSIDEM2M/slim
src/commands/dev.command.ts
TypeScript
mit
1,457
export const browserVersions = () => { let u = navigator.userAgent return { // 移动终端浏览器版本信息 trident: u.indexOf('Trident') > -1, // IE内核 presto: u.indexOf('Presto') > -1, // opera内核 webKit: u.indexOf('AppleWebKit') > -1, // 苹果、谷歌内核 gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') === -1, // 火狐...
donfo/generator-vue-tpl
generators/app/templates/src/utils/browser.js
JavaScript
mit
833
module YandexMusic class Client include YandexMusic::Auth include YandexMusic::Endpoints::Search include YandexMusic::Endpoints::ArtistAlbums include YandexMusic::Endpoints::AlbumsTracks def initialize(client_id, client_secret) @client_id, @client_secret = client_id, client_secret end ...
localhots/yandex_music
lib/yandex_music/client.rb
Ruby
mit
962
<?php $hostname = "localhost"; $user = "root"; $password = "admin"; $database = "employees"; mysql_connect($hostname, $user, $password); mysql_set_charset('utf8'); @mysql_select_db($database) or die( "Unable to select database"); mysql_query("SET NAMES 'utf8'"); $mysqli = new mysqli($hostname, $user, $password, $dat...
frankyhung93/Learn_Coding
php/mysql/db_connect.php
PHP
mit
554
/** * Get a number suffix * e.g. 1 -> st * @param {int} i number to get suffix * @return suffix */ var getSuffix = function (i) { var j = i % 10, k = i % 100; if (j == 1 && k != 11) { return i + "st"; } if (j == 2 && k != 12) { return i + "nd"; } if (j == 3 && k != ...
kayoumido/Ram-Bot
utility/tools.js
JavaScript
mit
429
namespace CSharpGL { partial class FormPropertyGrid { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ///...
bitzhuwei/CSharpGL
Infrastructure/CSharpGL.Models/FormPropertyGrid.Designer.cs
C#
mit
2,212
package net.pinemz.hm.gui; import net.pinemz.hm.R; import net.pinemz.hm.api.HmApi; import net.pinemz.hm.api.Prefecture; import net.pinemz.hm.api.PrefectureCollection; import net.pinemz.hm.storage.CommonSettings; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view....
pine613/android-hm
android-hm/src/net/pinemz/hm/gui/SettingsActivity.java
Java
mit
6,222
/* * This file is part of Zinc, licensed under the MIT License (MIT). * * Copyright (c) 2015-2016, Jamie Mansfield <https://github.com/jamierocks> * * 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 ...
jamierocks/Zinc
Example/src/main/java/uk/jamierocks/zinc/example/ExampleCommands.java
Java
mit
2,269
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
joaomoreno/vscode
src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.ts
TypeScript
mit
18,581
// Template Source: BaseEntityCollectionPage.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------...
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/TermsAndConditionsAcceptanceStatusCollectionPage.java
Java
mit
2,194
// Script by Bo Tranberg // http://botranberg.dk // https://github.com/tranberg/citations // // This script requires jQuery and jQuery UI $(function() { // Inser html for dialog just before the button to open it var butt = document.getElementById('citations'); butt.insertAdjacentHTML('beforeBegin', ...
tranberg/citations
js/cite.js
JavaScript
mit
6,059
package io.github.ageofwar.telejam.updates; import io.github.ageofwar.telejam.Bot; import io.github.ageofwar.telejam.TelegramException; import io.github.ageofwar.telejam.methods.GetUpdates; import java.io.IOException; import java.util.Collections; import java.util.Objects; import java.util.concurrent.ConcurrentLinked...
AgeOfWar/Telejam
src/main/java/io/github/ageofwar/telejam/updates/UpdateReader.java
Java
mit
4,138
""" ``editquality generate_make -h`` :: Code-generate Makefile from template and configuration :Usage: generate_make -h | --help generate_make [--config=<path>] [--main=<filename>] [--output=<path>] [--template...
wiki-ai/editquality
editquality/utilities/generate_make.py
Python
mit
2,362
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
vulcansteel/autorest
AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/BodyArray/auto_rest_swagger_bat_array_service/models/product.py
Python
mit
931
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const blink = keyframes` from, to { opacity: 1; } 50% { opacity: 0; } `; const CursorSpan = styled.span` font-weight: 100; color: black; font-size: 1em; padding-left: 2px; an...
adamjking3/react-typing-animation
src/Cursor.js
JavaScript
mit
572
// Copyright Louis Dionne 2015 // Distributed under the Boost Software License, Version 1.0. #include <type_traits> template <typename T> using void_t = std::conditional_t<true, void, T>; // sample(common_type-N3843) template <typename T, typename U> using builtin_common_t = std::decay_t<decltype( true ? std::de...
ldionne/hana-cppnow-2015
code/common_type-N3843.cpp
C++
mit
1,800
package remove_duplicates_from_sorted_list; import common.ListNode; public class RemoveDuplicatesfromSortedList { public class Solution { public ListNode deleteDuplicates(ListNode head) { if (head != null) { ListNode pre = head; ListNode p = pre.next; ...
quantumlaser/code2016
LeetCode/Answers/Leetcode-java-solution/remove_duplicates_from_sorted_list/RemoveDuplicatesfromSortedList.java
Java
mit
668
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; namespace Umbraco.Core.Models.EntityBase { /// <summary> /// A base class for use to implement IRememberBeingDirty/ICanBeDirty /// </summary> public abstract class Tracks...
zidad/Umbraco-CMS
src/Umbraco.Core/Models/EntityBase/TracksChangesEntityBase.cs
C#
mit
5,915
# coding=utf8 """ Parser for todo format string. from todo.parser import parser parser.parse(string) # return an Todo instance """ from models import Task from models import Todo from ply import lex from ply import yacc class TodoLexer(object): """ Lexer for Todo format string. Tokens ID ...
guori12321/todo
todo/parser.py
Python
mit
2,473
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it wil...
AnisB/Donut
engine/src/stateengine/AtomicState.cpp
C++
mit
2,621
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
psamada2012/psa
app/AppKernel.php
PHP
mit
3,052
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Dumper; use Symfony\...
Harmeko/badass_shop
vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
PHP
mit
10,241
'use strict'; angular.module('mean.system').directive('googleMaps', ['GoogleMaps', 'Global', function(GoogleMaps, Global) { return { restrict: 'E', template: '<div id="map" style="height: 600px; width: 100%;"></div>', controller: function() { var mapOptions; if ( GoogleMaps ) { ...
ezekielriva/bus-locator
public/system/directives/google-maps.js
JavaScript
mit
612
import { Component, OnInit, HostListener, ElementRef } from '@angular/core'; import { Router, NavigationEnd, NavigationExtras } from '@angular/router'; import { AuthService } from '../../services/auth.service'; @Component({ selector: 'app-nav', templateUrl: 'app-nav.component.html' }) export class AppNavComponent ...
Izak88/morose
src/app/components/app-nav/app-nav.component.ts
TypeScript
mit
1,671
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "bitcoingui.h" #include "clien...
coinkeeper/2015-06-22_19-00_ziftrcoin
src/qt/walletview.cpp
C++
mit
10,319
<?php return array ( 'id' => 'samsung_gt_m5650_ver1', 'fallback' => 'generic_dolfin', 'capabilities' => array ( 'pointing_method' => 'touchscreen', 'mobile_browser_version' => '1.0', 'uaprof' => 'http://wap.samsungmobile.com/uaprof/GT-M5650.rdf', 'model_name' => 'GT M5650', 'brand_name' => ...
cuckata23/wurfl-data
data/samsung_gt_m5650_ver1.php
PHP
mit
2,098
<?php /** * File: SimpleImage.php * Author: Simon Jarvis * Modified by: Miguel Fermín * Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publish...
ryno888/thehappydog
application/helpers/image_compression_helper.php
PHP
mit
7,553
# == Schema Information # # Table name: accounts # # id :integer not null, primary key # type :string default("Account"), not null # description :string default(""), not null # currency :string default("USD"), ...
bountysource/core
app/models/account/software_public_interest.rb
Ruby
mit
800
package illume.analysis; import java.awt.image.BufferedImage; /* This simple analyser example averages pixel values. */ public class SimpleImageAnalyser<T extends BufferedImage> extends AbstractImageAnalyser<T> { @Override public double analyse(T input) { int sum_r = 0; int sum_g = 0; ...
HSAR/Illume
src/main/java/illume/analysis/SimpleImageAnalyser.java
Java
mit
852
import { ExtraGlamorousProps } from './glamorous-component' import { ViewProperties, TextStyle, ViewStyle, ImageStyle, TextInputProperties, ImageProperties, ScrollViewProps, TextProperties, TouchableHighlightProperties, TouchableNativeFeedbackProperties, TouchableOpacityProperties, TouchableWit...
robinpowered/glamorous-native
typings/built-in-glamorous-components.d.ts
TypeScript
mit
1,623
var express = require('../') , Router = express.Router , request = require('./support/http') , methods = require('methods') , assert = require('assert'); describe('Router', function(){ var router, app; beforeEach(function(){ router = new Router; app = express(); }) describe('.match(method, u...
Mitdasein/AngularBlogGitHub
mongodb/visionmedia-express-7724fc6/test/Router.js
JavaScript
mit
3,342
#include "EventQueueThread.h"
InfiniteInteractive/LimitlessSDK
sdk/Utilities/eventQueueThread.cpp
C++
mit
30
using Foundation; using System; using System.Linq; using UIKit; namespace UICatalog { public partial class BaseSearchController : UITableViewController, IUISearchResultsUpdating { private const string CellIdentifier = "searchResultsCell"; private readonly string[] allItems = { ...
xamarin/monotouch-samples
UICatalog/UICatalog/Controllers/Search/SearchControllers/BaseSearchController.cs
C#
mit
2,884
<?php /** * This file is part of the Cubiche package. * * Copyright (c) Cubiche * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cubiche\Core\EventDispatcher; use Cubiche\Core\Bus\MessageInterface; /** * Event interfa...
cubiche/cubiche
src/Cubiche/Core/EventDispatcher/EventInterface.php
PHP
mit
799
<?php namespace Kordy\Ticketit\Controllers; use App\Http\Controllers\Controller; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Kordy\Ticketit\Models\Agent; use Kordy\Ticketit\Models\Setting; use Kordy\Tick...
maxvishnja/ticketsystem
src/Controllers/InstallController.php
PHP
mit
8,480
package com.covoex.qarvox; import com.covoex.qarvox.Application.BasicFunction; /** * @author Myeongjun Kim */ public class Main { public static void main(String[] args) { BasicFunction.programStart(); } }
Covoex/Qarvox
src/main/java/com/covoex/qarvox/Main.java
Java
mit
227
<?php /* Safe sample input : get the field UserData from the variable $_POST sanitize : use of ternary condition construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this s...
stivalet/PHP-Vulnerability-test-suite
URF/CWE_601/safe/CWE_601__POST__ternary_white_list__http_redirect_file_id-concatenation_simple_quote.php
PHP
mit
1,220
import {Curve} from '../curve' export class Line extends Curve { constructor(p0, v) { super(); this.p0 = p0; this.v = v; this._pointsCache = new Map(); } intersectSurface(surface) { if (surface.isPlane) { const s0 = surface.normal.multiply(surface.w); return surface.normal.dot(s...
Autodrop3d/autodrop3dServer
public/webcad/app/brep/geom/impl/line.js
JavaScript
mit
1,860
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2019_11_01 module Models # # Properties of the Radius client root certificate of # VpnServerConfiguration. #...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-11-01/generated/azure_mgmt_network/models/vpn_server_config_radius_client_root_certificate.rb
Ruby
mit
1,617
<?php /** * * Enter address data for the cart, when anonymous users checkout * * @package VirtueMart * @subpackage User * @author Max Milbers * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, s...
yaelduckwen/libriastore
joomla/templates/horme_3/html/com_virtuemart/user/edit_address_addshipto.php
PHP
mit
988
#include "TString.h" #include "TGraph.h" #include "TGraphErrors.h" #include "TGraphAsymmErrors.h" #include <fstream> #include <Riostream.h> #include <sstream> #include <fstream> using namespace std; TGraphErrors* GetGraphWithSymmYErrorsFromFile(TString txtFileName, Color_t markerColor=1, Style_t markerStyle=20, Size_t...
tuos/FlowAndCorrelations
flowCorr/paperMacro/qm/GetFileAndSys.C
C++
mit
1,754
<?php // Documentation test config file for "Components / Jumbotron" part return [ 'title' => 'Jumbotron', 'url' => '%bootstrap-url%/components/jumbotron/', 'rendering' => function (\Laminas\View\Renderer\PhpRenderer $oView) { echo $oView->jumbotron([ 'title' => 'Hello, world!', ...
neilime/zf-twbs-helper-module
tests/TestSuite/Documentation/Components/Jumbotron.php
PHP
mit
2,445
""" Gauged https://github.com/chriso/gauged (MIT Licensed) Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com> """ from urlparse import urlparse, parse_qsl from urllib import unquote from .mysql import MySQLDriver from .sqlite import SQLiteDriver from .postgresql import PostgreSQLDriver def parse_dsn(dsn_string): ...
chriso/gauged
gauged/drivers/__init__.py
Python
mit
1,960
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
borisbrodski/jmockit
main/src/mockit/external/asm4/Type.java
Java
mit
25,672
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ibtokin.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
ibtokin/ibtokin
manage.py
Python
mit
805
<table class="table table-striped table-bordered table-hover"> <tr> <th>Student Id</th> <th>Student Name</th> <th>Course</th> <!--<th> <select class="form-control" name='Year Level' required> <option> THIRD YEAR</option> <option> ALL</option> <option> FIRST YEAR</option> <option> ...
Jheysoon/lcis
application/views/registrar/ajax/tbl_studlist.php
PHP
mit
1,567
/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.bpel4chor.model.pbd; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Query</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.bpel4chor.model.pbd...
chorsystem/middleware
chorDataModel/src/main/java/org/eclipse/bpel4chor/model/pbd/Query.java
Java
mit
3,371
import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JTextPane; import java.awt.SystemColor; /** * The GUIError object is used to show an erro...
jkjoschua/poe-ladder-tracker-java
LadderTracker/src/GUIError.java
Java
mit
2,387
import { GraphQLError } from '../../error/GraphQLError'; import type { SchemaDefinitionNode, SchemaExtensionNode, } from '../../language/ast'; import type { ASTVisitor } from '../../language/visitor'; import type { SDLValidationContext } from '../ValidationContext'; /** * Unique operation types * * A GraphQL ...
graphql/graphql-js
src/validation/rules/UniqueOperationTypesRule.ts
TypeScript
mit
1,903
#include "DirectShow.h"
xylsxyls/xueyelingshuang
src/DirectShow/DirectShow/src/DirectShow.cpp
C++
mit
23
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace Podcasts.Converters { public class PodcastDurationConverter : TypedConverter<TimeSpan?, string> { public override string Conv...
AndrewGaspar/Podcasts
Podcasts.Shared/Converters/PodcastDurationConverter.cs
C#
mit
904
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/javascript/generated/src/model/PipelineRunNode.js
JavaScript
mit
3,684
package com.lamost.update; import java.io.IOException; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import org.xmlpull.v1.XmlPullParserException; import android.util.Log; /** * Cre...
SummerBlack/MasterServer
app/src/main/java/com/lamost/update/UpdateWebService.java
Java
mit
2,678
<?php namespace gries\Pokemath\Numbers; use gries\Pokemath\PokeNumber; class Mienshao extends PokeNumber { public function __construct() { parent::__construct('mienshao'); } }
gries/pokemath
src/Numbers/Mienshao.php
PHP
mit
198
<?php /** * This file is automatically created by Recurly's OpenAPI generation process * and thus any edits you make by hand will be lost. If you wish to make a * change to this file, please create a Github issue explaining the changes you * need and we will usher them to the appropriate places. */ namespace Recur...
recurly/recurly-client-php
lib/recurly/resources/shipping_method_mini.php
PHP
mit
2,229
class Client { constructor(http_client){ this.http_client = http_client this.method_list = [] } xyz() { return this.http_client } } function chainable_client () { HttpClient = require('./http_client.js') http_client = new HttpClient(arguments[0]) chainable_method = require('./chainable_method.js') ret...
balous/nodejs-kerio-api
lib/kerio-api.js
JavaScript
mit
409
<?php /* * jQuery File Upload Plugin PHP Class 6.1.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ class UploadHandler { protected $options; // PHP File Upload e...
bakercp/ofxIpVideoServer
example/bin/data/jQuery-File-Upload-master/server/php/UploadHandler.php
PHP
mit
30,399
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
AkshayRaul/MEAN_ToDo
public/app/services/register/register.service.js
JavaScript
mit
1,804
require File.expand_path('../../spec_helper', __FILE__) module Pod describe Command::Search do extend SpecHelper::TemporaryRepos describe 'Search' do it 'registers it self' do Command.parse(%w{ search }).should.be.instance_of Command::Search end it 'runs with correct parameters' d...
CocoaPods/cocoapods-search
spec/command/search_spec.rb
Ruby
mit
6,098
package cn.winxo.gank.module.view; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.util.Log; import...
yunxu-it/GMeizi
app/src/main/java/cn/winxo/gank/module/view/DetailActivity.java
Java
mit
3,411
<?php /* UserFrosting Version: 0.2.2 By Alex Weissman Copyright (c) 2014 Based on the UserCake user management system, v2.0.2. Copyright (c) 2009-2012 UserFrosting, like UserCake, is 100% free and open-source. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
AmazinGears/CoinC
models/funcs.php
PHP
mit
18,102
package br.com.swconsultoria.nfe.schema.retEnvEpec; import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * Tipo Evento * * <p>Classe Java de TEvento complex type. * * <p>O seguinte fragmento do es...
Samuel-Oliveira/Java_NFe
src/main/java/br/com/swconsultoria/nfe/schema/retEnvEpec/TEvento.java
Java
mit
40,213
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
ProfilerTeam/Profiler
protected/vendors/Zend/Form/Element/Multiselect.php
PHP
mit
1,461
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.ai.formrecognizer.administration; import com.azure.ai.formrecognizer.administration.models.AccountProperties; import com.azure.ai.formrecognizer.administration.models.BuildModelOptions; import com.azure.a...
Azure/azure-sdk-for-java
sdk/formrecognizer/azure-ai-formrecognizer/src/samples/java/com/azure/ai/formrecognizer/administration/DocumentModelAdminAsyncClientJavaDocCodeSnippets.java
Java
mit
24,260
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Windows.Forms; namespace NetsuiteEnvironmentViewer { //http://stackoverflow.com/questions/6442911/how-do-i-sync-scrolling-in-2-treeviews-using-the-slider public partial class MyTreeView : TreeView { publi...
zacarius89/NetsuiteEnvironmentViewer
NetsuiteEnvironmentViewer/windowsFormClients/treeViewClient.cs
C#
mit
3,736