repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
duncanteege/nemo_application
app/components/province.component.ts
5364
import { Component} from '@angular/core'; import { ProvinceService } from '../services/activities/activities.service'; import { LocationService } from '../services/location/location.service'; import { Observable } from 'rxjs/Observable'; @Component({ moduleId: module.id, selector: 'provinces', templateUrl: 'provinc...
mit
peim/money-transfer-service
src/main/scala/com/peim/model/table/Transfers.scala
729
package com.peim.model.table import java.time.OffsetDateTime import com.peim.model.{Transfer, TransferStatus} import slick.driver.H2Driver.api._ import slick.lifted.Tag class Transfers(tag: Tag) extends Table[Transfer](tag, "transfers") { import Transfer._ def id = column[Int]("id", O.PrimaryKey, O.AutoInc) ...
mit
ekov1/TelerikAcademy-Exercises
regular/C#/C# - 1/01. Introduction-to-Programming/demos/01. Console Manipulation/01. Console Manipulation.cs
636
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Console_Manipulation { class Program { static void Main(string[] args) { Console.BackgroundColor = ConsoleColor.Cyan; Console.ForegroundColo...
mit
Uniandes-isis2603/company_back
company-api/src/main/java/co/edu/uniandes/csw/company/mappers/BusinessLogicExceptionMapper.java
1020
/* * 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 co.edu.uniandes.csw.company.mappers; import co.edu.uniandes.csw.company.exceptions.BusinessLogicException; import ja...
mit
thomasnilsson/thomasnilsson.github.io
ionic/capacitorDemo/src/app/home/home.module.ts
552
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IonicModule } from '@ionic/angular'; import { FormsModule } from '@angular/forms'; import { HomePage } from './home.page'; import { HomePageRoutingModule } from './home-routing.module'; import { MessageComponentModule } ...
mit
greezybacon/phlite
src/Db/Exception/NotUnique.php
75
<?php namespace Phlite\Db\Exception; class NotUnique extends OrmError {}
mit
Dhonisaputra/Akar
index.js
1602
'use strict'; /* *--------------------------------------------------------------- * SYSTEM FOLDER NAME *--------------------------------------------------------------- * * This variable must contain the name of your "system" folder. * Include the path if the folder is not in the same directory * as this file. ...
mit
Addepar/ember-data
packages/ember-data/tests/integration/adapter/store_adapter_test.js
17484
/** This is an integration test that tests the communication between a store and its adapter. Typically, when a method is invoked on the store, it calls a related method on its adapter. The adapter notifies the store that it has completed the assigned task, either synchronously or asynchronously, by calling a me...
mit
otm/longest-common-prefix
lcp.go
708
// Package lcp (Longest Common Prefix) is used for text compleation package lcp // Find returns an array of strings that matches the longest needle func Find(needle string, haystack []string) ([]string, error) { result := make([]string, len(haystack)) temp := make([]string, 0, len(result)) copy(result, haystack) ...
mit
fabsgc/framework
Core/Facade/FacadeEntity.php
2444
<?php /*\ | ------------------------------------------------------ | @file : FacadeEntity.php | @author : Fabien Beaujean | @description : easier way to instantiate entities | @version : 3.0 Bêta | ------------------------------------------------------ \*/ namespace Gcs\Framework\Core\Facade; use Gcs\Framework\...
mit
floraison/fugit
doc/cron.rb
559
require 'fugit' c = Fugit::Cron.parse('0 0 * * sun') # or c = Fugit::Cron.new('0 0 * * sun') p Time.now # => 2017-01-03 09:53:27 +0900 p c.next_time # => 2017-01-08 00:00:00 +0900 p c.previous_time # => 2017-01-01 00:00:00 +0900 p c.brute_frequency # => [ 604800, 604800, 53 ] # ...
mit
fieldenms/tg
platform-web-ui/src/main/web/ua/com/fielden/platform/web/components/tg-toast.js
13130
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout.js'; import '/resources/polymer/@polymer/paper-dialog/paper-dialog.js' import '/resources/polymer/@polymer/paper-dialog-scrollable/paper-dialog-scrollable.js' import '/resources/polymer/@polymer/paper-styles/color.js'; import '/resources/polymer/@pol...
mit
supun19/directPayFrontend
src/app/class/User.ts
185
export class User{ constructor(public id:string,public firstName:string,public lastName:string,public accountNumber:string,public nic:string,public phoneNumber:string){ } }
mit
nesi/pan_pdu
rlib/webbrowser.rb
9665
require 'net/http' require 'net/https' require 'uri' require 'nokogiri' #WebBrowser class, derived from Rob Burrowes' Wikarekare source (MIT License). #Encapsulates simple methods to log into a web site, and pull pages. class WebBrowser attr_reader :host attr_accessor :session attr_accessor :cookie attr_read...
mit
jumilla/laravel-extension
tests/Generators/Commands/RequestMakeCommandTests.php
2318
<?php use LaravelPlus\Extension\Generators\Commands\RequestMakeCommand as Command; class RequestMakeCommandTests extends TestCase { use ConsoleCommandTrait; /** * @test */ public function test_withNoParameter() { // 1. setup $app = $this->createApplication(); // 2. ...
mit
krasi-totev/Telerik-Academy-2016-Homeworks
Module 1/C#/Operators-and-Expressions-Homework/Trapezoids/Trapezoids.cs
317
using System; class Trapezoids { static void Main() { double a = double.Parse(Console.ReadLine()); double b = double.Parse(Console.ReadLine()); double h = double.Parse(Console.ReadLine()); double area = h * ((a + b) / 2); Console.WriteLine("{0:F7}", area); } }
mit
ismailakbudak/hesap
app/models/admin_profile.rb
272
class AdminProfile < ActiveRecord::Base belongs_to :admin validates_presence_of :first_name, :last_name def full_name [first_name, last_name].join(' ') end def self.by_letter(letter) where("last_name LIKE ?", "#{letter}%").order(:last_name) end end
mit
HenryJW/fcc-stocks-chart-app
server/app.js
1380
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var app = express(); // view engine setup app.set('views'...
mit
jaroslavtyc/drd-plus-tables
DrdPlus/Tables/Measurements/Wounds/Exceptions/Exception.php
174
<?php declare(strict_types = 1); namespace DrdPlus\Tables\Measurements\Wounds\Exceptions; interface Exception extends \DrdPlus\Tables\Measurements\Exceptions\Exception { }
mit
brett-harvey/Smart-Contracts
Ethereum-based-Roll4Win/node_modules/workbox-build/src/entry-points/options/generate-sw-schema.js
1052
/* Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
mit
TFaga/kumuluzee-examples
java-magazine-trains/ui/src/main/java/com/acme/trains/BookingsBean.java
847
package com.acme.trains; import com.acme.trains.models.Booking; import java.util.List; import javax.enterprise.inject.Model; import javax.inject.Inject; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.core.GenericType; /** * <p>Manages bookings for the UI via the REST interface from the bookings micros...
mit
tedeh/jayson
examples/relay/server_public.js
280
'use strict'; const jayson = require('jayson'); // create a server where "add" will relay a localhost-only server const server = new jayson.server({ add: new jayson.client.http({ port: 3001 }) }); // let the frontend server listen to *:3000 server.http().listen(3000);
mit
cecilgol/utdebatecamp_com
config/environments/test.rb
576
Rails.application.configure do config.cache_classes = true config.eager_load = false config.public_file_server.enabled = true config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } config.consider_all_requests_local = true config.action_controller.perform_caching = fal...
mit
SCPR/kpcc_backroom_handshakes
ballot_box/utils_import.py
13058
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.utils.timezone import localtime from ballot_box.models import * from election_registrar.models import * from ballot_box.utils_data import Fram...
mit
r5w/drunken-archer
js/svg-test.js
5658
/*jslint browser: true */ /*global $, jQuery,Snap, console, mina, alert */ // First lets create our drawing surface out of existing SVG element // If you want to create new surface just provide dimensions // like s = Snap(800, 600); function init(w, h) { "use strict"; var s = Snap.select("#svg"), printmessage = fu...
mit
cacampbell/Sympal
setup.py
807
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) setup( name='Sympal', packages=['Sympal'], version='0.5', description='Basic end user Sympa listserv management with Python requests', url='https://github.com/cacampbell/Sympal', download_url='https://...
mit
danurwenda/xeroxampah
application/views/admin/chart/config_step.php
8273
<div class="step-pane" data-step="3"> <div class="row"> <h3 class="row header smaller lighter blue"> <span class="col-xs-6"> Header </span><!-- /.col --> </h3> <div> <form class="form-horizontal" id="config-form"> <div class="form-group"> ...
mit
pingzing/Philosopher
Philosopher.Multiplat/Philosopher.Multiplat/Services/IDataService.cs
775
using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.Contracts; using System.Threading; using System.Threading.Tasks; using Philosopher.Multiplat.Models; namespace Philosopher.Multiplat.Services { public interface IDataService : INotifyPropertyChanged { IDataService ...
mit
iauns/spire-scirun
spire_scirun/SRInterface.cpp
6261
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2013 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
mit
rachwal/DesignPatterns
structural/src/bridge/application_window.cc
764
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software" // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm // // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan. #include "application_window.h" namespace structural { na...
mit
amaozhao/basecms
cmsplugin_carousel/migrations/0001_initial.py
2338
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import models, migrations import filer.fields.image class Migration(migrations.Migration): dependencies = [ ('auth', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER...
mit
DoctorMcKay/node-steam-user
enums/EGameSearchAction.js
220
/** * @enum EGameSearchAction */ module.exports = { "None": 0, "Accept": 1, "Decline": 2, "Cancel": 3, // Value-to-name mapping for convenience "0": "None", "1": "Accept", "2": "Decline", "3": "Cancel", };
mit
ThunderKey/gemsurance-as-a-service
db/migrate/20170223114856_create_gem_usages.rb
322
# frozen_string_literal: true class CreateGemUsages < ActiveRecord::Migration[5.0] def change create_table :gem_usages do |t| t.references :gem_version, foreign_key: true, index: true, null: false t.references :resource, foreign_key: true, index: true, null: false t.timestamps end end en...
mit
francesconistri/p2ptv-pi
pistream/node_modules/jspm/node_modules/systemjs-builder/lib/trace.js
28914
var getCanonicalName = require('./utils').getCanonicalName; var glob = require('glob'); var toFileURL = require('./utils').toFileURL; var fromFileURL = require('./utils').fromFileURL; var asp = require('bluebird').promisify; var fs = require('fs'); var path = require('path'); var extend = require('./utils').extend; var...
mit
PK-420/SuperSquirrel
src/main/framework/gameObjects/Block.java
3203
/* * The MIT License * * Copyright 2014 Patrick Kerr. * * 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, ...
mit
yasaichi/everett
spec/lib/everett/configuration_spec.rb
2444
require "rails_helper" RSpec.describe Everett::Configuration do # NOTE: To avoid changing state of Everett::Configuration#instance let(:configuration) { Class.new(described_class).instance } describe "#instantiated_observers" do subject { configuration.instantiated_observers } before do stub_cons...
mit
xplenty/xplenty.jar
xplenty.jar-core/src/main/java/com/xplenty/api/request/ListJobs.java
1887
/** * */ package com.xplenty.api.request; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.sun.jersey.api.client.ClientResponse; import com.xplenty.api.Xplenty; import com.xplenty.api.Xplenty.ClusterStatus; import com.xplenty.api.exceptions.Xplenty...
mit
AmauryD/Arma_AC
ARMA_AC/Menu/Menus/menus.hpp
243
#include "common.hpp" #include "console_menu.hpp" #include "logs_menu.hpp" #include "objects_menu.hpp" #include "text_dialog.hpp" #include "map_menu.hpp" #include "spectate_menu.hpp" #include "admin_menu.hpp" #include "config_helper_menu.hpp"
mit
punkbass/Systems-of-Linear-Equations-Minecraft-Game-Rpi
systemOfLinearEquationsGame2D.py
1872
import mcpi.minecraft as minecraft import mcpi.block as block import time import random repeat = 4 waitTime = 9 height = 4 gameMin = -20 gameMax = 20 coeffMin = -9 coeffMax = 9 mc = minecraft.Minecraft.create() #set Solution xS = random.randint(gameMin,gameMax) yS = random.randint(gameMin,gameMax) #first line #x co...
mit
Englebabz/CasGO
Entityclass/stringparser.go
11052
package Exp import ( "fmt" dbg "github.com/Englebabz/CasGO/Debugprint" "github.com/Englebabz/CasGO/Stringmanipulations" "strings" ) func textToCasReal(instring string, recs string) (exp Express, err error) { //TextToCas will turn a string (eg "2*x+3") to an Express class //var origin = instring //fmt.Println(i...
mit
takeshik/yacq
Yacq/Serialization/AssemblyRef.cs
8774
// -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- // $Id$ /* YACQ <http://yacq.net/> * Yet Another Compilable Query Language, based on Expression Trees API * Copyright © 2011-2013 Takeshi KIRIYA (aka takeshik) <takeshik@yacq.net> * All rights reserved. * * This f...
mit
joev/SVUI-Temp
SVUI_UnitFrames/elements/castbar.lua
26037
--[[ ############################################################################## S V U I By: Munglunch # ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS ##################################...
mit
probml/pyprobml
scripts/parzen_window_demo2.py
2303
# Demonstrate a non-parametric (parzen) density estimator in 1D # Author: Gerardo Durán Martín import superimport import numpy as np import matplotlib.pyplot as plt from scipy.linalg import norm plt.rcParams["axes.spines.right"] = False plt.rcParams["axes.spines.top"] = False def K(u, axis=0): return np.all(np.abs...
mit
mmazi/rescu
src/main/java/si/mazi/rescu/HttpResponseAware.java
1347
/* * Copyright (C) 2015 Matija Mazi * * 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, merge, publish...
mit
Biggar/snorcoin
src/qt/locale/bitcoin_af_ZA.ts
111997
<?xml version="1.0" ?><!DOCTYPE TS><TS language="af_ZA" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Snorcoin</source> <translation type="unfinished"/> </message> <message> <location li...
mit
NathanWalker/nativescript-ng2-magic
install.js
17345
// ----------------------------------------------------------- // version 1.09 // ----------------------------------------------------------- "use strict"; var debugging = false; var fs = require('fs'); var cp = require('child_process'); var path = require('path'); var isRanFromNativeScript = fs.existsSync("../../ap...
mit
TNOCS/csTouch
framework/csCommonSense/Controls/FloatingElements/Shares/Qr/QrViewModel.cs
1690
#region using System; using System.ComponentModel.Composition; using System.Windows.Media; using System.Windows.Media.Imaging; using Caliburn.Micro; using EndPoint = csShared.FloatingElements.Classes.EndPoint; #endregion namespace csShared { public class QrViewModel : Screen { [ImportingCons...
mit
floriico/onyx
js/entity-component/weapon.js
227
define([], function () { 'use strict'; function Weapon(name, minDamage, maxDamage) { this.name = name; this.minDamage = minDamage; this.maxDamage = maxDamage; Object.freeze(this); } return Weapon; });
mit
jcerniauskas/spformfiller
app/scripts.ts/Providers/FieldValueProvider/DateFieldRandomValueProvider.ts
1399
import { IFieldInfo } from "./../../FieldInfo/IFieldInfo"; import { IFieldValueProvider } from "./IFieldValueProvider"; import { injectable, inject } from "inversify"; import { RandomDateProvider } from "../RandomValueProvider/RandomDateProvider"; import { IDateFormatService } from "../../Services/DateFormat/IDateForma...
mit
christiancannata/velaforfun
src/AppBundle/Controller/RegistrationController.php
4577
<?php /* * This file is part of the FOSUserBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AppBundle\Controller; use FOS\UserBundle\FOSUser...
mit
andela-thomas/ci-cd
karma.conf.js
2176
// Karma configuration // Generated on Mon Jan 04 2016 20:42:17 GMT+0300 (EAT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karm...
mit
leonis/itamae-plugin-recipe-awslogs
lib/itamae/plugin/recipe/awslogs.rb
223
module Itamae module Plugin module Recipe module Awslogs def self.template_path(name) Pathname.new(__FILE__).join('../../../../../templates', name).to_s end end end end end
mit
codestruck/octopus
includes/functions/themes.php
1502
<?php /** * @return string The name of the current theme. * @copyright (c) 2012 Codestruck, LLC. * @license http://opensource.org/licenses/mit-license.php/ */ function get_theme() { $resp = Octopus_Response::current(); return $resp ? $resp->getTheme() : ''; } /** ...
mit
ilya3d/itladder
common/models/User2position.php
1887
<?php namespace common\models; use Yii; /** * This is the model class for table "user2position". * * @property integer $user_id * @property integer $position_id * @property integer $date_change * @property integer $status * * @property User $user * @property Position $position */ class User2position extend...
mit
AlexandruGhergut/BattleAI
BattleAIMaven/src/main/java/Networking/Requests/AddPlayer.java
412
package Networking.Requests; import java.io.ObjectOutputStream; public class AddPlayer extends Request { private final String username; public AddPlayer(String username) { super(RequestType.ADD_PLAYER); this.username = username; } @Override public void execute(ObjectOutputStream...
mit
674803226/spring-boot-demo
src/main/java/com/example/demo/Application.java
649
package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; @SpringBootApplication public c...
mit
Azure/azure-sdk-for-java
sdk/costmanagement/azure-resourcemanager-costmanagement/src/main/java/com/azure/resourcemanager/costmanagement/models/QueryGrouping.java
2396
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.costmanagement.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fast...
mit
BlackFrog1/PowerArgs
PowerArgs/HelperTypesInternal/ArgParser.cs
11298
using System.Collections; using System.Collections.Generic; using System.Linq; namespace PowerArgs { internal class ArgParser { // todo - This class was originally very dumb. It parsed the command line arguments without knowledge of the definition. // However, several special syntaxes ...
mit
jakdor/SSCAndroidApp
ssc/app/src/test/java/com/jakdor/sscapp/ExampleUnitTest.java
395
package com.jakdor.sscapp; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addi...
mit
gastonfc/ajax-upload
test/dummy/app/controllers/foo_controller.rb
528
class FooController < ApplicationController attr_accessor :uploaded_file skip_before_filter :verify_authenticity_token def index end def custom_response { success: false, errors: "Sample" } end ajax_upload_receiver :custom_response def model_response foo = Foo.new(image: params['file']) ...
mit
SpiderBeam/TagKit
TagKit.Markup/TagQualifiedName.cs
2437
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TagKit.Markup { public class TagQualifiedName { private string _name; private string _ns; private Int32 _hash; public static readonly TagQualifiedName...
mit
silentmx/customize
backend/src/main/java/com/ztw/admin/basic/security/JwtAuthenticationRequest.java
877
package com.ztw.admin.basic.security; import java.io.Serializable; /** * ${DESCRIPTION} * * @author 马旭 * @created 2017-07-16 11:06. */ public class JwtAuthenticationRequest implements Serializable { private static final long serialVersionUID = -3426623048482978448L; private String username; private ...
mit
dflm25/codeigniteres.club
application/third_party/Sioen/Types/BaseConverter.php
835
<?php class BaseConverter implements ConverterInterface { /** * The options we use for html to markdown * * @var array */ protected $options = array( 'header_style' => 'atx', 'bold_style' => '__', 'italic_style' => '_', ); public function toJson(\DOMElement ...
mit
andalexo/bgv
scripts/bgvExtract/old/bgv_rawdata.py
16911
#!/usr/bin/env python # inspired from velo2-assembly.py # Author: Karol Hennessy - karol.hennessy@cern.ch # Author: Massimiliano Ferro-Luzzi # Author: Mariana Rihl # Last edited: 29 November 2016 from Gaudi.Configuration import * from GaudiPython.Bindings import AppMgr from GaudiPython.Bindings import gbl from Config...
mit
vquaiato/grimorium
db/migrate/20140908052815_add_multiple_choice_display_to_question.rb
152
class AddMultipleChoiceDisplayToQuestion < ActiveRecord::Migration def change add_column :questions, :show_as_multiple_choice, :boolean end end
mit
gameclosure/hookbox
docs/source/builder/builders.py
5964
from sphinx.application import TemplateBridge from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.highlighting import PygmentsBridge from pygments import highlight from pygments.lexer import RegexLexer, bygroups, using from pygments.token import * from pygments.filter import Filter, apply_filters from py...
mit
Topolev/TimeCurrentCharacteristic
src/app/app.module.ts
1179
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import {CoordinatePlaneModule} from "./draw-tripping-characteristics/coordinate-plane.module"; import {NgbModule} from "@ng-bootstrap/ng-bootstrap"; import {Routes,...
mit
socites/beyond
lib/server/http/writer/file.js
1157
module.exports = function (response, resource) { "use strict"; let co = require('co'); let fs = require('co-fs'); co(function *() { try { let plain = ['text/html', 'text/plain', 'application/javascript', 'text/css', 'text/cache-manifest']; if (plain.indexOf(resource.c...
mit
oyvindhermansen/easy-state
docs/src/templates/docs.js
1097
import React, { Fragment, Component } from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import { Container, Marginer } from '../components/Common'; import Footer from '../layouts/Footer'; const MainMarkdown = styled.div` max-width: 40rem; width: 100%; margin: 0 0 auto 250px...
mit
Maartenvm/csWeb
example/services/database/Location.ts
367
class Location { lon: number; lat: number; bouwjaar: number; huisnummer: number; huisnummertoevoeging: string; postcode: string; woonplaatsnaam: string; gemeentenaam: string; provincienaam: string; pandidentificatie: string; gebruiksdoelverblijfsobject: string; oppervlakt...
mit
GJRDiesel/ddwrt_timeclock
manage.py
252
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "timeclock.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
VLN1-Hopur23/VLN1-Hopur23
ui/addstudentdialog.cpp
8104
#include "addstudentdialog.h" #include "ui_addstudentdialog.h" #include <QtGui> #include <QtCore> AddStudentDialog::AddStudentDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AddStudentDialog) { ui->setupUi(this); /*QPixmap pix(":/db_images/Images of scientists/unknown.jpg"); ui->label_s_pictu...
mit
milkskin/portfolio
application/helpers/tree_helper.php
2893
<?php defined('BASEPATH') OR exit('No direct script access allowed'); if ( ! function_exists('structure_to_markup')) { function structure_to_markup($dir_struct = array(), $alter_uri = '/', $is_root = TRUE) { $uri_segment = explode('/', uri_string()); $dir_path = STORAGEPATH.preg_replace('/^\/'.STORAGEURI.'/', ''...
mit
elementlo/Android-TeaWiki
src/com/zlz/activity/MainActivity.java
4824
package com.zlz.activity; import org.w3c.dom.Text; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.support.v4.widget.DrawerLayout; import a...
mit
Ragg-/Delir
packages/unworked-plugins/noise/index.ts
1655
import { EffectPluginBase, Exceptions, PluginPreRenderRequest, RenderRequest, Type, TypeDescriptor, } from '@ragg/delir-core' import * as Tooloud from 'tooloud' export default class NoiseEffectPlugin extends EffectPluginBase { public static async pluginDidLoad() { // ✋( ͡° ͜ʖ ͡°) イ...
mit
kaiprt/DoCheck
app/models/event.rb
125
class Event < ActiveRecord::Base belongs_to :experience has_many :checklists has_many :items, through: :checklists end
mit
HenriquePaulo/projeto
backend/appengine/routes/Products/rest.py
1400
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from gaebusiness.business import CommandExecutionException from gaepermission.decorator import login_not_required from tekton.gae.middleware.json_middleware import JsonResponse from Product_app import Product_facade def index(): cmd ...
mit
RadoChervenkov/Football-League-Management-System
Source/FootballLeagueManagementSystem/Web/FLMS.Web/GlimpseSecurityPolicy.cs
1133
/* // Uncomment this class to provide custom runtime policy for Glimpse using Glimpse.AspNet.Extensions; using Glimpse.Core.Extensibility; namespace FLMS.Web { public class GlimpseSecurityPolicy:IRuntimePolicy { public RuntimePolicy Execute(IRuntimePolicyContext policyContext) { //...
mit
feitian124/xdomain
app/app.js
335
import Ember from 'ember'; import Resolver from 'ember/resolver'; import loadInitializers from 'ember/load-initializers'; Ember.MODEL_FACTORY_INJECTIONS = true; var App = Ember.Application.extend({ modulePrefix: 'xdomain', // TODO: loaded via config Resolver: Resolver }); loadInitializers(App, 'xdomain'); expor...
mit
lucasmichot/Carbon
tests/Localization/EnToTest.php
11446
<?php declare(strict_types=1); /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tests\Localization; /** * @group localization */ c...
mit
atmanager/atmanager
src/ATManager/AtBundle/Controller/AtecnicaController.php
18322
<?php namespace ATManager\AtBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use ATManager\AtBundle\Entity\AtTecnico; use ATManager\AtBundle\Entity\AtHistorico; use ATManager\FrontendBundle\Form\AtBuscadorInicialType; use ATManager\FrontendBund...
mit
MicrosoftLearning/20486-DevelopingASPNETMVCWebApplications
Allfiles/20486C/Mod12/LabFiles/PhotoSharingApplication_12_begin/PhotoSharingApplication/Scripts/SlideShow.js
13864
var percentIncrement; var percentCurrent = 100; function slideSwitch() { percentCurrent += percentIncrement; if (percentCurrent > 100) { percentCurrent = percentIncrement; } $('#slideshow-progress-bar').progressbar({ value: percentCurrent }); var $activeCard = $('#slide-show ...
mit
ipjohnson/Grace
src/Grace/DependencyInjection/Impl/BaseExportLocatorScope.cs
11037
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using Grace.Data; using Grace.Data.Immutable; namespace Grace.DependencyInjection.Impl { /// <summary> /// base locator scope used by InjectionScope and LifetimeScope /// </summary> public ab...
mit
OpnUC/OpnUC-core
config/session.php
6905
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be use...
mit
MasterkeyInformatica/Repository
src/Cache/CacheKeyStorage.php
2158
<?php namespace Masterkey\Repository\Cache; /** * CacheKeyStorage * * @author Matheus Lopes Santos <fale_com_lopez@hotmail.com> * @version 1.0.0 * @since 14/03/2018 * @package Masterkey\Repository\Cache */ class CacheKeyStorage { /** * @var string */ protected $storagePath; /** *...
mit
m11t/paf-quiz
src/webapp/app/question/question.service.ts
4258
import { Injectable } from '@angular/core'; import { Headers, Http, Response, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Question } from './question'; import { UserService } from './../user/user.service'; import { MessageService } from './../misc/message.service...
mit
sharpplayer/learnstones
slideshows/oconnor/js/presentation_wrapper.js
4083
(function ($) { ls.getSelectedIndex = function () { return $presentation.get_current_slide(); } ls.setSelectedIndex = function (index) { $presentation.set_current_slide(index); } ls.next = function () { $presentation.next_slide(); } ls.save = function ...
mit
Mazdallier/Enchiridion
src/main/java/joshie/enchiridion/wiki/gui/scrollbars/ScrollbarPage.java
1229
package joshie.enchiridion.wiki.gui.scrollbars; import joshie.enchiridion.wiki.WikiHelper; public class ScrollbarPage extends ScrollbarAbstract { public static boolean isMoving = false; public static int lastY; public ScrollbarPage() { super(1002); } public int getScrollHeight()...
mit
tsiry95/openshift-strongloop-cartridge
strongloop/node_modules/strong-arc/arc-api/server/boot/explorer.js
781
module.exports = function mountLoopBackExplorer(server) { var explorer; try { explorer = require('loopback-component-explorer'); } catch(err) { console.log( 'Run `npm install loopback-component-explorer` to enable the LoopBack explorer' ); return; } var restApiRoot = server.get('restApi...
mit
cmcampione/thingshub
thingshub-server-authorization/src/validate.js
8994
'use strict'; const process = require('process'); const utils = require('./utils'); const config = require('./config'); const db = require('./db'); const bl = require('./bl'); /** Validate object to attach all functions to */ const validate = Object.create(null); /** Suppress tracing for things like un...
mit
PATRIC3/oxcart
js/tools/smooth-scroll.js
2257
angular.module('smooth-scroll', []) .service('anchorSmoothScroll', function(){ var yOffset = 95; this.scrollTo = function(eID) { // Taken from http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript var startY = currentYPosition(); var stopY = elmYPosition(eID...
mit
rlbaltha/engDept
src/English/PeopleBundle/EnglishPeopleBundle.php
134
<?php namespace English\PeopleBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class EnglishPeopleBundle extends Bundle { }
mit
Danack/FlickrGuzzle
src/Intahwebz/FlickrGuzzle/DTO/PublicEditability.php
296
<?php namespace Intahwebz\FlickrGuzzle\DTO; use Intahwebz\FlickrGuzzle\DataMapper; class PublicEditability { use DataMapper; static protected $dataMap = array( ['canComment','cancomment'],// => int 1 ['canAddMeta','canaddmeta'],// => int 0 ); var $canComment; var $canAddMeta; }
mit
jmvdev/htdocs
admin/email_logs.php
1797
<?php include('header-admin.php'); $isSent = false; $res = $page_protect->get_email_logs(); if(isset($_POST['resend_email'])){ $err_id = $_POST['error_log_id']; $q = 'SELECT * FROM email_logs WHERE id = '. $err_id. ' AND isSent = 0'; $res_query = mysql_query($q); $res_query = mysql_fetch_array($res_q...
mit
MNL82/oakmodelview
Lib/OakXML/XMLRef.cpp
1412
/** * oakmodelview - version 0.1.0 * -------------------------------------------------------- * Copyright (C) 2017, by Mikkel Nøhr Løvgreen (mikkel@oakmodelview.com) * Report bugs and download new versions at http://oakmodelview.com/ * * This library is distributed under the MIT License. * See accompanying file ...
mit
JakubKopys/myshop
resources/views/admin/layouts/nav.blade.php
1568
<div class="option"> <a href="{{URL::action('Admin\MainController@index')}}" class={{ Request::is('admin') ? 'active' : '' }}> <i class="fa fa-home" aria-hidden="true"></i> Home </a> </div> <div class="option"> <a href="{{URL::action('Admin\ProductController@index')}}" class={{ Request::is('*product...
mit
gustavofoa/mpmjadmin
src/main/java/br/com/mpmjadmin/util/TabController.java
713
package br.com.mpmjadmin.util; import javafx.fxml.FXML; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.stage.Stage; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; @Slf4j @Getter @Setter public abstract class TabController { @FXML private TabPane m...
mit
Useurmind/rokuby
lib/rokuby/RokubyRake/rake/version.rb
156
module Rake VERSION = '0.9.2' module Version # :nodoc: all MAJOR, MINOR, BUILD = VERSION.split '.' NUMBERS = [ MAJOR, MINOR, BUILD ] end end
mit
famry/fameCMSv2
themes/vokalplus/config.rb
1270
# Require any additional compass plugins here. add_import_path "bower_components/foundation/scss" # Set this to the root of your project when deployed: http_path = "/" css_dir = "stylesheets" sass_dir = "scss" images_dir = "images" javascripts_dir = "js" # You can select your preferred output style here (can be overr...
mit
ntentan/atiaa
src/exceptions/TableNotFoundException.php
1276
<?php /* * The MIT License * * Copyright 2014-2018 James Ekow Abaka Ainooson * * 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...
mit