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
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * This is where the magic happens. The Game object is the heart of your game, * providing quick access to common funct...
vpmedia/phaser2-lite
src/core/Game.js
JavaScript
mit
31,942
module ActiveModelSerializers module Adapter class JsonApi class Relationship # {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links} # {http://jsonapi.org/format/#document-links Document Links} # {http://jsonapi....
sixthedge/cellar
src/totem/api/vendor/active_model_serializers-0.10.2/lib/active_model_serializers/adapter/json_api/relationship.rb
Ruby
mit
2,158
# -*- coding: utf-8 -*- """ Request Management System - Controllers """ prefix = request.controller resourcename = request.function if prefix not in deployment_settings.modules: session.error = T("Module disabled!") redirect(URL(r=request, c="default", f="index")) # Options Menu (available in all Functions'...
ptressel/sahana-eden-madpub
controllers/rms.py
Python
mit
6,228
<?php /** * Project: Epsilon * Date: 10/26/15 * Time: 5:30 PM * * @link https://github.com/falmar/Epsilon * @author David Lavieri (falmar) <daviddlavier@gmail.com> * @copyright 2015 David Lavieri * @license http://opensource.org/licenses/MIT The MIT License (MIT) */ namespace Epsilon\Environment; d...
falmar/Epsilon
Libraries/Epsilon/Environment/Cookie.php
PHP
mit
2,264
package org.jabref.gui.openoffice; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JDialog;...
tobiasdiez/jabref
src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java
Java
mit
3,726
// // GuidExtensions.cs // // Author: // Craig Fowler <craig@csf-dev.com> // // Copyright (c) 2015 CSF Software Limited // // 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 res...
csf-dev/CSF.Core
CSF/GuidExtensions.cs
C#
mit
6,175
<?php /** * Content wrappers * * This template can be overridden by copying it to yourtheme/woocommerce/global/wrapper-start.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibili...
srjwebster/doubletrouble
woocommerce/global/wrapper-start.php
PHP
mit
1,773
//****************************************************************************************************** // App.xaml.cs - Gbtc // // Copyright © 2010, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NO...
GridProtectionAlliance/openPDC
Source/Applications/openPDCManager/Silverlight/App.xaml.cs
C#
mit
4,907
package com.ricex.aft.android.request; import org.springframework.http.HttpStatus; public class AFTResponse<T> { /** The successful response from the server */ private final T response; /** The error response from the server */ private final String error; /** The HttpStatus code of the response */ private...
mwcaisse/AndroidFT
aft-android/src/main/java/com/ricex/aft/android/request/AFTResponse.java
Java
mit
1,925
<?php /** * Routes configuration * * In this file, you set up routes to your controllers and their actions. * Routes are very important mechanism that allows you to freely connect * different URLs to chosen controllers and their actions (functions). * * CakePHP(tm) : Rapid Development Framework (http://cakephp.o...
simkimsia/500-webapps
bookmarker/cake3_bookmarker/config/routes.php
PHP
mit
2,129
/* app/ui/map/svg */ define( [ 'jquery', 'raphael', 'app/ui/map/data', 'app/ui/map/util', 'util/detector', 'pubsub' ], function ($, Raphael, MapData, MapUtil, Detector) { 'use strict'; var SVG; return { nzte: {}, markers: [], exports: {}, countryText: {}, sets: {}, continent...
patocallaghan/questionnaire-js
original/assets/scripts/src/app/ui/map/svg.js
JavaScript
mit
9,939
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
khandroj/lampbelttest
application/config/database.php
PHP
mit
4,535
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ meta: { version: '2.0.0', banner: '/*! Ebla - v<%= meta.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '* Copyright (c) <%= grunt.template.today("yyyy") %> ' + ...
monospaced/paperback
ebla/Gruntfile.js
JavaScript
mit
2,746
<?php // src/AppBundle/Entity/Blog.php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="blog") */ class Blog { /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(...
codeglider/SymfonyShoeStoreDemo
src/AppBundle/Entity/Blog.php
PHP
mit
1,238
import {Chart} from 'react-google-charts'; import React, {Component, PropTypes} from 'react'; import DataFormatter from '../../utils/DataFormatter'; class EnvyBarChart extends Component { constructor(props) { super(props); this.state={ options:{ hAxis: {title: 'Event Type'}, vAxis: {title: 'Envy Events...
papernotes/actemotion
src/components/charts/EnvyBarChart.js
JavaScript
mit
828
using ApiAiSDK.Model; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Connector; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using UPT.BOT.Aplicacion.DTOs.BOT; using UPT.BOT.Distribucion.Bot.Acceso.Documento; namespace UPT.BOT.Distribucion.Bot.BotService.D...
williamccondori/UPT.BOT
UPT.BOT.Distribucion.Bot.BotService/Dialogos/Documento/BoletinDialog.cs
C#
mit
2,032
"use strict"; let mongoose = require('mongoose'), Schema = mongoose.Schema, EmailValidator = require('./emailValidator'); class User { constructor(explicitConnection) { this.explicitConnection = explicitConnection; this.schema = new Schema({ email: { type: 'string', trim:...
koneksys/KLD
api/model/user.js
JavaScript
mit
1,603
package cn.edu.ustc.appseed.clubseed.activity; /* * Show the detail content of the event which you select. * Why to use a custom toolbar instead of the default toolbar in ActionBarActivity? * Because the custom toolbar is very convenient to edit it and good to unify the GUI. */ import android.content.Intent; import ...
leerduo/ClubSeed
app/src/main/java/cn/edu/ustc/appseed/clubseed/activity/StarContentActivity.java
Java
mit
2,293
package com.smbc.droid; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.view.ViewPager; import android.view.Menu; import android.view.MenuItem; import android.view.View; import com.android.volley.toolbox.NetworkImageView; public class MainActivity extends FragmentA...
nindalf/smbc-droid
app/src/main/java/com/smbc/droid/MainActivity.java
Java
mit
1,709
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace image_viewer { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static voi...
rjclaasen/image-viewer
Program.cs
C#
mit
517
using System; using OKHOSTING.UI.Controls; using OKHOSTING.UI.Controls.Layouts; using OKHOSTING.UI.Xamarin.Mac.Controls; using OKHOSTING.UI.Xamarin.Mac.Controls.Layout; namespace OKHOSTING.UI.Xamarin.Mac { public class Platform { public override T Create<T>() { T control = null; if (typeof(T) == typeof(I...
okhosting/OKHOSTING.UI
src/Xamarin/OKHOSTING.UI.Xamarin.Mac/Platform.cs
C#
mit
5,381
module.export = { };
Force-Wj/chat-demo
src/base/util.js
JavaScript
mit
22
(function (ns) { // dependencies var assert = require('assert'); var esgraph = require('esgraph'); var worklist = require('analyses'); var common = require("../../base/common.js"); var Context = require("../../base/context.js"); var Base = require("../../base/index.js"); var codegen = r...
xml3d/shade.js
src/analyze/typeinference/typeinference.js
JavaScript
mit
8,226
package lab; public class IntArrayWorker { /** two dimensional matrix */ private int[][] matrix = null; /** set the matrix to the passed one * @param theMatrix the one to use */ public void setMatrix(int[][] theMatrix) { matrix = theMatrix; } /** * Method to return the ...
Zedai/APCOMSCI
ApComSci/pictures_lab/lab/IntArrayWorker.java
Java
mit
2,755
#include <bits/stdc++.h> using namespace std; vector<int> adj[143]; int n; bool seen[143]; int dfs(int u) { seen[u] = true; int result = 0; for (int v: adj[u]) if (!seen[v]) result += dfs(v) + 1; return result; } int main() { ios_base::sync_with_stdio(0);cin.tie(0); whil...
arash16/prays
UVA/vol-109/10926.cpp
C++
mit
815
<?php namespace SergeiK\izVladimiraBundle\Admin; use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Show\ShowMapper; class CarAdmin extends Admin { /** * @param Datagri...
SergeiKutanov/izvladimira
src/SergeiK/izVladimiraBundle/Admin/CarAdmin.php
PHP
mit
3,503
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; namespace NAudio.Lame { /// <summary> /// Decoder for ID3v2 tags /// </summary> public static class ID3Decoder { /// <summary> /// Read an ID3v2 Tag f...
Corey-M/NAudio.Lame
NAudio.Lame/ID3Decoder.cs
C#
mit
17,597
module Daemontools VERSION = "0.1.3" end
vladimirich/daemontools
lib/daemontools/version.rb
Ruby
mit
43
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ListRange} from '@angular/cdk/collections'; import { ChangeDetectionStrategy, ChangeDetectorRef, Compon...
amcdnl/material2
src/cdk-experimental/scrolling/virtual-scroll-viewport.ts
TypeScript
mit
12,339
module Devise module Hooks # A small warden proxy so we can remember, forget and # sign out users from hooks. class Proxy #:nodoc: include Devise::Controllers::Rememberable include Devise::Controllers::SignInOut attr_reader :warden delegate :cookies, :env, :to => :warden de...
QARIO/dochive
vendor/bundle/gems/devise-3.2.3/lib/devise/hooks/proxy.rb
Ruby
mit
454
import array import numbers real_types = [numbers.Real] int_types = [numbers.Integral] iterable_types = [set, list, tuple, array.array] try: import numpy except ImportError: pass else: real_types.extend([numpy.float32, numpy.float64]) int_types.extend([numpy.int32, numpy.int64]) iterable_types.app...
DailyActie/Surrogate-Model
01-codes/OpenMDAO-Framework-dev/openmdao.util/src/openmdao/util/typegroups.py
Python
mit
558
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import { toggleSelect } from '../actions/users'; import { createLink } from '../../utils'; class User extends Component { render() { const profile_image_url_https = this.props.user.profile_im...
sunya9/follow-manager
src/containers/User.js
JavaScript
mit
5,320
<?php /** * This file is part of the PPI Framework. * * @copyright Copyright (c) 2011-2013 Paul Dragoonis <paul@ppi.io> * @license http://opensource.org/licenses/mit-license.php MIT * @link http://www.ppi.io */ namespace PPICacheModule\Cache\Driver; use PPICacheModule\Cache\CacheInterface; /** * Mem...
ppi/cache
Cache/Driver/MemoryCache.php
PHP
mit
1,925
/*** * Textile parser for JavaScript * * Copyright (c) 2012 Borgar Þorsteinsson (MIT License). * */ /*jshint laxcomma:true laxbreak:true eqnull:true loopfunc:true sub:true */ ;(function(){ "use strict"; /*** * Regular Expression helper methods * * This provides the `re` object, which contain...
muffinmad/atom-textile-preview
lib/textile.js
JavaScript
mit
45,902
package com.smartbit8.laravelstorm.run; import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.*; import com.intellij.execution.process.*; import com.intellij.execution.runners.ExecutionEnvironment; import com.intellij.ide.browsers.*; impo...
3mmarg97/LaravelStorm
src/com/smartbit8/laravelstorm/run/LaravelRunConf.java
Java
mit
6,140
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :question do sq_no '2' query 'What is Ruby?' question_type "Hard" association :level association :content after(:build) do |question| FactoryGirl.create(:correct, :question => question) ...
techvision/brails
spec/factories/questions.rb
Ruby
mit
411
/*! Copyright 2011, Ben Lin (http://dreamerslab.com/) * Licensed under the MIT License (LICENSE.txt). * * Version: 1.0.0 * * Requires: jQuery 1.2.3+ */ $.preload = function(){ var tmp = [], i = arguments.length; // reverse loop run faster for( ; i-- ; ) tmp.push( $( '<img />' ).attr( 'src', arguments[ i ] )); };
dreamerslab/ci.view
example_site/assets/js/lib/jquery.preload.js
JavaScript
mit
320
/*jshint indent: 4, browser:true*/ /*global L*/ /* * L.TimeDimension.Player */ //'use strict'; L.TimeDimension.Player = (L.Layer || L.Class).extend({ includes: (L.Evented || L.Mixin.Events), initialize: function(options, timeDimension) { L.setOptions(this, options); this._timeDimension = ti...
geofbaum/geofbaum.github.io
src/leaflet.timedimension.player.js
JavaScript
mit
5,914
<?php namespace pagosBundle\Entity; use Doctrine\ORM\EntityRepository; use Doctrine\DBAL\DriverManager; class pagoRepository extends EntityRepository { public function facturar($lineas,$entidad,$cuenta) { $datos=array('serie'=>'', 'folio'=>'', 'empresa_id'=>'', ...
elmaspicudo/algo
src/pagosBundle/Entity/pagoRepository.php
PHP
mit
8,184
package com.bitdubai.fermat_bnk_api.layer.bnk_wallet.bank_money.exceptions; import com.bitdubai.fermat_api.FermatException; /** * Created by Yordin Alayn on 18.09.15. */ public class CantTransactionBankMoneyException extends FermatException { public static final String DEFAULT_MESSAGE = "Falled To Get Bank Tra...
fvasquezjatar/fermat-unused
fermat-bnk-api/src/main/java/com/bitdubai/fermat_bnk_api/layer/bnk_wallet/bank_money/exceptions/CantTransactionBankMoneyException.java
Java
mit
533
<?php namespace SMARTASK\HomeBundle\Entity; use Doctrine\ORM\Mapping as ORM; use SMARTASK\UserBundle\Entity\User ; use FOS\ElasticaBundle\Configuration\Search; use Symfony\Component\Validator\Constraints as Assert; /** * Task * * @ORM\Table(name="task") * @Search(repositoryClass="SMARTASK\HomeBundle\Repository\Ta...
tonymayflower/smartask
src/SMARTASK/HomeBundle/Entity/Task.php
PHP
mit
5,793
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package modelo; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java...
deivisvieira/PosJava
src/java/modelo/Cotacao.java
Java
mit
2,527
<?php namespace MM\Util\Dummy; trigger_error("simulating php error/warining"); class Dummy2 { }
marianmeres/mm-php
mm-util/tests/MM/Util/Dummy/Dummy2.php
PHP
mit
98
<?php /* Safe sample input : Uses popen to read the file /tmp/tainted.txt using cat command sanitize : settype (float) construction : use of sprintf via a %d */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this sof...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_89/safe/CWE_89__popen__CAST-func_settype_float__multiple_AS-sprintf_%d.php
PHP
mit
1,780
'use strict'; angular.module('mean.settings').config(['$stateProvider', function($stateProvider) { var checkLoggedin = function($q, $timeout, $http, $location) { // Initialize a new promise var deferred = $q.defer(); // Make an AJAX call to check if the user is logged in $http.get('/logg...
indie-hackathon/dchat
packages/custom/settings/public/routes/settings.js
JavaScript
mit
787
import Express = require("express"); import Geohash = require("latlon-geohash"); import Nconf = require("nconf"); import Path = require("path"); import * as multer from "multer"; import { Picnic } from "../../models/Picnic"; import { User } from "../../models/User"; import { Module } from "../Module"; import { UserMo...
earthiverse/picknic
source/modules/data/DataModule.ts
TypeScript
mit
6,060
<!-- Modal ADD --> <div class="modal fade" id="modal-form" role="dialog"> <div class="modal-dialog modal-lg"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title"><sm...
nizamiftahul/ci_p1
application/views/rawat_jalan/_edit.php
PHP
mit
7,969
#Attribute set in both superclass and subclass class C(object): def __init__(self): self.var = 0 class D(C): def __init__(self): self.var = 1 # self.var will be overwritten C.__init__(self) #Attribute set in both superclass and subclass class E(object): def __init__(self): ...
github/codeql
python/ql/test/query-tests/Classes/overwriting-attribute/overwriting_attribute.py
Python
mit
451
#include <iostream> #include <fftw3.h> #include <omp.h> #include <cstdlib> #include <sweet/SimulationVariables.hpp> class TestFFTPlans { public: bool importWisdom(int i_reuse_spectral_transformation_plans) { static const char *wisdom_file = "sweet_fftw"; std::cout << "fftw_import_wisdom_from_filename(" << wisd...
schreiberx/sweet
src/unit_tests/test_plane_fftw_wisdom_import_export.cpp
C++
mit
3,655
class Comment < Sequel::Model many_to_one :post include Splam splammable :body do |splam| splam.threshold = 40 splam.rules = [:bad_words, :html, :bbcode, :href, :chinese, :line_length, :russian] end def before_save return false if super == false self.published = !self.splam? true e...
whoisjake/thoughts
models/comment.rb
Ruby
mit
329
namespace EVTC_Log_Parser.Model { public class Interval { public int Start { get; set; } public int End { get; set; } } }
M4xZ3r0/GW2RaidTool
GW2RaidTool/EVTC-Log-Parser/Model/Data/Skill/Interval.cs
C#
mit
153
package br.com.dbsoft.rest.dados; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInc...
dbsoftcombr/dbssdk
src/main/java/br/com/dbsoft/rest/dados/DadosStatus.java
Java
mit
1,014
import PropTypes from 'prop-types' import React from 'react' import block from 'bem-cn-lite' import { Field, reduxForm } from 'redux-form' import { compose } from 'underscore' import { connect } from 'react-redux' import { renderTextInput } from '../text_input' import { renderCheckboxInput } from '../checkbox_input' im...
kanaabe/force
src/desktop/apps/consign/components/sign_up/index.js
JavaScript
mit
3,781
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System.Collections.Generic; using DotSpatial.Data; namespace DotSpatial.Symbology { /// <summary> /// Interface for LayerProvider. ...
CGX-GROUP/DotSpatial
Source/DotSpatial.Symbology/ILayerProvider.cs
C#
mit
2,747
using System.Runtime.Serialization; namespace PushbulletSharp.Models.Responses.Ephemerals { [DataContract] public class DismissalEphemeral : IEphemeral { /// <summary> /// Gets or sets the type. /// </summary> /// <value> /// The type. /// </value> [...
adamyeager/PushbulletSharp
PushbulletSharp/Models/Responses/Ephemerals/DismissalEphemeral.cs
C#
mit
1,753
package com.landenlabs.all_flipanimation; /** * Copyright (c) 2015 Dennis Lang (LanDen Labs) landenlabs@gmail.com * * 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, inc...
landenlabs2/all_FlipAnimation
app/src/main/java/com/landenlabs/all_flipanimation/ActivityRotAnimation.java
Java
mit
10,273
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DesktopCharacter.Model.Locator; using DesktopCharacter.ViewModel.SettingTab; namespace DesktopCharacter.ViewModel { class SettingViewModel : Livet.ViewModel { public LauncherSettin...
Babumi/DesktopCharacter
DesktopCharacter/ViewModel/SettingViewModel.cs
C#
mit
1,063
TF.listen();
rivers/tabfusion
src/listener.js
JavaScript
mit
13
<?php /** * Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems. * * @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository * * @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com) * @license https://github.c...
loopline-systems/closeio-api-wrapper
src/Model/Lead.php
PHP
mit
11,400
package com.example.apahlavan1.top10downloader; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationT...
AriaPahlavan/Android-Apps
Top10Downloader/app/src/androidTest/java/com/example/apahlavan1/top10downloader/ApplicationTest.java
Java
mit
369
import pymongo def connect (): ''' Create the connection to the MongoDB and create 3 collections needed ''' try: # Create the connection to the local host conn = pymongo.MongoClient() print 'MongoDB Connection Successful' except pymongo.errors.ConnectionFailure, err: ...
Macemann/Georgetown-Capstone
app/db/connect.py
Python
mit
493
require 'compiler_helper' module Alf class Compiler describe Default, "join" do subject{ compiler.call(expr) } let(:right){ compact(an_operand) } let(:expr){ join(an_operand(leaf), right) } it_should_behave_like "a traceable compiled" it...
alf-tool/alf-core
spec/unit/alf-compiler/default/test_join.rb
Ruby
mit
620
<?php // This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker // somewhere in your theme. ?> <?php if (!get_theme_mod('hide-header')) { ?> <header class="container-fluid"> <div class="row"> <div class="banner navbar navbar-default navbar-static-top ...
allurewebsolutions/sage-starter
templates/header.php
PHP
mit
1,868
require_relative "../lib/stressfactor" require "pry" file = GPX::GPXFile.new(:gpx_file => "examples/data/sample.gpx") pc = Stressfactor::PaceCalculator.new(file) pace = pc.calculate puts pace binding.pry
andrewhao/stressfactor
scripts/analyze_sample_gpx.rb
Ruby
mit
204
$(document).ready(function() { $(document).on('submit', '.status-button', function(e) { e.preventDefault(); var joinButton = e.target $.ajax(joinButton.action, { method: 'PATCH', data: $(this).serialize() }) .done(function(data) { gameDiv = $(joinButton).parent(); gameDiv....
nyc-dragonflies-2015/whos_got_next
app/assets/javascripts/players.js
JavaScript
mit
412
require_relative 'spec_helper.rb' feature "can deal cards" do before do create_and_join_room("jnmandal", "bsheridan12") end scenario "allows you to choose amount of cards dealt" do in_browser(:one) do expect(page).to have_field "initial-deal-count" end end scenario "deal cards button dea...
KYoon/Stacks-on-Deck
spec/capybara/deal_cards_spec.rb
Ruby
mit
1,146
function OrganizationController() { // injetando dependência 'ngInject'; // ViewModel const vm = this; console.log('OrganizationController'); } export default { name: 'OrganizationController', fn: OrganizationController };
dnaloco/digitala
app/erp/js/controllers/human-resource/organiz.js
JavaScript
mit
242
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2016, Jianfeng Chen <jchen37@ncsu.edu> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # # 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 t...
Ginfung/FSSE
Metrics/gd.py
Python
mit
1,445
import React, { Component } from 'react'; import Header from './Header'; import MainSection from './MainSection'; export default class App extends Component { render() { return ( <div> <Header/> <MainSection/> </div> ); } }
loggur/react-redux-provide
examples/todomvc/components/App.js
JavaScript
mit
265
#!/usr/bin/env python3 # # Copyright (c) 2017 Nick Douma # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
LordGaav/notification-scripts
slack.py
Python
mit
3,578
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class MultilayerGeneratorServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { // } /** * Register the applicatio...
HOuaghad/multilayering
src/providers/MultilayerGeneratorServiceProvider.php
PHP
mit
1,662
class BlogPost < ActiveRecord::Base end
heedspin/transactional-factories
test/lib/blog_post.rb
Ruby
mit
39
#region License // The MIT License (MIT) // // Copyright (c) 2016 João Simões // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the ri...
EULexNET/EULex.NET
src/EULex/SimpleSOAPClient/Helpers/XmlHelpers.cs
C#
mit
4,158
#region Copyright (c) 2014 Orcomp development team. // ------------------------------------------------------------------------------------------------------------------- // <copyright file="ParseException.cs" company="Orcomp development team"> // Copyright (c) 2014 Orcomp development team. All rights reserved. // <...
Orcomp/SolutionValidator
src/SolutionValidator.Core/Validator/FolderStructure/Exceptions/ParseException.cs
C#
mit
834
package com.kkk.retrofitdemo; import com.kkk.retrofitdemo.bean.Repo; import com.kkk.retrofitdemo.bean.SearchRepoResult; import java.util.List; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; import rx.Observable; public interface GitHubService { @GET("u...
kylm53/learn-android
RetrofitDemo/src/main/java/com/kkk/retrofitdemo/GitHubService.java
Java
mit
655
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleProlongImageUrl extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', f...
remp2020/remp
Beam/database/migrations/2018_12_07_145030_article_prolong_image_url.php
PHP
mit
761
version https://git-lfs.github.com/spec/v1 oid sha256:641860132ccb9772e708b19feb3d59bb6291f6c40eebbfcfa0982a4e8eeda219 size 69639
yogeshsaroya/new-cdnjs
ajax/libs/holder/2.5.0/holder.js
JavaScript
mit
130
(function(global) { var vwl = {}; var receivePoster; var receiveEntry; var receiveLoadedList; // vwl.init - advertise VWL info and register for VWL messages // // Parameters: // left - (optional) url of this world's initial left entry image // right - (optional) url of this world's initial right entry image // ...
BigRobCoder/VirtualWorldLink
lib/vwl.js
JavaScript
mit
3,364
# -*- coding: utf-8 -*- """The initialization file for the Pywikibot framework.""" # # (C) Pywikibot team, 2008-2015 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals __release__ = '2.0b3' __version__ = '$Id$' __url__ = 'https://www.mediawiki.org/wiki/Speci...
icyflame/batman
pywikibot/__init__.py
Python
mit
26,823
package gui; import java.awt.Font; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.image.BufferedImage; import java.awt.Toolkit; import javax.imageio.ImageIO; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.SwingConstants;...
berserkingyadis/ImageDownloader
src/main/java/gui/GUI.java
Java
mit
18,735
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package curveavg; /** * Small helper class for computing the circular arc between two points. * @author Sebastian Weiss */ public c...
shamanDevel/CurveAverage
src/curveavg/CircularArc.java
Java
mit
4,540
// These two object contain information about the state of Ebl var GlobalState = Base.extend({ constructor: function() { this.isAdmin = false; this.authToken = null; this.docTitle = null; this.container = null; // default config this.config = { t...
alessandrofrancesconi/ebl
ebl/core/js_src/state/state.js
JavaScript
mit
1,178
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DiveConditions.ViewModels.Manage { public class FactorViewModel { public string Purpose { get; set; } } }
DiveConditions/DiveConditions
src/DiveConditions/ViewModels/Manage/FactorViewModel.cs
C#
mit
237
// // This file genenerated by the Buckle tool on 2/13/2015 at 8:27 AM. // // Contains strongly typed wrappers for resources in VacuumResources.resx // namespace Vacuum { using System; using System.Reflection; using System.Resources; using System.Diagnostics; using System.Globalization; /// <summary> /// Strongly t...
jlyonsmith/Vacuum
VacuumLibrary/Resources/VacuumResources.cs
C#
mit
847
<?php include "config.php"; session_start(); if(!isset($_SESSION['username'])){ //header("location:login.php"); } ?> <!DOCTYPE html> <!-- This is a starter template page. Use this page to start your new project from scratch. This page gets rid of all links and provides the needed markup only. --> <html> <head> <meta...
abdiwahab-omar/team
xray_display.php
PHP
mit
9,171
require "pact_broker/api/resources/can_i_deploy_pacticipant_version_by_tag_to_tag" require "pact_broker/matrix/service" module PactBroker module Api module Resources describe CanIDeployPacticipantVersionByBranchToEnvironment do include_context "stubbed services" before do allow(P...
pact-foundation/pact_broker
spec/lib/pact_broker/api/resources/can_i_deploy_pacticipant_version_by_branch_to_environment_spec.rb
Ruby
mit
2,071
import React from 'react' import { Container, Group, TabBar, Icon, Badge, amStyles, } from 'amazeui-touch' import {Link} from 'react-router' class App extends React.Component{ propsType ={ children:React.PropTypes.node } render(){ let { location, params, ...
yiweimatou/yiweimatou-mobile
src/components/pages/app.js
JavaScript
mit
1,961
<?php $article_excerpt_categories = get_the_category(); $article_excerpt_categories_output = ""; if ( ! empty( $article_excerpt_categories ) ) { $article_excerpt_categories_output = esc_html( $article_excerpt_categories[0]->name ); } ?> <article class="su-article su-article--divider su-article--<?php echo strtolower...
shellbryson/sheru
template-parts/excerpt.php
PHP
mit
1,104
<?php namespace framework\ext; //xml解析成数组 class Xml { public static function decode($xml) { $values = array(); $index = array(); $array = array(); $parser = xml_parser_create('utf-8'); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_parser_set_option($parser, XML_OPTION_CASE_FO...
cyrilzhao/zqzirui
framework/ext/Xml.php
PHP
mit
1,581
import com.sendgrid.Method; import com.sendgrid.Request; import com.sendgrid.Response; import com.sendgrid.SendGrid; import com.sendgrid.helpers.mail.Mail; import com.sendgrid.helpers.mail.objects.Content; import com.sendgrid.helpers.mail.objects.Email; import com.sendgrid.helpers.mail.objects.Personalization; import ...
sendgrid/sendgrid-java
examples/helpers/mail/SingleEmailMultipleRecipients.java
Java
mit
1,666
<?php namespace BlogBundle\Document; use Doctrine\ODM\MongoDB\DocumentRepository; class TagRepository extends DocumentRepository { public function getTagByName($name = '') { $query = $this->createQueryBuilder() ->field('name')->equals($name); return $query->getQuery()->getSingleR...
haltaction/blog
src/BlogBundle/Document/TagRepository.php
PHP
mit
505
<?php /** * Phinx * * (The MIT license) * Copyright (c) 2014 Rob Morgan * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated * documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * ri...
rsdevigo/phinx
src/Phinx/Db/Table.php
PHP
mit
15,419
<?php namespace Forge\Log; /** * Log_File * File log writer. Writes out messages and stores them in a YYYY/MM directory. * * @package SuperFan * @category Log * @author Zach Jenkins <zach@superfanu.com> * @copyright (c) 2017 SuperFan, Inc. */ class File extends Writer { // Directory to place log ...
forgephp/core
classes/Log/File.php
PHP
mit
2,101
/* * unstrap v1.1.3 * https://unstrap.org * 2015-2020 * MIT license */ const version = '1.1.3', collection = {}; function extendUnstrap (v) { var list; if (!collection[v].selectors) { collection[v].selectors = ['.' + collection[v].name]; } collection[v].selectors.forEach(function (sel) { ...
unstrap/unstrap
unstrap.js
JavaScript
mit
1,620
<?php /* PgGsbFraisBundle::accueilCompta.html.twig */ class __TwigTemplate_6194dcf338f5cd969f229bda597abec8b69c1f8371639ebcadc7c86b484b4c01 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("PgGsbFra...
FCalligaris/GSB
app/cache/dev/twig/61/94/dcf338f5cd969f229bda597abec8b69c1f8371639ebcadc7c86b484b4c01.php
PHP
mit
4,000
'use strict'; const toBytes = s => [...s].map(c => c.charCodeAt(0)); const xpiZipFilename = toBytes('META-INF/mozilla.rsa'); const oxmlContentTypes = toBytes('[Content_Types].xml'); const oxmlRels = toBytes('_rels/.rels'); const fileType = input => { const buf = input instanceof Uint8Array ? input : new Uint8Array(in...
jmhmd/dat-lambda
client/lib/file-type.js
JavaScript
mit
15,936
import logging from abc import ABCMeta, abstractmethod from collections import deque from typing import List, Union, Iterable, Sequence log = logging.getLogger(__name__) class NoSensorsFoundException(RuntimeError): pass class Controller(metaclass=ABCMeta): @abstractmethod def run(self): raise N...
vrga/pyFanController
pyfc/common.py
Python
mit
4,243
// PS4Macro (File: Forms/MainForm.cs) // // Copyright (c) 2018 Komefai // // Visit http://komefai.com for more information // // 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 witho...
komefai/PS4Macro
PS4Macro/Forms/MainForm.cs
C#
mit
23,676
let fs = require("fs"); let path = require("path"); let cp = require("child_process"); function runCommand(folder, args) { cp.spawn("npm", args, { env: process.env, cwd: folder, stdio: "inherit" }); } function getPackages(category) { let folder = path.join(__dirname, category); return fs .readdirSync(folder...
pshrmn/curi
examples/updateCategory.js
JavaScript
mit
1,046
// download the contents of a url package main import ( "fmt" "io/ioutil" "log" "net/http" ) func main() { res, err := http.Get("http://www.google.com/robots.txt") if err != nil { log.Fatal(err) } robots, err := ioutil.ReadAll(res.Body) res.Body.Close() if err != nil { log.Fatal(err) } fmt.Printf("%s...
andrew/go-experiments
get.go
GO
mit
333