repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
madfist/aoc2016
aoc2018/day08/main.py
2649
import sys def sum_metadata(idx, nums): sum = 0 if (nums[idx] > 0): for i in range(nums[idx]): s, idx = sum_metadata(idx+2, nums) sum += s else: for i in range(nums[idx+1]): sum += nums[idx+2+i] idx += 2 + nums[idx+1] return sum, idx # zero-s...
mit
modjs/mod-pageload-reporter
harviewer/scripts/nls/previewTab.js
731
/* See license.txt for terms of usage */ define( { "root": { "previewTabLabel": "Preview", "showTimelineButton": "Show Page Timeline", "hideTimelineButton": "Hide Page Timeline", "showTimelineTooltip": "Show/hide statistic preview for selected pages in the timeline.", "showS...
mit
blinkboxbooks/catalogue-v2.scala
catalogue2-service-public/src/main/scala/com/blinkbox/books/agora/catalogue/contributor/ElasticSearchContributorService.scala
638
package com.blinkbox.books.agora.catalogue.contributor import java.util.concurrent.Executors import com.blinkbox.books.logging.DiagnosticExecutionContext import com.typesafe.scalalogging.StrictLogging import scala.concurrent.{ExecutionContext, Future} class ElasticSearchContributorService extends ContributorService w...
mit
sazid/codes
problem_solving/codeforces/401C.cpp
980
#include <bits/stdc++.h> using namespace std; short arr[(int)10e6+5]; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, m; string s; cin >> n >> m; if (n-1 <= m and (m <= 2 * (n + 1))) { if (n-1 == m) { cout << 0; for(size_t i = 0; i < m; ++i) { cout << 10; }...
mit
mcrider/aiga-5-0
client/pages/entry/new_entry.js
3374
Template.new_entry.events({ 'click #entryList': function(e) { e.preventDefault(); Session.set('newEntry', false); }, 'change #type': function(e) { var type = $(e.currentTarget).val(); $('.project_fields').addClass('hidden'); // Adjust project team fields $('.team_member').hide(); $(...
mit
rajdeepv/nakal
lib/nakal.rb
1329
require 'rmagick' require 'fileutils' require 'yaml' require 'pry' require_relative "nakal/version" require_relative 'nakal/base_screen' require_relative 'nakal/android/screen' require_relative 'nakal/ios/screen' require_relative 'nakal/dsl' module Nakal class<<self attr_accessor :device_name, :directory, :plat...
mit
BaseCampOps/active_merchant
lib/active_merchant/billing/gateways/merchant_e_solutions.rb
6947
module ActiveMerchant #:nodoc: module Billing #:nodoc: class MerchantESolutionsGateway < Gateway include Empty self.test_url = 'https://cert.merchante-solutions.com/mes-api/tridentApi' self.live_url = 'https://api.merchante-solutions.com/mes-api/tridentApi' # The countries the gateway su...
mit
swinkelhofer/websites
AlisonThunderland/functions.js
681
function scrollUp() { iframe.window.scrollBy(0,-80); } function scrollDown() { iframe.window.scrollBy(0,80); } function loadNews() { document.all.iframe.setAttribute("src", "news.htm", "true"); } function loadAlison() { document.all.iframe.setAttribute("src", "alison.htm", "true"); } function loadContac...
mit
davidbgk/comprendre-javascript
07-le-call/03.js
1003
/* Une fois les concepts `apply`, `this` et `arguments` compris, on peut s'amuser à les combiner pour faire des fonctions génériques. */ var GoodHunter = { bringBack: "Mushrooms" }; var BadHunter = { bringBack: "Nothing" }; function gotMushrooms(people) { return people.bringBack === "Mushrooms"; } console.log(got...
mit
SungwooNam/sketchup-motion
sketchup-developer-tools unit tests/TEST_MOTION_ACTION.rb
5808
require 'test/unit' require 'motion.rb' include Motion class TEST_MOTION_ACTION < Test::Unit::TestCase class AlwaysArrivedAction < Motion::Action def arrived?() true; end def tick( sec = 1.0 ) fire_arrived_fn; end end def test_should_call_all_the_added_fn_when_arrived action = AlwaysArrivedAction.new ...
mit
bitjson/bitcore
packages/bitcore-client/src/providers/tx-provider/btc/index.ts
1419
export class BTCTxProvder { lib = require('bitcore-lib'); create({ recipients, utxos, change, fee }) { let tx = new this.lib.Transaction().from(utxos).fee(Number(fee)); for (const recipient of recipients) { tx.to(recipient.address, recipient.amount); } if (change) { tx.change(change); ...
mit
ismailakbudak/layered-architecture
Container/SITE.cs
1448
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. //...
mit
creatubbles/ctb-mcmod
src/main/java/com/creatubbles/repack/endercore/client/gui/GuiScreenBase.java
6757
package com.creatubbles.repack.endercore.client.gui; import java.io.IOException; import java.util.Iterator; import java.util.List; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minec...
mit
artisin/js-library-setup-guide
__scripts__/setup/generate-files/nvmrc.generate.js
536
const fs = require('fs-extra'); const path = require('path'); /** * Configs the .nvmrc file */ const config = function ({dir, nvmrc}) { let data = fs.readFileSync(path.resolve(__dirname, './template/.nvmrc')); if (data) { data = data.toString(); data = data.replace(/<VERSION>/g, nvmrc).replace(/"|'/g, ...
mit
yeahsmaggy/Slim-Tour-CMS
public/css/jquery-ui-1.10.4.custom/development-bundle/ui/minified/i18n/jquery.ui.datepicker-he.min.js
930
/*! jQuery UI - v1.10.4 - 2018-06-10 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.he={closeText:"סגור",prevText:"&#x3C;הקודם",nextText:"הבא&#x3E;",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","א...
mit
kazimanzurrashid/textuml-dotnet
source/TextUml/Infrastructure/Membership/AppIdentityAuthenticationManager.cs
1572
namespace TextUml.Infrastructure { using System; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; [CLSCompliant(false)] public class AppIdentityAuthenticationManager : IdentityAuthenticationManager { ...
mit
bcvsolutions/CzechIdMng
Realization/frontend/czechidm-core/src/content/notification/email/Emails.js
822
import React from 'react'; import * as Basic from '../../../components/basic'; import { EmailManager } from '../../../redux'; import EmailTable from './EmailTable'; /** * List of email in audit log. * * @author Radek Tomiška */ export default class Emails extends Basic.AbstractContent { constructor(props, conte...
mit
reedcwilson/programming-fundamentals
lessons/6/6.py
1074
#!/usr/bin/env python #==============================================================================# #-------------------------------- Introduction --------------------------------# #==============================================================================# # OUTLINE: # questions . . . # review print '_____...
mit
Topolev/TimeCurrentCharacteristic
src/app/draw-tripping-characteristics/coordinate-panel/area-builder.ts
701
import {Area, AreaTemplate} from "./area-template"; export class BuilderArea { public buildAreaByTemplate(areaTemplate: AreaTemplate): Area { var area: Area = new Area(); area.xEnd = null; area.xStart = null; area.areaTemplate = areaTemplate; area.type = areaTemplate.type; if (area.type == 0)...
mit
jrowberg/keyglove
docs/arduino/html/search/classes_1.js
108
var searchData= [ ['iwrap_5fpairing_5ft',['iwrap_pairing_t',['../structiwrap__pairing__t.html',1,'']]] ];
mit
olivif/bookman
lib/goodreadsApi.js
4105
var api = {}; const request = require('request'); const parseString = require('xml2js').parseString; const apiBase = 'https://www.goodreads.com'; // https://www.goodreads.com/shelf/list.xml // key: Developer key (required). // user_id: Goodreads user id (required) // page: 1-N (default 1) api.getShelves = functio...
mit
sholev/SoftUni
OpenCourses/JavaWebDevelopment/Project/ThemBooks/src/main/java/bg/softuni/library/dao/user/RolesDao.java
2171
package bg.softuni.library.dao.user; import java.util.List; import java.util.ArrayList; import org.hibernate.Criteria; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.criterion.Order; import org.hibernat...
mit
didiercrunch/vulture
stats_test.go
1489
package main import ( "testing" ) func TestNewStats(t *testing.T) { s := NewStatAggregator() if s.n != 0 || s.sum != 0 || s.sumOfTheSquares != 0 || len(s.histogram) != initialLength || s.min != veryBig || s.max != verySmall { t.Fail() } } func TestAddStatsBasic(t *testing.T) { numbers := []float64{...
mit
nico01f/z-pec
ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapProvisioning.java
402683
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the Li...
mit
maxcountryman/flask-uploads
flask_uploads.py
19724
# -*- coding: utf-8 -*- """ flaskext.uploads ================ This module provides upload support for Flask. The basic pattern is to set up an `UploadSet` object and upload your files to it. :copyright: 2010 Matthew "LeafStorm" Frazier :license: MIT/X11, see LICENSE for details """ import sys PY3 = sys.version_inf...
mit
u-renda/nic_api
application/controllers/Cart_total.php
8504
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require APPPATH.'/libraries/REST_Controller.php'; class Cart_total extends REST_Controller { function __construct() { parent::__construct(); $this->load->model('cart_total_model', 'the_model'); } function create_post() { ...
mit
Syncano/syncano-cli
syncano_cli/parse_to_syncano/moses.py
2196
# -*- coding: utf-8 -*- import click from syncano_cli.base.formatters import Formatter from syncano_cli.base.options import ColorSchema from syncano_cli.base.prompter import Prompter from syncano_cli.config import ACCOUNT_CONFIG_PATH from syncano_cli.parse_to_syncano.config import CONFIG_VARIABLES_NAMES def force_con...
mit
justphil/angular-es6-components-seed
karma.conf.js
4148
var istanbul = require('browserify-istanbul'), isparta = require('isparta'), gulpMainConfig = require('./gulp/config'); // Karma configuration for unit tests module.exports = function (config) { var srcDir = gulpMainConfig.sourceDirectory.substr(2); var karmaConfig = { // base path, that will...
mit
mmirhoseini/fyber_mobile_offers
core-lib/src/main/java/com/mirhoseini/fyber/di/scope/LoginScope.java
273
package com.mirhoseini.fyber.di.scope; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.inject.Scope; /** * Created by Mohsen on 30/09/2016. */ @Scope @Retention(RetentionPolicy.RUNTIME) public @interface LoginScope { }
mit
dadooda/ori
lib/ori/library.rb
1383
require "set" module ORI # ri lookup library. class Library #:nodoc: # Mask of ri command to fetch content. Example: # # ri -T -f ansi %s attr_accessor :frontend # Shell escape mode. <tt>:unix</tt> or <tt>:windows</tt>. attr_accessor :shell_escape def initialize(attrs = {}) ...
mit
meedan/pender
app/models/concerns/media_html_preprocessor.rb
939
module MediaHtmlPreprocessor extend ActiveSupport::Concern def preprocess_html(html) html = find_sharethefacts_links(html) if include_sharethefacts_js(html) unless html.blank? html.gsub!('<!-- <div', '<div') html.gsub!('div> -->', 'div>') end html end def include_sharethefacts_js(h...
mit
DXCanas/content-curation
contentcuration/search/viewsets/savedsearch.py
1663
from django_filters.rest_framework import DjangoFilterBackend from rest_framework.permissions import IsAuthenticated from rest_framework.serializers import PrimaryKeyRelatedField from search.models import SavedSearch from contentcuration.models import User from contentcuration.viewsets.base import BulkListSerializer f...
mit
bit-foundation/bit-framework
src/Universal/Bit.Universal.OData/Extensions/IFluentClientExtensions.cs
5855
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading; using System.Threading.Tasks; namespace Simple.OData.Client { public static class IFluentClientExtensions { public static Task<T> CreateEntryAsync<T>(this IBoundClient<T> client, bool resultRequired,...
mit
chris-dickson/neighbourhoods
server/modules/rest/neighbourhoods.js
3052
var connectionPool = require('../db/connection'); var UUID = require('../util/uuid'); var Process = require('../util/process_each'); var TABLE_NAME = 'neighbourhoods'; var getAll = function(success,error) { connectionPool.open(function(conn) { function onError(err) { connectionPool.close(conn); if (error) e...
mit
sansicoin/sansicoin
share/qt/clean_mac_info_plist.py
899
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Sansicoin-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./"; i...
mit
rstancioiu/uva-online-judge
Volume001/151 - Power Crisis/151.cpp
1097
//Author Stancioiu Nicu Razvan //Problem: uva.onlinejudge.org/external/1/151.html //Description: brute force algorithm #include <iostream> #define N 128 using namespace std; // array of regions turned on or off int turn[N]; int main() { bool problem; // n the number of regions // m is the searched 'random' numbe...
mit
wpscanteam/CMSScanner
lib/cms_scanner/target/server/generic.rb
2149
# frozen_string_literal: true module CMSScanner class Target < WebSite module Server # Generic Server methods module Generic # @param [ String ] path # @param [ Hash ] params The request params # # @return [ Symbol ] The detected remote server (:Apache, :IIS, :Nginx) ...
mit
philcrissman/algae
lib/algae/quicksort.rb
837
module Algae class Quicksort attr_accessor :list, :last def initialize list @list = list.dup @last = list.size-1 end def sort(start=0,finish=last) return if start >= finish # return if only one element pivot = @list[start] lo, hi = start, finish while true ...
mit
v-yarotsky/TorrentsPub
lib/scrape/authentication_proxy.rb
451
require 'delegate' module Scrape class AuthenticationProxy < SimpleDelegator class LoginError < RuntimeError def message "Login failed. Check credentials (or maybe refreshing too often?)" end end abstract_method :login abstract_method :logout private def method_missi...
mit
gmp26/mgc
templates/test/templateSpec.js
1663
/* * sample unit testing for sample templates and implementations */ describe('mgcTemplate', function () { // declare these up here to be global to all tests var $rootScope, $compile; beforeEach(module('mgc.directives')); beforeEach(module('mgc.filters')); // inject in angular constructs. Injector knows ...
mit
mogemimi/pomdog
pomdog/gpu/gl4/format_helper.cpp
951
// Copyright mogemimi. Distributed under the MIT license. #include "pomdog/gpu/gl4/format_helper.h" #include "pomdog/basic/unreachable.h" #include "pomdog/gpu/comparison_function.h" namespace pomdog::gpu::detail::gl4 { GLenum ToComparisonFunctionGL4NonTypesafe(ComparisonFunction comparison) noexcept { switch (co...
mit
liamnoone/saves
lib/saves/cli.rb
1944
require 'thor' module Saves class CLI < Thor desc "list", "List all games being backed up" def list say("List of Games:", :bold) GameList.from_config.each do |game| puts game.name end end desc "backup", "Create a new backup" def backup(game_name = nil) game_name ? ...
mit
tsingson/learning-react-flux-es6
test/ItemToggle.react.js
677
import React , { Component } from 'react'; export var ItemToggle extends Component { constructor( props ) { super( props ); this.onClick = this.onClick.bind(this); } onClick(type) { var item; switch (type) { case 'A': item = "Item A"; break; case 'B': item = "Item...
mit
sdl/groupsharekit.net
Sdl.Community.GroupShareKit/Models/Response/TranslationMemory/ParagraphUnit.cs
1745
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sdl.Community.GroupShareKit.Models.Response.TranslationMemory { public class ParagraphUnit { /// <summary> /// Gets or sets the id /// </summary> public...
mit
mhdehghan/SamanGar
src/samanGar/normalizer/Normalizer.java
2465
package samanGar.normalizer; import samanGar.ReadData; import samanGar.sentence.Sentence; import samanGar.sentence.Word; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by dehghan on 8/24/...
mit
viennashe/viennashe-dev
viennashe/simulator_quantity.hpp
11565
#ifndef VIENNASHE_SIMULATOR_QUANTITY_HPP #define VIENNASHE_SIMULATOR_QUANTITY_HPP /* ============================================================================ Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
mit
henrikfroehling/TraktApiSharp
Source/Lib/TraktApiSharp/Objects/Post/Syncs/History/Responses/Json/Reader/SyncHistoryRemovePostResponseNotFoundGroupObjectJsonReader.cs
3548
namespace TraktApiSharp.Objects.Post.Syncs.History.Responses.Json.Reader { using Newtonsoft.Json; using Objects.Json; using Post.Responses.Json.Reader; using System.Threading; using System.Threading.Tasks; internal class SyncHistoryRemovePostResponseNotFoundGroupObjectJsonReader : AObjectJsonR...
mit
gively/mdex_client
lib/mdex_client/mdata/record.rb
1416
require 'mdex_client/mdata/node' module MDEXClient module MData class Record < Node class Attributes < Hash def initialize(*args) super(*args) @dimension_value_ids = {} @dimension_ids = {} end def dimension_value_id(key) @d...
mit
Kunstmaan/BootstrapCK4-Skin
plugins/div/lang/sr-latn.js
722
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'div', 'sr-latn', { IdInputLabel: 'Id', advisoryTitleInputLabel: 'Advisory naslov', cssClassInputLabel: 'Stylesheet klase', edit: 'Edit Di...
mit
ConnorWiseman/koa-hbs-renderer
lib/template-manager.js
3495
/** * @file Exports a function that creates a set of functions for managing * compiled and cached templates. */ const fs = require('fs'); const getPaths = require('./get-paths.js'); /** * Obtains the current timestamp in seconds. * @return {Number} * @private */ function timestamp() { return Math.f...
mit
opengovernment/person-widget
tests/acceptance/thanks-test.js
704
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from '../helpers/start-app'; var application; module('Acceptance: Thanks', { beforeEach: function() { application = startApp(); }, afterEach: function() { Ember.run(application, 'destroy'); } }); test('when process is f...
mit
cmkeene/Reddit-Project
Reddit_Application/app/src/main/java/com/spencerkerber/reddit_application/PostsFragment.java
4122
package com.spencerkerber.reddit_application; /** * Created by spencerkerber on 11/15/15. */ import java.util.ArrayList; import java.util.List; import android.os.Bundle; import android.os.Handler; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.vie...
mit
nuandy/othello
apps/mongo/app/controllers/Auth.java
6125
package mongo.app.controllers; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import org.apache.commons.lang3.StringUtils; import org.apache.log4j.*; import com.google.gson.Gson; import src.ma...
mit
nomcopter/generator-typescript-react
generators/app/templates/src/_index.ts
52
export const PACKAGE_NAME = '<%= kebabCaseName %>';
mit
rsanchez/Deep
tests/functional/UploadPrefRepositoryTest.php
661
<?php use rsanchez\Deep\Model\UploadPref; use rsanchez\Deep\Repository\UploadPrefRepository; class UploadPrefRepositoryTest extends PHPUnit_Framework_TestCase { public function setUp() { $this->repository = new UploadPrefRepository(new UploadPref()); } public function testFind() { ...
mit
mywei1989/blog
models/user.js
2393
var settings = require('../settings/settings.js'); var MongoClient = require('./db.js'); function User(user){ this.userName = user.userName; this.userPassword = user.userPassword; this.sessionID = user.sessionID } User.prototype.login = function(callback){ var that = this; var user = { userName:this....
mit
lucaslencinas/react-node-socketio-template
src/components/Layout/Layout.js
643
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Layout.css'; const Layout = ({ alert, children, onCloseAlert }) => ( <div className={styles.layout}> <div display-if={alert} className={styles.alert}> <div className={styles.alertMessage}> {alert.message} ...
mit
softjourn-internship/sales-if-ua
src/main/java/sales/admission/domain/Admission.java
1882
package sales.admission.domain; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import sales.users.domain.User; import javax.persistence.*; import java.util.Date; /** * Created by Myroslav on 14.08.2015...
mit
jwiesel/sfdcCommander
sfdcCommander/src/main/java/com/sforce/soap/_2006/_04/metadata/ActionOverride.java
10480
/** * ActionOverride.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.sforce.soap._2006._04.metadata; public class ActionOverride implements java.io.Serializable { private java.lang.String actionName; priv...
mit
camillescott/boink
include/goetia/hashing/canonical.hh
13385
/** * (c) Camille Scott, 2019 * File : canonical.hh * License: MIT * Author : Camille Scott <camille.scott.w@gmail.com> * Date : 08.01.2020 */ #ifndef GOETIA_CANONICAL_HH #define GOETIA_CANONICAL_HH #include <cstdint> #include <iostream> #include <limits> namespace goetia::hashing { inline constexpr bool ...
mit
efalder413/PKMNBreeder
src/AppBundle/Entity/Ability.php
2565
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * Ability * * @ORM\Table(name="ability") * @ORM\Entity(repositoryClass="AppBundle\Repository\AbilityRepository") */ class Ability { /** * @var int * * @ORM\Column(name="id",...
mit
nherzalla/ProfileX-1
src/app/app.module.ts
1577
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import {HttpModule} from '@angular/http'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MyDatePickerModule } from 'mydatepicker'; import {routing,appRoutingProviders} from './app.ro...
mit
SiiHackathon/BikeTracking
BikeTracker/Entities/User.cs
339
namespace BikeTracker.Entities { public class User : Entity { public override long Id => UserId; public long UserId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public long TeamId { get; set; } public string Image { ge...
mit
YHTechnology/ProjectManager
ProductManager/ProductManager/ViewModel/ProductManagers/LinkResponsePersonModel.cs
17013
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Net; using System.ServiceModel.DomainServices.Client; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media;...
mit
xapple/seqsearch
seqsearch/databases/pr_two.py
2945
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # import os # First party modules # from seqsearch.databases import Database from autopaths.auto_paths import AutoPaths from autopaths.file_path import FilePath # Third part...
mit
nazar/MediaCMS
app/helpers/markers_helper.rb
179
module MarkersHelper def draw_map(obj, options) width = options.delete(:width); width ||= '100%' height = options.delete(:height); height ||= '100%' end end
mit
T-Alex/Common
src/TAlex.Common/Helpers/ConvertEx.cs
1681
using System; using System.Text; namespace TAlex.Common.Helpers { /// <summary> /// Represents the extended methods for converting data types, such as bytes to string. /// </summary> public static class ConvertEx { #region Fields private const long BytesInKilobyte = 1024L; ...
mit
PPMESSAGE/ppcom-android-sdk
PPMessageSDK/sdk/src/main/java/com/ppmessage/sdk/core/model/UnackedMessagesLoader.java
10154
package com.ppmessage.sdk.core.model; import android.os.Handler; import android.os.Looper; import android.os.Message; import com.ppmessage.sdk.core.L; import com.ppmessage.sdk.core.PPMessageSDK; import com.ppmessage.sdk.core.api.OnAPIRequestCompleted; import com.ppmessage.sdk.core.bean.common.User; import org.json.J...
mit
alexjab/share-expenses
src/UserList.React.js
1039
'use strict'; var UserList = React.createClass ({ handleDeleteUser: function (key) { return this.props.handleDeleteUser (key); }, render: function () { var userContent; var that = this; if (this.props.users.length) { var userList = this.props.users.map (function (user) { return ( ...
mit
danielrohers/bory
test/support/env.js
37
process.env.NO_DEPRECATION = 'bory';
mit
NikolaiMishev/Telerik-Academy
Module-1/03.CSharp OOP/OOP Principles - Part 1/03. Animal hierarchy/ProgramMain.cs
323
 namespace _03.Animal_hierarchy { using System; using System.Collections.Generic; public class ProgramMain { public static void Main() { Frog some = new Frog("froggy", Sex.Male, 2, "Forest Green"); Console.WriteLine(some.Jump()); } } }...
mit
jarkko/raskaasti
spec/models_spec.rb
11934
require File.expand_path("model_factory", File.dirname(__FILE__)) require File.expand_path("spec_helper", File.dirname(__FILE__)) module ModelMatchers class HavePage def initialize(path) @category = path end def matches?(article) @article = article article.categories.map { |c| c.path }...
mit
andreykata/SoftUni
Programming Basics/2016 June/CSharpProgrammingBasic02SimpleCalculation/Problem14/Properties/AssemblyInfo.cs
1394
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...
mit
peferron/algo
bloom_filter/javascript/hash.js
507
export default function hash(factor, modulo, str) { const h = rawHash(factor, str) % modulo; if (h < 0) { return h + modulo; } return h; } function rawHash(factor, str) { let h = 0; for (let i = 0; i < str.length; i += 1) { h = factor * h + str.charCodeAt(i); // Bitwise...
mit
jehovahsays/hiddenwiki
examples/chat/node_modules/php-embed/src/node_php_phpobject_class.cc
40439
// A PHP object, wrapped for access by JavaScript (node/v8). // Inspired by v8js_object_export in the v8js PHP extension. // Copyright (c) 2015 C. Scott Ananian <cscott@cscott.net> #include "src/node_php_phpobject_class.h" #include <cassert> #define __STDC_FORMAT_MACROS // Sometimes necessary to get PRIu32 #include ...
mit
sporchia/alttp_vt_randomizer
resources/lang/en/watch.php
1937
<?php return [ 'header' => 'Join the Adventure!', 'cards' => [ 'twitch' => [ 'header' => 'Twitch', 'content' => [ 'With so much going on, there’s always a race to watch! Follow these networks and never miss a match!', ], 'button' => 'ALttP:...
mit
sitespeedio/sitespeed.io
lib/plugins/gcs/index.js
3962
'use strict'; const fs = require('fs-extra'); const path = require('path'); const readdir = require('recursive-readdir'); // Documentation of @google-cloud/storage: https://cloud.google.com/nodejs/docs/reference/storage/2.3.x/Bucket#upload const { Storage } = require('@google-cloud/storage'); const log = require('int...
mit
XDrake99/PICalculator
core/src/main/java/it/cavallium/warppi/gui/expression/blocks/Block.java
2733
package it.cavallium.warppi.gui.expression.blocks; import it.cavallium.warppi.device.display.DisplayOutputDevice; import it.cavallium.warppi.gui.GraphicalElement; import it.cavallium.warppi.gui.expression.Caret; import it.cavallium.warppi.gui.expression.ExtraMenu; import it.cavallium.warppi.gui.expression.InputC...
mit
Croissong/nussnougat
web/react/src/routes/index.js
970
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files ...
mit
davellx/PrintJob
dependencies/android/src/org/haxe/extension/PrintJob.java
3565
package org.haxe.extension; import android.app.Activity; import android.content.res.AssetManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.support.v4.print.PrintHelper; import android.graphics.BitmapFac...
mit
deanshackley/CondenserDotNet
src/CondenserDotNet.Configuration/Consul/IConfigSource.cs
519
using System.Collections.Generic; using System.Threading.Tasks; namespace CondenserDotNet.Configuration.Consul { public interface IConfigSource { object CreateWatchState(); string FormValidKey(string keyPath); Task<(bool success, Dictionary<string, string> dictionary)> GetKeysAsync(stri...
mit
nabab/bbn
src/bbn/User/Manager.php
30464
<?php /** * @package user */ namespace bbn\User; use bbn; use bbn\X; use stdClass; /** * A class for managing users * * * @author Thomas Nabet <thomas.nabet@gmail.com> * @copyright BBN Solutions * @since Apr 4, 2011, 23:23:55 +0000 * @category Authentication * @license http://www.opensource.org/licenses/...
mit
alexbaroni/genem
spec/spec_helper.rb
173
$: << File.join(File.dirname(__FILE__), "/../lib" ) require 'rubygems' require 'spec' require 'fileutils' require 'win32console' if RUBY_PLATFORM =~ /win32/ require 'genem'
mit
mitschabaude/nanopores
nanopores/scripts/test_survival.py
3783
from nanopores import * from nanopores.physics.exittime import ExitTimeProblem from dolfin import * import math # @Benjamin, Gregor TODO: # -) check permittivity and surface charge of ahem # -) what biased voltage to use? geo_params = dict( l3 = 30., l4 = 30., R = 40., x0 = [5., 0., 10.], # |x0| > 2.2...
mit
katzenpapst/amunra
src/main/java/de/katzenpapst/amunra/mob/model/ModelRobotVillager.java
7808
package de.katzenpapst.amunra.mob.model; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.model.ModelVillager; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelRobotVillager extends ModelVillager { ModelRenderer rightArm; ModelRenderer lef...
mit
dg9ngf/MultiSelectTreeView
MultiSelectTreeView.Test/Model/Element.cs
2076
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Automation; using MultiSelectTreeView.Test.Model.Helper; namespace MultiSelectTreeView.Test.Model { class Element { public Element(AutomationElement automationElement) { ...
mit
AliBrahem/AfrikIsol
src/BackOffice/AdminBundle/Controller/UserController.php
9038
<?php namespace BackOffice\AdminBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use BackOffice\AdminBundle\Form\UserType; use FOS\UserBundle\FOSUserEvents; use FOS\UserBundle\FOSUserBundle; use FOS\UserBundle\Event\FormEvent; use FOS\UserBundle\Event\FilterUserResponseEvent; use...
mit
schmurfy/get_them_all
lib/get_them_all/site_downloader.rb
13044
require 'fiber' require 'addressable/uri' require 'active_support/hash_with_indifferent_access' require 'em-http-request' require 'em-priority-queue' module GetThemAll ## # The main class, all your crawlers will derive from this class # see examples/standalone.rb file for an example. # class SiteDownl...
mit
gubaojian/trylearn
WebLayoutCore/Source/WebCore/platform/network/cf/CredentialStorageCFNet.cpp
2312
/* * Copyright (C) 2009 Apple Inc. 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. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
mit
y-takano/Foca
main/java/jp/gr/java_conf/ke/foca/LoggerThreadService.java
3660
package jp.gr.java_conf.ke.foca; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import jp.gr.java_conf.ke.foca.annotation.Logger; import jp.gr.java_conf.ke.util.Refl...
mit
cclaiborne/qasite
config/environment.rb
152
# Load the Rails application. require File.expand_path('../application', __FILE__) # Initialize the Rails application. Qasite::Application.initialize!
mit
clux/ffa-tb
test/readme.test.js
3043
var FfaTb = require('..') , FFA = require('ffa') , fId = (r, m) => new FFA.Id(r, m) , TB = require('tiebreaker') , tbId = (s) => new TB.Id(s, 1, 1, true) , test = require('bandage'); test('readme', function *(t) { var trn = new FfaTb(16, { sizes: [4, 4, 4], advancers: [2, 2], limit: 2 }); // round 1 - q...
mit
Berna93/SiteRubi
pages/cursoParticipantes.php
6348
<?php include('session.php'); ?> <?php require_once 'config.php'; ?> <?php require_once DBAPI; ?> <?php require_once('cursos/functions.php'); searchCourseStudents($curso['id']); editParticipant(); ?> <?php include(HEADER_TEMPLATE); ?> <?php $db = open_database(); ?> <?php if ($db) : ?> <div id="page-wrapper"> ...
mit
legendblade/CraftingHarmonics
src/main/java/org/winterblade/minecraft/harmony/mobs/sheds/matchers/temperature/MinTemperatureMatcher.java
1521
package org.winterblade.minecraft.harmony.mobs.sheds.matchers.temperature; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import org.winterblade.minecraft.harmony.api.BaseMatchResult; import org.winterblade.minecraft.harmony.api.Component; import org.winterblade.minecraft.harmony.ap...
mit
Xaiid/ng-bootstrap
accordion/accordion.module.ngfactory.js
907
/** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ import * as i0 from "@angular/core"; import * as i1 from "./accordion.module"; import * as i2 from "@angular/common...
mit
theofidry/alice
tests/Generator/Populator/SimpleHydratorTest.php
9940
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Nelmio\Alice\Generator\Hydrator; use Nelmio\Alice\Definition\F...
mit
slightly-askew/portfolio-2017
src/elements/bubble/config.js
1410
//@flow /*------------------------------------*\ DEFAULT CONFIG Anything you change here will affect all bubbles globally. If you plan to use different bubble types accross your aplication, it may be prudent to pass a 'bubbleConfig' prop object; declaring settings above on a per-component basis, which ...
mit
Copyleaks/Java-Plagiarism-Checker
src/copyleaks/sdk/api/UserAuthentication.java
6016
/******************************************************************************** The MIT License(MIT) Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
mit
lamk/LK-Flat-UI-Kit
js/jquery.hoverdir.js
5314
/** * jquery.hoverdir.js v1.1.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2012, Codrops * http://www.codrops.com */ ;( function( $, window, undefined ) { 'use strict'; $.HoverDir = function( options, element ) { th...
mit
SullyJHF/learn-to-code
done/pong/src/pong/Paddle.java
1326
package pong; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.Shape; import com.sun.glass.events.KeyEvent; public class Paddle { private float x, y; private float w; private float h; private Color color; private float speed; private boolean left; public ...
mit