repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
XetaIO/Xetaravel
resources/views/Admin/Role/role/update.blade.php
2797
@extends('layouts.admin') {!! config(['app.title' => 'Update ' . e($role->name)]) !!} @section('content') <div class="col-sm-12 col-md-10 offset-md-2 p-2"> {!! $breadcrumbs->render() !!} </div> <div class="col-sm-12 col-md-10 offset-md-2 pl-2 pr-2 pb-2"> <div class="card card-inverse bg-inverse"> <h5 c...
mit
web-innovate/leave-tracking
frontend/src/resources/value-converters/compute-badge.js
426
import { REQUEST_STATUS } from '~/util/constants' export class ComputeBadgeValueConverter { toView(value) { switch(value) { case REQUEST_STATUS.APPROVED: return 'list-group-item-success'; case REQUEST_STATUS.REJECTED: return 'list-group-item-danger'; ...
mit
ncgreco1440/php-library-bootstrap
lib/controllers/adminpages.contrl.php
3215
<?php use Quasar\Kernel; use Authentication\Authenticate; use Authentication\Validate; use Quasar\Page; use Database\Connection; use Bulletproof\Image; class AdminPages extends Page { private $ID; public function load() { $query = Kernel::getQuery() != "" ? Kernel::getQuery() : false; $thi...
mit
ishandutta2007/test
public/js/ace/lib/ace/mode/behaviour/xml.js
3701
/* vim:ts=4:sts=4:sw=4: * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://...
mit
keen/explorer
src/components/VisualizationPlaceholder/VisualizationPlaceholder.styles.ts
661
import styled from 'styled-components'; import { colors } from '@keen.io/colors'; export const Container = styled.div` position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 360px; `; type TextProps = { color?: string; }; export...
mit
muhbalhester/comex-app
node_modules/async/timeout.js
2058
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = timeout; var _initialParams = require('./internal/initialParams'); var _initialParams2 = _interopRequireDefault(_initialParams); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: o...
mit
dflynn15/flomo
server/config/env/test.js
134
'use strict'; module.exports = { db: 'mongodb://localhost/flomo-test', port: 3001, app: { name: 'Flomo' } };
mit
banchawaipea/sys
application/views/home.php
6116
<main class=bs-docs-masthead id=content tabindex=-1 > <div class=container> <span class="bs-docs-booticon bs-docs-booticon-lg bs-docs-booticon-outline">WD</span> <p class=lead>เราคือมืออาชีพในงานสำรวจ จัดทำแผนที่สำรวจทางดาวเทียม รังวัดสอบเขต</p> <p class=lead> <a href=# class="btn btn-outline-...
mit
tivvit/aerospike-client-mock-python
AerospikeClientMock/__init__.py
114
from .AerospikeClientMock import AerospikeClientMock from .AerospikePredicatesMock import AerospikePredicatesMock
mit
karolikl/OctopusDeployLab
OctopusDeployLab/Controllers/HomeController.cs
500
using System.Web.Mvc; namespace OctopusDeployLab.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public ActionResult About() { ViewBag.Message = "Your application description page."; ...
mit
Mick3y16/LAPR2
src/eventoscientificos/model/state/submissao/SubmissaoRevistaState.java
3939
package eventoscientificos.model.state.submissao; import eventoscientificos.model.Submissao; /** * Representa uma instância de SubmissaoRevistaState através de uma submissão. * * @author G01 */ public class SubmissaoRevistaState implements SubmissaoState { /** * Submissao que adota o estado. */ ...
mit
BD-RBC/workflow
example/views/test/index.php
2093
<?php /* @var $this yii\web\View */ use workflow\models\Arc; use workflow\models\Place; $this->title = 'workflow'; ?> <div class="site-index"> <div id="demo"></div> <nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> <div class="container"> <div class="navbar-header"> <a class=...
mit
Zifah/udacity-fsnd-project-3.1
news_reports.py
2458
# Python 2.7.12 or Higher """ Logs Analysis """ import psycopg2 DBNAME = "news" POPULAR_ARTICLES_QUERY = """ select a.title, count(l.id) as views from articles a left join log l on concat('/article/',a.slug) = l.path group by a.title order by views desc limit 3; """ AUTHOR_RANKING_QUERY = """ select au.name, count(l...
mit
luismiguens/parcelaja
src/AppBundle/Form/TagencyType.php
3605
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Compone...
mit
Catorpilor/LeetCode
842_split_array_into_fibonacci_sequence/seq_test.go
1323
package seq import ( "reflect" "strconv" "strings" "testing" ) func TestSplitIntoFib(t *testing.T) { st := []struct { name string s string exp []int }{ {"len(s)=1", "2", []int{}}, {"len(s)=2", "12", []int{}}, {"valid len(s)=3", "123", []int{1, 2, 3}}, {"invalid with leading 0", "011", []int{0,...
mit
rafamvc/Refinery-Banner
vendor/plugins/news/app/controllers/admin/news_items_controller.rb
112
class Admin::NewsItemsController < Admin::BaseController crudify :news_item, :order => "created_at DESC" end
mit
mekentosj/ling
node_modules/cucumber/spec/cucumber/support_code/step_definition_snippet_builder_syntax_spec.js
4534
require('../../support/spec_helper'); describe('Cucumber.SupportCode.StepDefinitionSnippetBuilderSyntax', function () { var Cucumber = requireLib('cucumber'); var Syntax = Cucumber.SupportCode.StepDefinitionSnippetBuilderSyntax; var stepDefinitionEndComment = 'express the regexp...
mit
CRTX/Curl
src/Curl.php
1674
<?php /* * This file is part of the CRTX\Curl package. * * (c) Christian Ruiz <ruiz.d.christian@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CRTX\Curl; use InvalidArgumentException; /** * @author Christ...
mit
jenidarnold/racquetball
resources/views/pages/players/journal/opponent/create.blade.php
2060
@extends('pages.players.journal.opponent.layout') @section('style') <style type="text/css"> .starrr{ color: green; font-size: 14pt; } .eval-header{ color:white; font-weight: 500; font-size: 14pt; width:450px; padding-left: 10px !important; } .opp-title{ font-weight:700; ...
mit
michaldubiel/BarberApp
src/Barber/Scripts/Controllers/datepickerController.js
1368
(function () { 'use strict'; angular .module('barberApp') .controller('DatepickerController', DatepickerController); DatepickerController.$inject = ['$scope']; function DatepickerController($scope) { $scope.today = function () { $scope.dt = new Date(); };...
mit
HeavyWombat/spruce
vendor/gopkg.in/yaml.v3/scannerc.go
87455
// // Copyright (c) 2011-2019 Canonical Ltd // Copyright (c) 2006-2010 Kirill Simonov // // 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 t...
mit
stues/camel-sensor-routes
transmitter-route/sos/src/main/java/ch/stue/transmitter/sos/converter/FeatureToInsertObservationConverter.java
1527
package ch.stue.transmitter.sos.converter; import javax.xml.bind.JAXBElement; import org.apache.camel.BeanInject; import org.apache.camel.Converter; import org.apache.camel.RuntimeCamelException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ch.stue.domain.Feature; import ch.stue.transmitter.sos.co...
mit
o2ocoin/o2ocoin
src/qt/locale/bitcoin_el_GR.ts
138075
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About O2ocoin</source> <translation>Σχετικά με το O2ocoin</translation>...
mit
zetian/ltl_sampling
src/tests/test_cbba_v2.cpp
9775
#include <stdio.h> #include <vector> #include <ctime> #include <tuple> #include <algorithm> #include <bitset> // opencv #include "trans_sys/cbba_Agent_sampling.h" #include "trans_sys/ltl_formula_sampling.h" #include "sampling/cbba_sampling.h" using namespace acel; int main(int argc, char** argv ) { srand(time(NULL...
mit
cassubian/plutonium
src/qt/bitcoinunits.cpp
4299
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(PUK); unitlist.append(mPU...
mit
cmachler/aws-lambda-ebs-backups
lambda-ebs-backup.py
4357
import boto3 import collections import datetime import base64 import os import json import itertools base64_region = os.environ['aws_regions'] aws_sns_arn = os.getenv('aws_sns_arn', None) def send_to_sns(subject, message): if aws_sns_arn is None: return print "Sending notification to: %s" % aws_sns_a...
mit
simpleci/simpleci
src/frontend/src/AppBundle/System/Utils.php
635
<?php namespace AppBundle\System; use Doctrine\ORM\EntityManagerInterface; class Utils { public static function disableSqlLogger(EntityManagerInterface $em) { $em->getConnection()->getConfiguration()->setSQLLogger(null); } public static function className($classFullName) { $reflecti...
mit
lacroixdesign/rail_pass
spec/dummy/config/application.rb
2558
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require require "rail_pass" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers ...
mit
suits-at/suits_at
components/scripts/velocity.js
44
var velocity = require('velocity-animate');
mit
concord-consortium/rigse
rails/db/migrate/20180424185006_drop_biologica_tables.rb
1140
class DropBiologicaTables < ActiveRecord::Migration[5.1] def remove_table(name) drop_table name.to_sym if ApplicationRecord.connection.tables.include?(name) end def up [ "embeddable_biologica_breed_offsprings", "embeddable_biologica_chromosome_zooms", "embeddable_biologica_chromosome_zo...
mit
voxsoftware/vox-core
submodules/vox-core-moment/dist/locale/ar-ma.js
1664
var $mod$350 = core.VW.Ecma2015.Utils.module(require('../moment')); exports.default = $mod$350.default.defineLocale('ar-ma', { months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_...
mit
boomcms/boom-installer
src/install.php
212
<?php if ($_SERVER['REQUEST_METHOD'] === 'GET') { require __DIR__.'/views/boomcms/installer/install.php'; exit; } elseif ($installer->databaseNeedsInstall()) { $installer->installDatabase($_POST); }
mit
jackdempsey/beet
lib/beet/recipes/rails/clean_files.rb
98
run "rm README" run "rm public/index.html" run "rm public/favicon.ico" run "rm public/robots.txt"
mit
aleh/jpegator
src/Source.cs
4139
// JPEGator .NET Compact Framework Library. // Copyright (C) 2005-2009, Aleh Dzenisiuk. All Rights Reserved. // http://dzenisiuk.info/jpegator/ // // When redistributing JPEGator source code the above copyright notice and // this messages should be left intact. In case changes are made by you in // this source ...
mit
Azure/azure-sdk-for-java
sdk/resourcemanagerhybrid/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/GroupsClient.java
35920
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.authorization.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.az...
mit
shuxinqin/Chloe
src/ChloeDemo/DbFunctions.cs
629
using Chloe.Annotations; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ChloeDemo { public static class DbFunctions { [Chloe.Annotations.DbFunctionAttribute()] public static string MyFunction(int value) { throw new NotImpleme...
mit
slashhuang/slide-swipe
src/index.js
294
/** * Created by slashhuang on 16/5/22. * 主程序入口 */ import Slider from './Slider.js'; import GestureEvent from './GestureEvent.js'; (function(root){ root.Slider=Slider; }(typeof window !== "undefined" ? window : this)); Slider.GestureEvent=GestureEvent; module.exports=Slider;
mit
Microsoft/Telemetry-Client-for-Android
AndroidCll/src/main/java/com/microsoft/cll/android/AbstractSettings.java
6981
package com.microsoft.cll.android; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; impor...
mit
ninianne98/CarrotCakeCMS-MVC
CMSCore/ConfigHelper/CMSConfigHelper.cs
37278
using Carrotware.CMS.Data; using Carrotware.Web.UI.Components; using System; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Web; using System.Web.Caching; using System.Web.UI; using System.Xml.Serialization; ...
mit
bmesuere/uni-test
backend/src/test/java/org/unipept/xml/UniprotHandlerTest.java
1863
package org.unipept.xml; import java.io.IOException; import java.io.InputStream; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.junit.Assert; import org.junit.Test; import org.xml.sax.SAXException; public class Uniprot...
mit
parablesoft/ember-invoicing
tests/integration/components/invoice-summary-test.js
670
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('invoice-summary', 'Integration | Component | invoice summary', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Ha...
mit
lindsayad/programming
cpp/switch_case.cpp
280
#include <iostream> using namespace std; int main () { int a = 10; const int b = 10; const int c = 20; switch ( a ) { case b: cout << a << endl; break; case c: cout << a << endl; break; default: cout << a << endl; break; } return 0; }
mit
camcima/mundipagg-php-client
src/MundiPagg/Entity/Enum/EmailUpdateToBuyerEnum.php
345
<?php namespace MundiPagg\Entity\Enum; /** * Email Update To Buyer Enum * * @author Carlos Cima */ class EmailUpdateToBuyerEnum { /** * Email Update To Buyer Enumerator */ const YES = 'Yes'; const NO = 'No'; const YES_IF_AUTHORIZED = 'YesIfAuthorized'; const YES_IF_NOT_AUTHORIZED = ...
mit
tekulvw/Squid-Plugins
tickets/tickets.py
6513
from discord.ext import commands from cogs.utils.dataIO import fileIO from cogs.utils import checks from __main__ import send_cmd_help import os class Tickets: def __init__(self, bot): self.bot = bot self.tickets = fileIO("data/tickets/tickets.json", "load") self.settings = fileIO("data/ti...
mit
hosim/configue
spec/samples/base_namespace_conf.rb
199
# coding: utf-8 require "configue" class BaseNamespaceConf < Configue::Container config.source_dir "#{File.dirname(__FILE__)}/namespace" config.base_namespace :base config.namespace :test end
mit
int32bit/mistral-actions
tools/install_venv.py
2434
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 OpenStack Foundation # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this...
mit
cyplp/chaton
chaton/models/comment.py
280
import couchdbkit class Comment(couchdbkit.Document): """ """ owner = couchdbkit.StringProperty() userid = couchdbkit.StringProperty() content = couchdbkit.StringProperty() created = couchdbkit.DateTimeProperty() videoid = couchdbkit.StringProperty()
mit
mkpetrov/CSharpAdvanced
StacksAndQueues/Truck Tour/TruckTour.cs
1114
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TruckTour_06 { public class TruckTour { public static void Main(string[] args) { decimal n = decimal.Parse(Console.ReadLine()); decimal startPu...
mit
apps-m/inapphelp-android
InapphelpExample/src/com/example/inapphelpexample/MainActivity.java
2144
package com.example.inapphelpexample; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.app.ActionBarActivity; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import...
mit
linder0209/zhaopai
app/scripts/views/index.js
485
(function (view) { 'use strict'; view.index = {}; //首页 脚本 $.extend(view.index, { init: function () { this.flexSlider(); }, flexSlider: function(){ // The slider being synced must be initialized first $('#flexSlider').flexslider({ slideshowSpeed: 3500, animationSpee...
mit
thoughtbot/cocaine
lib/cocaine.rb
341
# coding: UTF-8 require 'terrapin' Cocaine = Terrapin $stderr.puts [ "===========================================\n", "DEPRECATION: The cocaine gem is deprecated.", "Please upgrade to terrapin.", "See https://github.com/thoughtbot/terrapin/ for further instructions.", "\n====================================...
mit
puaykai/noodles
target/work/plugins/spring-security-core-2.0.0/src/java/grails/plugin/springsecurity/web/access/expression/WebExpressionConfigAttribute.java
1692
/* Copyright 2006-2015 the original author or authors. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
mit
sanjaymandadi/mozu-java
mozu-javaasync-core/src/main/java/com/mozu/api/clients/platform/TenantExtensionsClient.java
5550
/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.clients.platform; import java.util.List; import java.util.ArrayList; import com.mozu.api.MozuClient; import com.mozu.api.Moz...
mit
jnep1009/MapsengerNative
actions/connection.js
1405
import {connect, disconnect} from '../services/pubnub'; import {FriendsService} from '../services'; export const CONNECTING = 'CONNECT'; export const CONNECTED = 'CONNECTED'; export const DISCONNECTED = 'DISCONNECTED'; export const STORE_FRIENDS = 'STORE_FRIENDS'; const friendsService = new FriendsService(); export...
mit
russelljahn/russelljahn.github.io
js/portfolio.js
13333
// JavaScript Document var msnry; var filters; var projects = [ // { // tags: ["programming", "graphics", "opengl", "c++"], // image: "img/gallery/normalsize_raytracer.jpg", // thumb: "img/gallery/thumbsize_raytracer.jpg", // big: "img/gallery/fullsize_raytracer.jpg", // title: "Graphics Programming: \"Ray...
mit
RalfEggert/phpmagazin.cqrs
module/CQRS/src/CQRS/Command/CommandHandler.php
922
<?php /** * Zend Framework 2 - PHP-Magazin CQRS * * Beispiele für ZF2 & CQRS * * @package CQRS * @author Ralf Eggert <r.eggert@travello.de> * @link http://www.ralfeggert.de/ */ /** * namespace definition and usage */ namespace CQRS\Command; use CQRS\Event\EventHandlerInterface; /** * Class Co...
mit
sumory/openresty-china
app/routes/auth.lua
3888
local pairs = pairs local ipairs = ipairs local smatch = string.match local slower = string.lower local ssub = string.sub local slen = string.len local cjson = require("cjson") local utils = require("app.libs.utils") local pwd_secret = require("app.config.config").pwd_secret local lor = require("lor.index") local user_...
mit
Chris35Wills/Chris35Wills.github.io
courses/examples/Intermediate_python/funcs.py
269
def subtract(a,b): c=a-b return c def summate(a,b): c=a+b return c def sumKM(a,b): c=(a+b)/1000. return c def minusX10(a,b): c = (a-b)*10 return c def divAdd5(a,b): c = (a/b)+5 return c if __name__ == "__main__": print("Run from import")
mit
sbis-team/ui-customizer-src
script/src/js/TaskToolbarBtns.js
13255
UICustomizerDefine('TaskToolbarBtns', ['Engine'], function (Engine) { 'use strict'; const PARSE_ERROR = 'TaskToolbarBtns: Ошибка разбора карточки задачи'; const ReplaceDocTypeName = { 'Ошибка в разработку': 'Ошибка', 'Задача в разработку': 'Задача' }; const taskDialogClass = 'edo3-Dialog'; const to...
mit
Yuji-Yamamoto-Recruit/rails-split-demo
app/controllers/stores_controller.rb
149
class StoresController < ApplicationController def index @ab_string = ab_test(:hoge, 'Hello!', 'goodby!') render 'stores/index' end end
mit
s4if/ppdb-mannganjuk
app/views/create.blade.php
4921
@section('content') {{ Form::open() }} <div class="row"> <div class="col-sm-6"> <fieldset> <legend>Biodata Calon PDB</legend> <div class="form-group"> {{ Form::label('no_pendaftaran', 'No. Pendaftaran', array('class' => 'control-label')) }} {{ Form::text(null, $nomor, array('disabled', 'class' => 'form...
mit
gkostadinov/webdocs
public/index.php
4366
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Webdocs - anonymous collaborative document editing</title> <meta name="description" content="Anonymous collaborative document editing"> <meta name="viewport" content="width=device-width, initial-scale=1"> ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/kendo-ui-core/2014.1.416/js/cultures/kendo.culture.tzm.min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:37308d5846d3a4ee1911bee43cd9a1ffd9a064c9264a053cc3c41b0097f18617 size 1769
mit
maur8ino/karma-json2js-preprocessor
lib/json2js.js
641
var util = require('util'); var TEMPLATE = '' + 'window.__json__ = window.__json__ || {};\n' + 'window.__json__[\'%s\'] = function() { return %s; };'; var createJson2JsPreprocessor = function(logger, basePath) { var log = logger.create('preprocessor.json2js'); return function(content, file, done) { log.d...
mit
claudiapattison/claudiapattison.github.io
assets/js/global.js
863
var cp = cp || {}; cp.header = { navigation: function() { var $headerLinks = $('#main-navigation a'); $headerLinks.on('click', function () { event.preventDefault(); $(this).attr('href','#'+$(this).attr('href').split('#')[1]); $('html, body').animate({ ...
mit
godds/soundipic
src/app/pick/pick.spec.js
184
describe( "pick section", function() { beforeEach(module("soundipic.pick")); it("should set up the title", inject(function() { expect(true).toBeTruthy(); })); });
mit
crckyl/pixplus
src/lib/configui.js
19866
_.configui = { editor: { open: function(input, type, lang, opts) { (new this[type](input, lang, opts)).open(_.configui.dom.root, {members: [input], top_left_of: input}); }, register: function(input, type, lang, opts) { var that = this; _.listen(input, 'focus', function(ev) { tha...
mit
theycallmecoach/cagey-engine
cagey-engine/include/cagey/math/MathFwd.hh
5494
//////////////////////////////////////////////////////////////////////////////// // // cagey-engine - Toy 3D Engine // Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com> // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associ...
mit
mathiasbynens/unicode-data
6.2.0/blocks/Tibetan-symbols.js
2878
// All symbols in the Tibetan block as per Unicode v6.2.0: [ '\u0F00', '\u0F01', '\u0F02', '\u0F03', '\u0F04', '\u0F05', '\u0F06', '\u0F07', '\u0F08', '\u0F09', '\u0F0A', '\u0F0B', '\u0F0C', '\u0F0D', '\u0F0E', '\u0F0F', '\u0F10', '\u0F11', '\u0F12', '\u0F13', '\u0F14', '\u0F15', '\u0F16', '\u0F...
mit
ArthurSecretProject/hera
src/app/utils/auth.guard.ts
514
import { Injectable } from '@angular/core'; import { Router, CanActivate } from '@angular/router'; @Injectable() export class AuthGuard implements CanActivate { constructor(private router: Router) { } canActivate() { if (localStorage.getItem('currentUser') && localStorage.getItem('userToken')) { ...
mit
peteratseneca/dps907fall2013
Week_05/oct01securitybasic/oct01securitybasic/App_Start/BundleConfig.cs
2139
using System.Web; using System.Web.Optimization; namespace oct01securitybasic { public class BundleConfig { // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(ne...
mit
maneeshd/PyTutorial
Basics/TutorialCode/Tut_07.py
300
""""""""""""""""""""""""""""" " Created On: 12-Aug-2016 " " Author: Maneesh D " """"""""""""""""""""""""""""" fw = open('sample.txt', 'w', encoding='UTF-8') fw.write("Hello\tWorld\n") fw.write('Scram') fw.close() fr = open('sample.txt', 'r', encoding='UTF-8') print(fr.read()) fr.close()
mit
technicalpickles/vlad-extras
config/hoe.rb
2483
require 'vlad/extras/version' AUTHOR = 'Josh Nichols' # can also be an array of Authors EMAIL = "josh@technicalpickles.com" DESCRIPTION = "Extra tasks for vlad" GEM_NAME = 'vlad-extras' # what ppl will type to install your gem RUBYFORGE_PROJECT = 'vlad-extras' # The unix name for your project HOMEPATH = "http://#{RUB...
mit
ScottHolden/azure-sdk-for-net
src/SDKs/StreamAnalytics/Management.StreamAnalytics/Generated/FunctionsOperations.cs
87844
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. n...
mit
inaturalist/inaturalist
lib/fake_view.rb
2338
# frozen_string_literal: true # # Allows access to rendering, helpers, and URL helpers from anywhere. Works by # including URL helpers and delegating other methods to ApplicationController # class FakeView include Rails.application.routes.url_helpers def initialize( options = {} ) super() return unless op...
mit
cuckata23/wurfl-data
data/philips_x800_ver1.php
1136
<?php return array ( 'id' => 'philips_x800_ver1', 'fallback' => 'generic_mobile', 'capabilities' => array ( 'model_name' => 'X800', 'brand_name' => 'Philips', 'release_date' => '2009_february', 'table_support' => 'true', 'wml_1_1' => 'true', 'wml_1_2' => 'true', 'wml_1_3' => 'true',...
mit
infsci2560sp16/full-stack-web-project-YichaoChen
src/main/resources/public/js/index.js
733
$(function() { $.ajax({ url : "/api/index", success : function(result) { var question = JSON.parse(result); for ( var i = 0; i < question.length; i++) { $("div.question_wrapper").append( '<p class="question" id="' + question[i].id + '">' + question[i].title + '</p>' + '<p class="para" id="' ...
mit
rakelley/jakkedweb
src/cms/routes/Testimonialqueue/views/Index.php
795
<?php /** * @package jakkedweb * @subpackage cms * * All content covered under The MIT License except where included 3rd-party * vendor files are licensed otherwise. * * @license http://opensource.org/licenses/MIT The MIT License * @author Ryan Kelley * @copyright 2011-2015 Jakked Hardcore Gym */ namespace...
mit
yixianle/google-translate
app/index.js
1403
import Koa from 'koa'; import views from 'koa-views'; import convert from 'koa-convert'; import json from 'koa-json'; import bodyParser from 'koa-bodyparser'; import methodOverride from 'koa-methodoverride'; import logger from 'koa-logger'; import path from 'path'; import config from '../config/config'; import router ...
mit
huin/chunkymonkey
gamerules/itemtype_loader_test.go
1635
package gamerules import ( "reflect" "strings" "testing" ) const threeItems = ("{\n" + " \"256\": {\n" + " \"Name\": \"iron shovel\",\n" + " \"MaxStack\": 1,\n" + " \"ToolType\": 1,\n" + " \"ToolUses\": 251\n" + " },\n" + " \"264\": {\n" + " \"Name\": \"diamond\",\n" + " \"MaxStack\":...
mit
Matt343/hexdef
Assets/Scripts/HexGridController.cs
5526
using UnityEngine; using System.Collections.Generic; public class HexGridController : MonoBehaviour { public int width = 10, height = 10; public HexController hex; private HexController[,] grid; private Vector3 hexSize; List<Spawner> spawners = new List<Spawner>(); private Vector2 animationPos = Vector2.ze...
mit
CS2103JAN2017-F12-B4/main
src/main/java/seedu/bulletjournal/commons/exceptions/DuplicateDataException.java
291
package seedu.bulletjournal.commons.exceptions; /** * Signals an error caused by duplicate data where there should be none. */ public abstract class DuplicateDataException extends IllegalValueException { public DuplicateDataException(String message) { super(message); } }
mit
cstoquer/bob64
src/FadeTransition.js
1541
var TILE_WIDTH = settings.spriteSize[0]; var TILE_HEIGHT = settings.spriteSize[1]; //▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ function FadeTransition() { this.transitionCount = 0; this.img = assets.ditherFondu; this.onFinishCallback = null; } module.exports = FadeTransition;...
mit
zzsza/TIL
python/crawling/redis_cache.py
1650
import json import zlib from datetime import datetime, timedelta from redis import StrictRedis class RedisCache: """ RedisCache helps store urls and their responses to Redis Initialization components: client: a Redis client connected to the key-value database for the webcrawlin...
mit
autouser/active-classifier
test/active-classifier_test.rb
321
require 'test_helper' class ActiveClassifierTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, ActiveClassifier end test "class_tree" do assert_equal ({"Item"=>{"Device"=>{"Modem"=>{"DummyModem"=>{"Telsey"=>{}}}}}}), ActiveClassifier.class_tree, "should register class_tree" end end...
mit
zzzzRuby/Skuld
src/backend/Audio/XAudio2/XAudio2Sound.cpp
1029
#include "XAudio2Device.h" #include "XAudio2Sound.h" namespace Skuld { namespace Audio { Handle<XAudio2Sound> XAudio2Sound::Create(HandleRef<XAudio2Device> mDevice, const Codec::WaveInfo& mInfo, HandleRef<IBuffer> mBuffer) { Handle<XAudio2Sound> mRet = NewHandle<XAudio2Sound>(mDevice->GetFactory()); WAVE...
mit
BluestoneEU/TypeGap
LukasKabrt-typelite-076249af9d12/TypeLite/TsModels/TsClass.cs
4450
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Reflection; using TypeLite.Extensions; namespace TypeLite.TsModels { /// <summary> /// Represents a class in the code model. /// </summary> [DebuggerDisplay("TsClass - Name: {Na...
mit
oakmac/autocompletejs
examples/6001.js
409
var onChange = function(newValue, oldValue) { if (newValue.length < oldValue.length) { var msg = 'Are you sure you want to remove this fruit?'; var sure = confirm(msg); if (sure !== true) { return oldValue; } } return newValue; }; var config = { onChange: onChange, lists: { fruits: ...
mit
mossimokim/FSND-P1-Movie-Trailer
fresh_tomatoes.py
5783
import webbrowser import os import re # Styles and scripting for the page pageTitle ='Youtube Viewer' main_page_head = ''' <head> <meta charset="utf-8"> <title>Fresh Tomatoes!</title> <!-- Bootstrap 3 --> <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.cs...
mit
Equilibrium-Games/Flounder
Sources/Files/Json/Json.cpp
7286
#include "Json.hpp" #include "Utils/Enumerate.hpp" #include "Utils/String.hpp" #define ATTRIBUTE_TEXT_SUPPORT 1 namespace acid { void Json::ParseString(Node &node, std::string_view string) { // Tokenizes the string view into small views that are used to build a Node tree. std::vector<Node::Token> tokens; std::si...
mit
reevoo/dbenvy
spec/unit/dbenvy_spec.rb
3173
require 'spec_helper' require 'dbenvy' describe DBEnvy do describe '.to_hash' do context 'with a DATABSE_URL in the environment' do let(:hash) { described_class.to_hash } before do ENV['DATABASE_URL'] = 'mysql2://susan:sekret@127.0.0.1:3306/reevoo_live?encoding=utf8&view_options[awesome_dat...
mit
proxip/kantin
application/views/layouts/main.php
13832
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>kantin (1)</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=n...
mit
RicardoSaracino/sarasoft
src/AppBundle/Repository/TaxTypeRepository.php
1147
<?php /** * @author Ricardo Saracino * @since 2/2/17 */ namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use CommerceGuys\Tax\Repository\TaxTypeRepositoryInterface; /** * Class TaxRateRepository * @package AppBundle\Repository ...
mit
JesseTG/Pants-On-Fire
config/passport.js
14979
const _ = require('lodash'); const passport = require('passport'); const request = require('request'); const LocalStrategy = require('passport-local').Strategy; const FacebookStrategy = require('passport-facebook').Strategy; const TwitterStrategy = require('passport-twitter').Strategy; const GitHubStrategy = require('p...
mit
shairozan/xsnapcourier
resources/views/snapshots/create.blade.php
360
@extends('layouts.master') @section('content') <form method="post" action="/snapshots"> <input type="hidden" name="_token" value="{{csrf_token()}}" /><br /> <label>Volume Name</lable><input type="text" name="volume_name" /><br /> <label>Snapshot Name</label><input type="text" name="snapshot_name" /><br /> <in...
mit
ruskofulanito/CouchInn
application/views/pages/login/reset_password.php
1485
<?php echo form_open(); ?> <div class="panel panel-info"> <div class="panel-heading"> <p>Restablecer contraseña</p> </div> <div class="panel-body"> <div class="input-group<?php if (strlen(form_error('pass')) > 0) echo ' has-error'; ?>"> <?php echo form_label('Contrase...
mit
CallmeTorre/APAIEEE
src/java/users/userNotaResponseCambio.java
491
package users; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class userNotaResponseCambio extends HttpServlet { @Override protected void doGet(HttpSe...
mit
slackapi/node-slack-sdk
packages/web-api/src/response/FilesUploadResponse.ts
11826
/* eslint-disable */ ///////////////////////////////////////////////////////////////////////////////////////// // // // !!! DO NOT EDIT THIS FILE !!! // // ...
mit
chen-android/guoliao
seal/src/main/java/com/GuoGuo/JuicyChat/server/network/download/DownLoadCallback.java
2757
/* ShengDao Android Client, DownLoadCallback Copyright (c) 2014 ShengDao Tech Company Limited */ package com.GuoGuo.JuicyChat.server.network.download; import android.os.Handler; import android.os.Message; public class DownLoadCallback extends Handler { protected static final int START_MESSAGE = 0; prot...
mit
mlfie/mjparse
test/fixtures/orig/105mon.php
6302
<html lang="ja"> <head> <meta http-equiv="content-type" content="text/html; charset=shift_jis"> <meta name="keywords" content="麻雀,役,ルール,点数,点数計算,初心者"> <meta http-equiv="Cache-Control" content="no-cache"> <link href="http://dora12.org/favicon.ico" rel="SHORTCUT ICON"> <title>役と点数当て問題【生きた麻雀講座】</title> </head> <body> <...
mit