repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
yarKH/XChange
xchange-bitbay/src/main/java/com/xeiam/xchange/bitbay/BitbayAuthentiacated.java
2853
package com.xeiam.xchange.bitbay; import com.xeiam.xchange.bitbay.dto.BitbayBaseResponse; import com.xeiam.xchange.bitbay.dto.account.BitbayAccount; import com.xeiam.xchange.bitbay.dto.trade.BitbayOrder; import com.xeiam.xchange.bitbay.dto.trade.BitbayTradeResponse; import com.xeiam.xchange.bitbay.dto.trade.BitbayTran...
mit
6IRCNet/web6irc
common/src/util.js
640
/** @struct */ W6I.Util = {} W6I.Util.objeach = function(/** Object */ obj, /** function(*, (number|string)=) */ fun) { for (i in obj) { if (obj.hasOwnProperty(i)) { fun(obj[i], i); } } }; W6I.Util.extend = function(/** Object */ obj, /** Object */ withwhat) { W6I.Util.objeach(withwhat, function(v...
mit
zzragida/NodeExamples
socket/client.js
412
var net = require('net'); var HOST = '127.0.0.1'; var PORT = 7000; var client = new net.Socket(); client.connect(PORT, HOST, function() { var i; console.log('CONNECT TO: ' + HOST + ':' + PORT); for (i = 0; i < 1000; i++) { client.write(i + ':i am here'); } }); client.on('data', function(data) { cons...
mit
jnguyen095/real-estate
application/views/Notfound_view.php
2609
<!DOCTYPE html> <html lang = "en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="audience" content="general" /> <meta name="resource-type" content="document" /> <meta name="abstract" content="Thông tin nhà đất Việt Nam" /> <meta name="classification" content="Bất đ...
mit
shiftkey/desktop
app/src/lib/wrap-rich-text-commit-message.ts
4327
import { Tokenizer, TokenType, TokenResult, PlainText, HyperlinkMatch, } from './text-token-parser' import { assertNever } from './fatal-error' export const MaxSummaryLength = 72 export const IdealSummaryLength = 50 /** * A method used to wrap long commit summaries and put any overflow * into the commit b...
mit
backus/mutest
meta/op_assgn.rb
859
Mutest::Meta::Example.add :op_asgn do source '@a.b += 1' singleton_mutations mutation 'a.b += 1' mutation '@a.b += -1' mutation '@a.b += 2' mutation '@a.b += 0' mutation '@a.b += nil' mutation '@a.b += self' mutation 'self.b += 1' mutation '@a.b + 1' mutation '@a.b = 1' # TODO: fix invalid AST ...
mit
dropbox/dropbox-sdk-dotnet
dropbox-sdk-dotnet/Dropbox.Api/DropboxClientBase.cs
1786
//----------------------------------------------------------------------------- // <copyright file="DropboxClientBase.cs" company="Dropbox Inc"> // Copyright (c) Dropbox Inc. All rights reserved. // </copyright> //----------------------------------------------------------------------------- namespace Dropbox.Api { ...
mit
bradleygore/nativescript-textinputlayout
src/textInputLayout.common.js
897
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var color_1 = require("tns-core-modules/color"); exports.Color = color_1.Color; var view_1 = require("tns-core-modules/ui/core/view"); var properties_1 = require("tns-core-modules/ui/core/properties"); exports.Property = properties_1.Property;...
mit
CNinnovation/powercampwindows10
clientandserver/BooksSample/WPFBooksClient/WPFServices/WPFMessageDialog.cs
422
using BooksLib.Services; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WPFBooksClient.WPFServices { public class WPFMessageDialog : IMessageService { public Task ShowMessageAsync(string message) ...
mit
pombredanne/metamorphosys-desktop
metamorphosys/META/src/CyPhyCADAnalysis/MgaGateway.cs
5492
/* Copyright (C) 2013-2015 MetaMorph Software, Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this data, including any software or models in source or binary form, as well as any drawings, specifications, and documentation (collectively "the Data"), to deal in the Data witho...
mit
jazzay/Perspex
src/Avalonia.Visuals/Rendering/SceneGraph/RectangleNode.cs
4082
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Collections.Generic; using Avalonia.Media; using Avalonia.Platform; using Avalonia.VisualTree; namespace Avalonia.Rendering.S...
mit
Akagi201/learning-rust
trait/animal-interface/src/main.rs
1359
trait Animal { // Static method signature; 'Self' refers to the implementor type. fn new(name: &'static str) -> Self; // Instance method signatures; these will return a string. fn name(&self) -> &'static str; fn noise(&self) -> &'static str; // Traits can provide default method definitions. ...
mit
winters-song/photoGallery
public/js/views/preview/groupMenu.js
2144
define([ 'jquery', 'underscore', 'backbone', 'collections/groupItems', 'views/preview/groupItem', 'common', 'transit', 'queryString' ], function($, _, Backbone, groupItems, groupItem, Common){ var GroupMenuView = Backbone.View.extend({ el: '#thumb-list', events: { 'click .close-btn' ...
mit
eventEmitter/related-geo
lib/RelatedGeo.js
10466
!function() { 'use strict'; var Class = require('ee-class') , log = require('ee-log') , type = require('ee-types') , ORMExtension = require('related-extension') , distanceSelector = require('./DistanceSelector')...
mit
todorm85/TelerikAcademy
Courses/Programming/Object-Orineted Programming/06.CTS/01. Student class/TEST.cs
2355
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Student_class { class Program { static void Main(string[] args) { bool result = false; int testNum = 0; Student st1 = new Student("P...
mit
byronka/xenos
lib/lib_src/httpcomponents_source/httpcomponents-client-4.4/httpclient/src/main/java/org/apache/http/cookie/CookiePriorityComparator.java
2667
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
mit
DragomirPetrov/TelerikAcademy
C #/C# Part 1/02.Data-Types-and-Variables/12.PrintTheASCIITable/Properties/AssemblyInfo.cs
1418
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("12...
mit
lozjackson/ember-ui-components
addon/components/uic-menu-container.js
1604
/** @module ember-ui-components */ import Component from '@ember/component'; import layout from '../templates/components/uic-menu-container'; import getDimensions from 'ember-ui-components/utils/get-dimensions'; import calculatePosition from 'ember-ui-components/utils/calculate-position'; /** @class MenuContainerC...
mit
steveoro/goggles_core
spec/factories/data_import_season.rb
632
# frozen_string_literal: true require 'date' require 'ffaker' FactoryBot.define do factory :data_import_season do data_import_session conflicting_id { nil } import_text { FFaker::Lorem.paragraph[0..200] } random_season # Trait defined in factories/seasons.rb # Make the...
mit
goldenloaf/goldenloaf-master
src/version.cpp
2633
// Copyright (c) 2012 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 <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitco...
mit
anikdas/generator-xprscouch
model/index.js
1310
'use strict'; var fs = require('fs-extra'); var generators = require('yeoman-generator'); module.exports = generators.Base.extend({ constructor: function () { generators.Base.apply(this, arguments); // This makes `appname` a required argument. try { this.argument('modelName', ...
mit
jedld/pretentious
spec/generated/fibonacci_spec.rb
964
# This file was automatically generated by the pretentious gem require 'spec_helper' RSpec.describe Fibonacci do context 'Scenario 1' do before do @fixture = Fibonacci.new end it 'should pass current expectations' do n = 1 n_1 = 2 n_2 = 3 n_3 = 4 n_4 = 5 # Fibon...
mit
lordmos/blink
Source/core/svg/SVGAElement.cpp
8163
/* * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> * Copyright (C) 2007 Eric Seidel <eric@webkit.org> * Copyright (C) 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify i...
mit
reidlai/slush-fullstack-framework
templates/redux-react/src/index.js
921
import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import {createStore, applyMiddleware} from 'redux' import {Provider} from 'react-redux' import thunk from 'redux-thunk' import reduxLogger from 'redux-logger' import MainComponent from './react-component...
mit
andela-ieyo/docify
client/utils/roles.js
262
export const Roles = { Writer : 1, Editor: 2, Admin: 3 }; export const chooseTitle = (id) => { let title; if (id === 3) { title = 'Admin'; return title; } if (id === 2) { title = 'Editor'; return title; } return 'Writer'; };
mit
deepak1556/brightray
browser/browser_client.cc
3155
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. #include "browser/browser_client.h" #include "browser/browser_context.h" #include "browser/browser_main_parts.h" #include "browser/devtools_...
mit
plato721/lights-out
lib/hint.js
682
var move = require('./next-move'); function Hint(game) { this.game = game; this.hintLit = false; this.hintLight; } Hint.prototype.showHint = function(board) { var nextMove = move.forBoard(this.game.board) this.game.score.cheat(); if(this.game.gameIsLost()) { this.game.processLoss(); return; } ...
mit
mrbase/Smesg
tests/bootstrap.php
312
<?php /** * This file is part of the Smesg package. * * (c) Ulrik Nielsen <un@mrbase.dk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once __DIR__.'/Smesg/TestCase.php'; require_once __DIR__.'/autoloader.php';
mit
Anastaszor/Cachalot
interfaces/ITranslator.php
164
<?php /** * ITranslator interface file. * * @author Anastaszor */ interface ITranslator { public function translate($message, $language); }
mit
LePhil/DotNetMiniProj
AutoReservation.Ui/Factory/LocalDataAccessServiceFactory.cs
331
using AutoReservation.Common.Interfaces; using AutoReservation.Service.Wcf; namespace AutoReservation.Ui.Factory { public class LocalDataAccessServiceFactory: IServiceFactory { public IAutoReservationService GetService() { return new AutoReservationService(); } ...
mit
kogceweb/knowledgeduty
src/main/java/com/knowladgeduty/service/TaxExceptionsService.java
779
package com.knowladgeduty.service; import java.util.Date; import java.util.List; import com.knowladgeduty.model.TaxExceptions; public interface TaxExceptionsService extends AbstractService<TaxExceptions, Long> { TaxExceptions findByCode(String code); void deleteAllTaxExceptions(List<TaxExceptions> taxes); Lis...
mit
lukasgeiter/laravel-framework
tests/Http/HttpRequestTest.php
14960
<?php use Mockery as m; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Request as SymfonyRequest; class HttpRequestTest extends PHPUnit_Framework_TestCase { public function tearDown() { m::close(); } public function testInstanceMethod() { $request = Request::create('', 'GET'); $this->...
mit
nwin/chatIRC
src/con/net.rs
3098
use std::io::net::ip::{SocketAddr, Ipv4Addr, Ipv6Addr}; use libc::{size_t, malloc, sockaddr, sockaddr_in, sockaddr_in6, in_addr, in6_addr, c_int, c_char, socklen_t, AF_INET, AF_INET6}; use std::mem::{size_of, transmute}; use std::string; /* const char * inet_ntop(int af, const void * restrict src, char * restric...
mit
TheProjecter/tgb-box2d-integration
Cpp/Box2D/Joints/Box2dJointRef.cc
12478
//============================================================================= // Box2dJointRef.cc //============================================================================= /* TGB-Box2D-Integration (http://code.google.com/p/tgb-box2d-integration/) Copyright (c) 2009 Michael Woerister Permission is hereby...
mit
jeancsil/SkyscannerVigilantBundle
JeancsilSkyscannerVigilantBundle.php
161
<?php namespace Jeancsil\Skyscanner\VigilantBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class JeancsilSkyscannerVigilantBundle extends Bundle { }
mit
qqiangwu/mstd
mstd/algorithm/unique.hpp
1766
#ifndef MSTD_ALGORITHM_UNIQUE_HPP_ #define MSTD_ALGORITHM_UNIQUE_HPP_ #include <mstd/iterator/concept.hpp> #include <mstd/algorithm/adjacent_find.hpp> namespace mstd { template <class Iter> Require<ForwardIter<Iter>(), Iter> unique(Iter first, Iter last) { auto iter = mstd::adjacent_find(f...
mit
itdoors/sd
src/Lists/ProjectBundle/Entity/MessageCurrent.php
147
<?php namespace Lists\ProjectBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * MessageCurrent */ class MessageCurrent extends Message { }
mit
kamoh/outfittracker
app/models/recommendation.rb
65
class Recommendation < ActiveRecord::Base belongs_to :user end
mit
wewea/CodeVivid
webpack.dev.config.js
844
var path = require('path'); module.exports = { // entry: ['webpack-dev-server/client?http://localhost:8080', // 'webpack/hot/dev-server', // path.resolve(__dirname, './public/js/browser.js')], // dev static page entry: ['webpack/hot/dev-server', path.resolve(__dirname, './client.js')], output: { path...
mit
PJB3005/MoMMI
MoMMI/Modules/mirror.py
4370
import logging import asyncio import aiohttp import heapq import pytz from datetime import datetime, timedelta from typing import Any, Dict, Match, List, Tuple, Set, cast from MoMMI import MChannel, comm_event, SnowflakeID, add_reaction, master, always_command, command, delete_command, reaction_command from MoMMI.util ...
mit
tommo/gii
support/waf/waflib/Tools/nasm.py
546
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2008-2010 (ita) """ Nasm tool (asm processing) """ import waflib.Tools.asm # leave this from waflib.TaskGen import feature @feature('asm') def apply_nasm_vars(self): """provided for compatibility""" self.env.append_value('ASFLAGS', self.to_list(getattr(self, '...
mit
kybarg/material-ui
packages/material-ui-icons/src/CropFreeSharp.js
222
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 3v6h2V5h4V3H3zm2 12H3v6h6v-2H5v-4zm14 4h-4v2h6v-6h-2v4zm2-16h-6v2h4v4h2V3z" /> , 'CropFreeSharp');
mit
cowthan/Ayo2022
ProjWechat/easeuilibrary/src/com/fanxin/easeui/model/EaseNotifier.java
14466
/************************************************************ * * Hyphenate CONFIDENTIAL * __________________ * Copyright (C) 2016 Hyphenate Inc. All rights reserved. * * NOTICE: All information contained herein is, and remains * the property of Hyphenate Inc. * Dissemination of this information or reprod...
mit
mathiasbynens/unicode-data
4.0.1/blocks/Deseret-code-points.js
866
// All code points in the Deseret block as per Unicode v4.0.1: [ 0x10400, 0x10401, 0x10402, 0x10403, 0x10404, 0x10405, 0x10406, 0x10407, 0x10408, 0x10409, 0x1040A, 0x1040B, 0x1040C, 0x1040D, 0x1040E, 0x1040F, 0x10410, 0x10411, 0x10412, 0x10413, 0x10414, 0x10415, 0x10416, 0x10417, 0x10418, 0x10...
mit
jphacks/KS_1602
db/migrate/20161029075042_rename_wants_column.rb
169
class RenameWantsColumn < ActiveRecord::Migration[5.0] def change rename_column :wants, :WEFL, :LATITUDE rename_column :wants, :MERIDIAN, :LONGITUDE end end
mit
kaaku/screeps
src/role.base.js
301
function BaseRole() { } BaseRole.prototype.run = function (creep) { }; BaseRole.prototype.getBody = function (energy) { return []; }; BaseRole.prototype.getMinCost = function () { return null; }; BaseRole.prototype.getMaxCost = function () { return null; }; module.exports = BaseRole;
mit
moperacz/sisyphus-rails
lib/sisyphus-rails.rb
118
require "sisyphus-rails/version" module Sisyphus module Rails class Engine < ::Rails::Engine end end end
mit
Teleopti/Stardust
Manager/ManagerTest/ManagerControllerValidationTest.cs
6427
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Threading; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Results; using ManagerTest.Attributes; using NUnit.Framework; using SharpTestsEx; using Stardust.Manager; using Stardust.Manager.Interfaces; ...
mit
JhulFramework/PHPServer4ODK
required/odk/0.1/framework/jhul/Jhul/Components/Form/_Class.php
6515
<?php namespace Jhul\Components\Form; /* @Author : Manish Dhruw < 1D3N717Y12@gmail.com > +======================================================================================================================= | @Updated: | -Saturday 03 January 2015 07:01:22 PM IST | -Saturday 10 January 2015 03:54:05 PM IST | -Tuesda...
mit
kenshinthebattosai/LinqAn.Google
src/LinqAn.Google/Dimensions/UserType.cs
521
using System.ComponentModel; namespace LinqAn.Google.Dimensions { /// <summary> /// A boolean indicating if a user is new or returning. Possible values: New Visitor, Returning Visitor. /// </summary> [Description("A boolean indicating if a user is new or returning. Possible values: New Visitor, Returning Visitor....
mit
bradhowes/sidecar
GUI/BScope/ScaleWidget.cc
12979
#include <algorithm> #include <cmath> #include <functional> #include "QtGui/QGuiApplication" #include "QtGui/QPainter" #include "GUI/LogUtils.h" #include "GUI/Utils.h" #include "Utils/Utils.h" #include "ScaleWidget.h" using namespace SideCar::GUI::BScope; Logger::Log& ScaleWidget::Log() { static Logger::Log& l...
mit
kaplanke/ades
AdesUnrealController/Properties/Resources.Designer.cs
2866
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated>...
mit
dewanee-es/tipi
tmpold/cms/examples/html/js/controller/app-controller.js
11026
var app = angular.module('mdage.controller',[]); app.controller('ConsultaDepuracionController', function($scope,$log, $http,consultaDepuracionService) { $scope.mostrarTabla=false; $scope.getMunicipiosPorcentajes = function(cpro,cmun) { var promise=consultaDepuracionService.obtenerMunicipiosTo...
mit
MetaConc/SOMns
src/som/primitives/arithmetic/DividePrim.java
1370
package som.primitives.arithmetic; import java.math.BigInteger; import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.dsl.GenerateNodeFactory; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.source.SourceSection; import som.primitives.Primitiv...
mit
sinch/csharp-nps-sms-delighted
NPSSMSVoting/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs
543
using System.Collections.Generic; using System.Collections.ObjectModel; namespace NPSSMSVoting.Areas.HelpPage.ModelDescriptions { public class ParameterDescription { public ParameterDescription() { Annotations = new Collection<ParameterAnnotation>(); } public Collec...
mit
foodoasisla/foodoasis.la
assets/js/location-list-nav.js
2758
"use strict"; var PAGE_PARAMETERS = void 0; var getParameterByName = void 0; var updateLink = void 0; (function () { // http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript#answer-901144 getParameterByName = function getParameterByName(name, url) { if (!url) url = window.loca...
mit
ravenshooter/BA_Analysis
Preprocess.py
5604
import numpy import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import scipy import mdp import csv from thread import start_new_thread import DataSet from DataAnalysis import plot from Main import getProjectPath def readFileToNumpy(fileName): reader=csv.reader(open(fileName,"rb"),delimiter=...
mit
MarimerLLC/Bxf
Bxf.Shared/PortedAttributes.cs
1124
//----------------------------------------------------------------------- // <copyright file="PortedAttributes.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: http://www.lhotka.net/cslanet/ // </copyright> // <summary>Placeholder for missing Browsable attribute from fu...
mit
Bandydan/pdr
application/controllers/Start.php
536
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Start extends CI_Controller { public function index() { $this->load->library('twig'); $id = rand(1, 9); $data['title'] = 'Garage - Удаление вмятин без покраски'; $this->load->model('examples_model'); ...
mit
sammarks/ablecore
lib/AbleCore/Forms/FormBase.php
235
<?php namespace AbleCore\Forms; abstract class FormBase { public abstract function build($form, &$form_state); public function submit($form, &$form_state) { return; } public function validate($form, &$form_state) { return; } }
mit
yinggaozhen/zaor-cache-orm
src/orm/sql/Select.php
979
<?php namespace zaor\orm\sql; /** * TODO 完善注释 */ class Select extends SQL { /** * @var string */ private $selectSql = 'SELECT * FROM <TABLE> <WHERE><ORDER><LIMIT><OFFSET>'; public function toString() { $sql = str_replace( ['<TABLE>', '<WHERE>', '<ORDER>', '<LIMIT>', '<...
mit
ccxt/ccxt
python/ccxt/binanceus.py
1827
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.binance import binance class binanceus(binance): def describe(self): return self.deep_extend(super(binanceus, self...
mit
liip/LiipUrlAutoConverterBundle
Extension/UrlAutoConverterTwigExtension.php
2804
<?php namespace Liip\UrlAutoConverterBundle\Extension; class UrlAutoConverterTwigExtension extends \Twig_Extension { protected $linkClass; protected $target; protected $debugMode; protected $debugColor = '#00ff00'; // @codeCoverageIgnoreStart public function getName() { return 'l...
mit
BreixoAM/cordova-plugin-nativebundle
www/Frame.js
1471
var argscheck = require('cordova/argscheck'), channel = require('cordova/channel'), utils = require('cordova/utils'), exec = require('cordova/exec'), cordova = require('cordova'); function Frame() { }; Frame.prototype.getHeader = function() { return this.header; }; Frame.prototype.getSlider = functi...
mit
stewartwinter/bggpersonal
BGGPersonal/src/ca/winterfamily/bggpersonal/BGGActivity.java
226
package ca.winterfamily.bggpersonal; import android.support.v4.app.Fragment; public class BGGActivity extends SingleFragmentActivity { @Override protected Fragment createFragment() { return new GameFragment(); } }
mit
scirate/scirate
app/helpers/application_helper.rb
1598
require 'jwt' require 'net/http' require 'json' module ApplicationHelper def status_warning raw "<span class=\"warning\">#{current_user.account_status}:</span>" end def timeago(dt) dt = Time.parse(dt) if dt.is_a? String raw "<abbr class=\"timeago\" title=\"#{dt.iso8601}\">#{dt.strftime("%b %d %Y %R ...
mit
coinkeeper/2015-06-22_19-14_wildbeastbitcoin
src/qt/locale/bitcoin_pt_PT.ts
119692
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About WildBeastBitcoin</source> <translation>Sobre WildBeastBitcoin</tr...
mit
CanyonCounty/LogRotater
LogRotater/PartialClass/Program.OldFiles.cs
958
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace LogRotater { internal partial class Program { private static void HandleOldFiles(string fileMask) { if (DeleteFiles == true) { if (LogDirectoryExists) ...
mit
nagoring/jp-address
src/Nago/JpAddress/StreetData/40/40349.php
478
<?php return ['403490005' => '上大隈','403490010' => '仲原','403490002' => '内橋','403490012' => '原町','403490004' => '大隈','403490009' => '戸原','403490018' => '戸原東','403490013' => '柚須','403490003' => '江辻','403490015' => '甲仲原','403490011' => '花ヶ浦','403490014' => '若宮','403490007' => '酒殿','403490008' => '長者原','403490017' => '長者原東'...
mit
keetaek/butler
api/models/guest.js
1846
const moment = require('moment'); module.exports = function(sequelize, DataTypes) { const Guest = sequelize.define('Guest', { first_name: DataTypes.STRING, last_name: DataTypes.STRING, nickname: DataTypes.STRING, birthdate: { type: DataTypes.DATEONLY, get: function() { if (moment(t...
mit
99xt/serverless-react-boilerplate
web/src/components/todo/todo-list.js
912
import _ from 'lodash'; import React from 'react'; import TodoListHeader from './todo-list-header'; import TodoListItem from './todo-list-item'; export default class TodoList extends React.Component { renderItems(){ const props = _.omit(this.props, 'todos'); return _.map(this.props.todos, (todo, in...
mit
joemsak/bowling
lib/bowling/players.rb
369
require "bowling/player" module Bowling class Players include Enumerable def initialize(names) @players ||= names.collect do |name| Player.new(name) end end def each(&block) @players.each(&block) end def method_missing(method_name, *args, &block) @players.se...
mit
tiendat3535/easy-study-course
easy-sc-frontend/src/app/portal/portal.module.ts
1330
import { RouterModule, Routes } from '@angular/router'; import { AuthenticatedHomeComponent } from './component/authenticated-home.component'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LoginComponent } from './component/login.component'; import { UnauthenticatedH...
mit
camsys/transam_transit
app/models/infrastructure_foundation.rb
164
class InfrastructureFoundation < ApplicationRecord # All types that are available scope :active, -> { where(:active => true) } def to_s name end end
mit
PReP-Team/prep-prototype
app/router.js
921
import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { this.route('home', {path: '/'}); this.route('data'); this.route('dashboards', function () { // this.route('dashboard',{ path: '/:dashboard_i...
mit
BlueMetal/VirtualSales
VirtualSales.Core/ViewModels/Tools/BasicInformationToolViewModel.cs
2191
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VirtualSales.Core.AppServices; using VirtualSales.Core.Models; namespace VirtualSales.Core.ViewModels.Tools { public class BasicInformationToolViewModel : ToolViewModel { private r...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.18.0/event-tap/event-tap-debug.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:fd4cdfdc870da0fcef4f8ecd0859028647b39012a6349cf7e0c42c64f6aa9e01 size 10175
mit
gotryiton/gotron
example_structure/app/controllers/HomeController.php
353
<?php namespace TestApp; class HomeController extends ApplicationController { public function index() { $data = array("name" => "name"); $this->render($data, array('view' => 'index')); } public function test() { $data = array("name" => "name"); $this->render($data, array(...
mit
recsm/SQP
sqp/models.py
84158
#!/usr/bin/python # -*- coding: utf-8 -*- import copy from datetime import datetime from sqp.views_ui_utils import get_branch, get_label from django.db import models from django.contrib.auth.models import User from django.contrib import admin from django.core import serializers from django.core.cache import cache f...
mit
bobcassels/pencil-coffee-script
lib/coffee-script/coffee-script.js
11637
// Generated by IcedCoffeeScript 1.8.0-c (function() { var Lexer, SourceMap, compile, ext, formatSourcePosition, fs, getSourceMap, helpers, iced_runtime, iced_transform, lexer, parser, path, sourceMaps, vm, withPrettyErrors, _base, _i, _len, _ref, __hasProp = {}.hasOwnProperty, __indexOf = [].indexOf || funct...
mit
StoyanVitanov/SoftwareUniversity
Programming Basics/Programming Basics - Exams/RepairingTiles/RepairingTiles/Properties/AssemblyInfo.cs
1404
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("Re...
mit
annaxli/UdacityCS101
Lesson3/webcrawlerFollowLinks.py
528
def get_all_links(page): links = [] while True: url, endpos = get_next_target(page) if url: links.append(url) page = page[endpos:] else: break return links def get_next_target(webpage): start_link = webpage.find('<a href=') if start_...
mit
ticaje/pachanga
src/Pachanga/CodificadoresBundle/Entity/Deporte.php
1849
<?php namespace Pachanga\CodificadoresBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Deporte * * @ORM\Table() * @ORM\Entity(repositoryClass="Pachanga\CodificadoresBundle\Entity\DeporteRepository") */ class Deporte { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id ...
mit
DamonYoung42/ChildCare
ChildCare/TwilioSMS.cs
1366
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Twilio; namespace ChildCare { public class TwilioSMS { public void SendSMS(string messageText, string phoneNumber) { //TEST CREDENTIALS //string accountSid = "AC2bb...
mit
longcao/requests
src/test/scala/org/requests/DigestAuthSpec.scala
1696
package org.requests import org.scalatest.DoNotDiscover //import scala.concurrent.ExecutionContext.Implicits.global @DoNotDiscover class DigestAuthSpec extends RequestsSpec { private val digestAuthUrl = "http://httpbin.org/digest-auth/auth/user/passwd" behavior of s"""get("$digestAuthUrl")""" /* it should "...
mit
minhquan4080/project1
application/modules/auth/views/report1.php
2112
<div class="container-fluid"> <!-- Main component for a primary marketing message or call to action --> <div class="jumbotron"> <h3><?php echo $this->lang->line('report_free') ; ?></h3> <?php if($this->session->userdata('login') !== null) { ?> <button id="...
mit
dotnet/roslyn-analyzers
src/PerformanceSensitiveAnalyzers/Core/PerformanceSensitiveAnalyzersResources.cs
854
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System; namespace Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers { internal partial class PerformanceSensitiveAnalyzersResources { private stati...
mit
briancline/maior-domus
provider/gandi.py
756
import xmlrpclib def is_tld_live(tld): return (tld.get('phase') == 'golive') class GandiClient(xmlrpclib.ServerProxy): TestURL = 'https://rpc.ote.gandi.net/xmlrpc/' ProdURL = 'https://rpc.gandi.net/xmlrpc/' def __init__(self, api_key, test_env=False): self._api_key = api_key xmlrp...
mit
tmk-kwmr/rspec_api_doc_test
spec/writers/json_example_spec.rb
352
# -*- coding: utf-8 -*- require 'spec_helper' describe RspecApiDocumentation::Writers::JsonExample do let(:configuration) { RspecApiDocumentation::Configuration.new } describe '#filename' do specify 'Hello!/ 世界' do |example| expect(described_class.new(example, configuration).filename).to eq("hello!_世界.j...
mit
technoweenie/gemcutter
vendor/gems/cucumber-0.3.101/examples/sinatra/features/support/env.rb
716
# See http://wiki.github.com/aslakhellesoy/cucumber/sinatra # for more details about Sinatra with Cucumber gem 'rack-test', '=0.4.1' gem 'sinatra', '=0.9.4' app_file = File.join(File.dirname(__FILE__), *%w[.. .. app.rb]) require app_file # Force the application name because polyglot breaks the auto-detection logic. S...
mit
flightlog/flsserver
src/FLS.Server.Web/Controllers/MemberStatesController.cs
4157
using System; using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Description; using FLS.Data.WebApi; using FLS.Data.WebApi.Club; using FLS.Data.WebApi.Resources; using FLS.Server.Service; namespace FLS.Server.WebApi.Controllers { /// <summary> /// Api controller for memberState ent...
mit
aurelia/binding
test/setter-observer.spec.js
817
import './setup'; import {TaskQueue} from 'aurelia-task-queue'; import {SetterObserver} from '../src/property-observation'; import { executeSharedPropertyObserverTests } from './shared'; describe('SetterObserver', () => { var obj, observer; beforeAll(() => { var taskQueue = new TaskQueue(); obj = { foo: ...
mit
benjaminliu/leetcode-java
src/main/java/com/test/leetcode/hard/_239_SlidingWindowMaximum.java
2831
package com.test.leetcode.hard; import java.util.Comparator; import java.util.LinkedList; import java.util.PrimitiveIterator; import java.util.PriorityQueue; /** * Created by ben on 2017/6/5. */ public class _239_SlidingWindowMaximum { private PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/jquery.tablesorter/2.1/js/jquery.tablesorter.min.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:8359bdf909cfa6e44fa8ed354d21db37c0532e352a1ec45a0d8c0834b85b5a45 size 16792
mit
SlayerBirden/site
lib/Maketok/Authentication/Resource/Model/NewUser.php
377
<?php /** * This is a part of Maketok site package. * * @author Oleg Kulik <slayer.birden@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Maketok\Authentication\Resource\Model; class NewUser extends User { ...
mit
kootsoop/DSP.SE
R/Q54197/Q54197.py
616
#!/opt/local/bin/python2.7 import numpy as np import matplotlib.pyplot as plt from scipy.io import wavfile def group_delay(sig): b = np.fft.fft(sig) n_sig = np.multiply(sig, np.arange(len(sig))) br = np.fft.fft(n_sig) return np.divide(br, b + 0.01).real rate, data = wavfile.read('bachfugue.wav') N_...
mit
isghe/bc-java
core/src/main/java/org/bouncycastle/asn1/ASN1Sequence.java
10898
package org.bouncycastle.asn1; import java.io.IOException; import java.util.Enumeration; import java.util.Iterator; import java.util.Vector; import org.bouncycastle.util.Arrays; /** * ASN.1 <code>SEQUENCE</code> and <code>SEQUENCE OF</code> constructs. * <p> * DER form is always definite form length fields, while...
mit
howardjing/chess-calculator
src/game/index.js
11542
// @flow import React, { Component } from 'react'; import styled from 'styled-components'; import { Motion, spring } from 'react-motion'; import { range } from 'lodash'; import Chess from 'chess.js'; import { hsluvToHex, hexToHsluv } from 'hsluv'; import { flatMap } from 'lodash'; import Piece from './piece'; import Lo...
mit
cornerot/cloud-torrent
static/files/js/omni-controller.js
5452
/* globals app,window */ app.controller("OmniController", function($scope, $rootScope, storage, api, search) { $rootScope.omni = $scope; $scope.inputs = { omni: storage.tcOmni || "", provider: storage.tcProvider || "tpb" }; //edit fields $scope.edit = false; $scope.magnet = { trackers: [{ v: ""...
mit
b12consulting/forms-angular
test/midway/directiveSpec.js
4545
'use strict'; // Tests for the friends directive describe('directive with form', function () { var elm, scope, ctrl, $httpBackend, schema = { 'surname': {'path': 'surname', 'instance': 'String', 'validators': [ [null, 'Path `{PATH}` is required.', 'required'] ], 'options': {'required': true,...
mit