repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dvsa/mot | mot-api/db/dev/populate/static-data/payment_type.sql | 731 | INSERT INTO `payment_type` VALUES
(1,'Card','CARD',1,1,0,1,'2016-12-20 11:02:12.000000',1,'2016-12-20 11:02:12.000000',1),
(2,'Direct Debit','DIRECT-DEBIT',1,2,0,1,'2016-12-20 11:02:12.000000',1,'2016-12-20 11:02:12.000000',1),
(3,'Cash','CASH',0,3,0,1,'2016-12-20 11:02:12.000000',1,'2016-12-20 11:02:12.000000',1),
(4,... | mit |
ctodmia/africaexpress | client/controllers/shopcontroller.js | 244 | angular.module('africaXpress')
.controller('ShopController', function($scope, Item){
$scope.allItems;
$scope.getAll = function () {
Item.getAll().success(function(data){
$scope.allItems = data
});
};
$scope.getAll();
}); | mit |
cemtuver/toastpf | Toastpf/Properties/AssemblyInfo.cs | 2340 | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | mit |
hongmi/cpp-primer-4-exercises | chapter-10/10.26.cc | 114 | //同一个键的值连续存储,使用find产生的迭代器连续删除n次,n是该键对应的值的个数
| mit |
JosephClay/d-js | src/parser.js | 975 | var REGEX = require('REGEX'),
MAX_SINGLE_TAG_LENGTH = 30,
create = require('DIV/create');
var parseString = function(parentTagName, htmlStr) {
var parent = create(parentTagName);
parent.innerHTML = htmlStr;
return parent;
};
var parseSingleTag = function(htmlStr) {
if (htmlStr.length > MAX_SIN... | mit |
moredms/moredms-com | _includes/mobile_banner.html | 192 | <<<<<<< HEAD
=======
<header class="hide-on-large-only">
<img src="{{"assets/img/logo-mds-big.png"}}" alt="" style="width: 100%;">
</header>
>>>>>>> 9bc2ead780ab1fa06cd37135345925de18a2a3fd
| mit |
sudorandom/softlayer-go-gen | methods/softlayer_scale_policy_trigger_resourceuse_watch/doc.go | 229 | // softlayer_scale_policy_trigger_resourceuse_watch - This is a specific watch for a resource use
// policy trigger.
package softlayer_scale_policy_trigger_resourceuse_watch
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED
| mit |
CS2103JAN2017-F11-B1/main | src/main/java/seedu/jobs/logic/commands/PathCommand.java | 1421 | package seedu.jobs.logic.commands;
import java.io.IOException;
import com.google.common.eventbus.Subscribe;
import seedu.jobs.commons.core.EventsCenter;
import seedu.jobs.commons.events.storage.SavePathChangedEventException;
/* Change save path
*/
//@@author A0130979U
public class PathCommand extends Command {
... | mit |
bastimeyer/livestreamer-twitch-gui | src/test/tests/nwjs/argv.js | 3497 | import { module, test } from "qunit";
import argvInjector from "inject-loader?nwjs/App!nwjs/argv";
module( "nwjs/argv" );
test( "Default values", assert => {
const argv = argvInjector({
"nwjs/App": {
argv: []
}
});
assert.propEqual(
argv.argv,
{
"_": [],
"tray": false,
"hide": false,
"h... | mit |
ruaridht/Spotify-Menubar | AppController.h | 3729 | //
// AppController.h
// Spotify Menubar
//
// Created by Ruaridh Thomson on 06/06/2010.
// Copyright 2010 Life Up North/Ruaridh Thomson. All rights reserved.
//
// This software is distributed under licence. Use of this software
// implies agreement with all terms and conditions of the accompanying
// software lic... | mit |
SamDC/MEANMaterial | public/modules/core/views/page1.client.view.html | 829 | <section data-ng-controller="Page1Controller">
<md-grid-list
md-cols-sm="1" md-cols-md="2" md-cols-gt-md="6"
md-row-height-gt-md="1:1" md-row-height="2:2"
md-gutter="12px" md-gutter-gt-sm="8px" >
<md-grid-tile class="red" md-rowspan="1" md-colspan="2">
<md-grid-tile-footer>
<h... | mit |
yizhuan/tradingac | src/main/java/mobi/qubits/tradingapp/query/QuoteEntity.java | 1859 | package mobi.qubits.tradingapp.query;
import java.util.Date;
import org.springframework.data.annotation.Id;
public class QuoteEntity {
@Id
private String id;
private String symbol;
private String name;
private float open;
private float prevClose;
private float currentQuote;
private float ... | mit |
wei0831/fileorganizer | fileorganizer/fanhaorename.py | 2156 | #!/usr/bin/python
""" fanhaorename.py
"""
import os
import os.path
import logging
import fileorganizer
from fileorganizer import _helper
from fileorganizer.replacename import _replacename
__author__ = "Jack Chang <wei0831@gmail.com>"
def _tagHelper(tag):
""" TODO
"""
result = ""
for c in tag:
... | mit |
mitchellvanw/event-dispatcher | src/Dispatcher.php | 1085 | <?php namespace Mitch\EventDispatcher;
class Dispatcher
{
private $listeners = [];
public function dispatch($event)
{
if (is_array($event)) {
$this->fireEvents($event);
return;
}
$this->fireEvent($event);
}
public function addListener($name, Listen... | mit |
zezba9000/UnityMathReference | Assets/Math/Point3.cs | 5085 | using System;
using System.Runtime.InteropServices;
namespace UnityMathReference
{
[StructLayout(LayoutKind.Sequential)]
public struct Point3
{
#region Properties
public int x, y, z;
public static readonly Point3 one = new Point3(1);
public static readonly Point3 minusOne = new Point3(-1);
public static... | mit |
tobyclemson/msci-project | vendor/jung-2.0.1/doc/edu/uci/ics/jung/io/graphml/class-use/GraphMLReader2.html | 6127 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_13) on Sun Jan 24 12:52:50 EST 2010 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
Uses of Class edu.uci.ics.ju... | mit |
Gordondalos/ereport-two | src/AppBundle/Form/OrganizationType.php | 995 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class OrganizationType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
... | mit |
suneg/frogdotnet | Frog.Orm/PrimaryKeyAttribute.cs | 208 | using System;
namespace Frog.Orm
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class PrimaryKeyAttribute : Attribute
{
public string Name { get; set; }
}
}
| mit |
rxaa/dfv | src/public/dfvWindow.tsx | 6167 | import * as React from './dfvReact'
import { dfvFront } from "./dfvFront";
export interface PopWindowPara {
/**
* 是否不覆盖全屏
*/
notCover?: boolean;
/**
* 是否显示红色背景的错误提示框
*/
isErr?: boolean;
/**
* 自动关闭时间,为0则不自动关闭
*/
closeTime?: number;
}
export class dfvWindow {
... | mit |
EmilPopov/C-Sharp | Web Services and Cloud/Exam/Teleimot_Exam2015/Web/Teleimot.Web.Api/Mapping/IHaveCustomMappings.cs | 177 | namespace Teleimot.Web.Api.Mapping
{
using AutoMapper;
public interface IHaveCustomMappings
{
void CreateMappings(IConfiguration configuration);
}
}
| mit |
webpack/webpack-cli | test/build/config/undefined-default/webpack.config.js | 36 | module.exports.default = undefined;
| mit |
yuanzm/simple-date-picker | lib/datepicker_tpl.js | 2048 | var tpl = [
'<div id="{uuid}" class="datepicker ui-d-n">',
' <div class="datepicker__mask"></div>',
' <div class="datepicker__main">',
' <div class="datepicker__header">',
' <div class="datepicker__time-toggle"></div>',
' <div class="datepicker__time-selector-list">',
' <div class="datepicker__time-selec... | mit |
jarnix/nofussframework | Nf/Db.php | 3365 | <?php
namespace Nf;
class Db
{
const FETCH_ASSOC = 2;
const FETCH_NUM = 3;
const FETCH_OBJ = 5;
const FETCH_COLUMN = 7;
private static $_connections = array();
public static $_forceStoreConnectionInInstance = null;
public static function factory($config)
{
if (! is_array(... | mit |
lakb248/CouplesWallet | controllers/taskController.js | 6193 | /**
* Created by Administrator on 2015/2/3.
*/
var Task = require('../models/task') ;
//add task
exports.addTask = function(req,res){
var title = req.body.title,
content = req.body.content,
date = req.body.date,
duration = req.body.duration,
done = req.body.done,
frequency... | mit |
rex/prex.io | app/Models/Soundcloud/User.php | 153 | <?php namespace App\Models\Soundcloud;
use App\Models\SocialModel;
class User extends SocialModel {
protected $table = 'social_soundcloud_users';
}
| mit |
silinternational/idp-pw-ui | app/password.module.js | 513 | (function () {
'use strict';
angular
.module('password', [
'ngMaterial',
/*@@DIST-TEMPLATE-CACHE*/
'ngRoute',
'password.analytics',
'password.title',
'password.nav',
'password.welcome',
'password.forgot',
'password.... | mit |
forty2/message-socket | README.md | 5016 | # message-socket
> A TCP client socket with customizable message parsing, automatic restoration of lost connections, outgoing message queueing, and more
[![NPM Version][npm-image]][npm-url]
[](LICENSE.md)
message-socket is a Node.js library that make... | mit |
bjwbell/renfish | setup.html | 522 | <!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta http-equiv="refresh" content="5; url={{.SiteName}}/">
<title>Creating Site - Renfish</title>
{{template "Header" .}}
</head>... | mit |
ryanvade/laravel-box | src/LaravelBox/Commands/Files/DownloadFileCommand.php | 1523 | <?php
namespace LaravelBox\Commands\Files;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ServerException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\TransferException;
use LaravelBox\Factories\ApiResponseFactory;
class DownloadFileCommand extends A... | mit |
rib/intel-gpu-tools | tests/prime_self_import.c | 10481 | /*
* Copyright © 2012-2013 Intel Corporation
*
* 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... | mit |
daniberc/TheAnimalShop | src/app/components/updAnimal/upd-animal-template.html | 1760 | <section>
<div class="div-select-up-animal">
<h1>Selecciona el animal que quieres actualizar:
<select ng-model="updAnimal.animalSelected" ng-change="updAnimal.editAnimal(updAnimal.animalSelected)">
<option ng-repeat="item in updAnimal.allAnimals" ng-value="{{item.id}}">{{item.name}}</... | mit |
therealmik/pyrdiff | README.md | 93 | pyrdiff
=======
Python rdiff/rsync implementation (for experimental/learning purposes only)
| mit |
koolkode/bpmn | src/Runtime/Behavior/MessageBoundaryEventBehavior.php | 1724 | <?php
/*
* This file is part of KoolKode BPMN.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace KoolKode\BPMN\Runtime\Behavior;
use KoolKod... | mit |
jakkra/SmartMirror | util/messages.js | 879 | const greetings = {
morning: ['God morgon!', 'Kaffe?', 'Ha en bra dag!', 'Hoppas du får en bra dag!', 'Sovit gott?'],
afternoon: ['Ganska fin du!', 'Trevlig eftermiddag!', 'Eftermiddags kaffe?', 'Glömde väl inte att fika?'],
evening: ['Trevlig kväll!', 'Ser bra ut!', 'Myskväll?!'],
};
module.exports = {
getMes... | mit |
hexxcointakeover/hexxcoin | src/tor/src/test/test_hs_cell.c | 3900 | /* Copyright (c) 2017, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file test_hs_cell.c
* \brief Test hidden service cell functionality.
*/
#define HS_INTROPOINT_PRIVATE
#define HS_SERVICE_PRIVATE
#include "test.h"
#include "test_helpers.h"
#include "log_test_helpers.h"
#include "c... | mit |
pmenke/mucomo | lib/mucomo/model/design_component.rb | 733 | # class DesignComponent
class Mucomo::Model::DesignComponent
# @todo participant, meta, description
# this include adds the attributes id, name, title to this class.
include Mucomo::Model::HasIdentifiers
attr_accessor :media_type # media_type's range is a restricted vocabulary, see XML schema file
a... | mit |
justone/leftovers | frontend/resources/public/css/app.css | 77 | .component {
padding-top: 20px;
}
.currenttotal {
text-align: center;
}
| mit |
romanvbabenko/ukrainian | lib/ukrainian/backend/simple.rb | 678 | module I18n
module Backend
class Simple
protected
def pluralize(locale, entry, count)
return entry unless entry.is_a?(Hash) and count
key = :zero if count == 0 && entry.has_key?(:zero)
locale_pluralize = lookup(locale, :pluralize)
if locale_pluralize && locale_p... | mit |
axel-halin/Thesis-JHipster | FML-brute/jhipsters/uaa/src/main/java/io/variability/jhipster/security/SpringSecurityAuditorAware.java | 548 | package io.variability.jhipster.security;
import io.variability.jhipster.config.Constants;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
/**
* Implementation of AuditorAware based on Spring Security.
*/
@Component
public class SpringSecurityAuditorAware imple... | mit |
UnboundVR/metavrse-server | src/inventory/controller.js | 2973 | import auth from '../auth';
import clone from 'clone';
import storage from './storage';
async function addBlockOrItem(dbConn, token, codeObj, props, type) {
let user = await auth.getUser(token);
console.log(`Adding new ${type} for user ${user.login}`);
let add;
let newType = {
code: codeObj,
name: pr... | mit |
harrydeluxe/mongofilesystem | example/dav/protected/lib/Sabre/DAV/Server.php | 68178 | <?php
/**
* Main DAV server class
*
* @package Sabre
* @subpackage DAV
* @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
*/
class Sabre_DAV_Server {
... | mit |
stecman/passnote | app/controllers/ObjectController.php | 6009 | <?php
use Stecman\Passnote\Object\ReadableEncryptedContent;
use Stecman\Passnote\Object\ReadableEncryptedContentTrait;
class ObjectController extends ControllerBase
{
public static function getObjectUrl(StoredObject $object)
{
return 'object/' . $object->getUuid();
}
public function indexActi... | mit |
ashokfernandez/kiste | src/shortcuts/initGlobalShortcuts.js | 483 | import { globalShortcut } from 'electron'
import playbackControls from '../actions/playbackControls'
function initGlobalShortcuts () {
globalShortcut.register('MediaNextTrack', playbackControls.clickNextSong)
globalShortcut.register('MediaPreviousTrack', playbackControls.clickPreviousSong)
globalShortcut.registe... | mit |
Azure/azure-sdk-for-java | sdk/automation/azure-resourcemanager-automation/src/main/java/com/azure/resourcemanager/automation/models/ConnectionListResult.java | 2244 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.re... | mit |
Copyleaks/Ruby-Plagiarism-Checker | lib/copyleaks/models/exceptions/auth_exipred_exception.rb | 1349 | #
# The MIT License(MIT)
#
# Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | mit |
idiomaCoLtd/StreamAPI-wordpress-plugin | stream-api_loading_pages.php | 15619 | <?php
/**
* Přidá parametr lang=LANG_CODE za každý odkaz na stránce
*
* @param String $link upravovaný odkaz
* @return String upravený $link
*/
function icom_edit_permalink($link) {
if (icom_is_permalink_struct()) {
return ICOM_ABSPATH . icom_current_lang() . "/" . str_replace(ICOM_ABSPATH, "", $link);... | mit |
entegreio/entegre-js | src/widget/fontawesome.js | 1327 | /**
* @package EntegreJS
* @subpackage Widgets
* @subpackage fontawesome
* @author James Linden <kodekrash@gmail.com>
* @copyright 2016 James Linden
* @license MIT
*/
E.widget.fontawesome = class extends E.factory.node {
constructor( icon ) {
super( 'i' );
this.attr( 'class', `fa fa-${icon.toString().toLo... | mit |
ldgit/remote-phpunit | tests/app/commands/test_file_command.py | 7821 | import unittest
from app.commands.file_command import FileCommand
class TestFileCommand(unittest.TestCase):
def setUp(self):
self.window = WindowSpy()
self.settings = PluginSettingsStub()
self.sublime = SublimeSpy()
self.os_path = OsPathSpy()
# SUT
self.command = ... | mit |
Keyclic/keyclic-sdk | dart/doc/FeedbackLinksImagesIriTemplate.md | 544 | # keyclic_sdk_api.model.FeedbackLinksImagesIriTemplate
## Load the model package
```dart
import 'package:keyclic_sdk_api/api.dart';
```
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mapping** | [**FeedbackLinksImageIriTemplateMapping**](FeedbackLinksIma... | mit |
Alevyr/WebAdvancedCodeIgniter2017 | application/test/models/ModelEventsTest.php | 179 | <?php
/**
* Created by PhpStorm.
* User: Lien
* Date: 27/04/2017
* Time: 16:43
*/
use app\models\ModelEvents;
class ModelEventsTest extends PHPUnit_Framework_TestCase
{
} | mit |
JFAlexanderS/Contest-Archive | OmegaUp/El-Arreglo-de-Nieves.cpp | 1363 | //https://omegaup.com/arena/problem/El-Arreglo-de-Nieves
#include <cstdio>
#include <iostream>
#include <stack>
using namespace std;
struct inf
{
int p, v;
};
int nums, totes, mint, stval;
int nlist[1000005], tol[1000005], tor[1000005], seen[1000005];
inf lastnp[1000005];
int main()
{
scanf("%d", &nums);
... | mit |
darevalor/Ecos-Tarea4 | src/main/java/co/edu/uniandes/ecos/tarea4/util/Constantes.java | 600 | /*
* Class Name: Constantes
* Name: Daniel Arevalo
* Date: 13/03/2016
* Version: 1.0
*/
package co.edu.uniandes.ecos.tarea4.util;
/**
* Clase utilitaria de constantes
* @... | mit |
paymentwall/module-blesta | src/components/gateways/nonmerchant/brick/brick.php | 16335 | <?php
if (!class_exists('Paymentwall_Config'))
include(getcwd() . '/components/gateways/lib/paymentwall-php/lib/paymentwall.php');
/**
* Paymentwall
*
* @copyright Copyright (c) 2015, Paymentwall, Inc.
* @link http://www.paymentwall.com/ Paymentwall
*/
class Brick extends NonmerchantGateway
{
... | mit |
butioy/webIM | butioy-framework-src/org/butioy/framework/security/XSSHttpServletRequestWrapper.java | 2507 | package org.butioy.framework.security;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
/**
* Created with IntelliJ IDEA.
* Author butioy
* Date 2015-09-18 2... | mit |
cwi-dis/iotsa | src/iotsaFilesUpload.cpp | 2362 | #include <Esp.h>
#include "FS.h"
#ifdef ESP32
#include <SPIFFS.h>
#endif
#include "iotsaFilesUpload.h"
#ifdef IOTSA_WITH_WEB
void IotsaFilesUploadMod::setup() {
}
static File _uploadFile;
static bool _uploadOK;
void
IotsaFilesUploadMod::uploadHandler() {
if (needsAuthentication("uploadfiles")) return;
HTTPUpload... | mit |
webmozart/php-scoper | specs/static-method/namespace-two-parts-with-single-level-use.php | 2100 | <?php
declare(strict_types=1);
/*
* This file is part of the humbug/php-scoper package.
*
* Copyright (c) 2017 Théo FIDRY <theo.fidry@gmail.com>,
* Pádraic Brady <padraic.brady@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed ... | mit |
LetsnetHungary/letsnet | App/_models/Auth_Model.php | 1452 | <?php
class Auth_Model extends CoreApp\DataModel {
public function __construct() {
parent::__construct();
$this->PDO = $this->database->PDOConnection(CoreApp\AppConfig::getData("database=>autchenticationDB"));
$this->database->PDOClose();
}
public function get... | mit |
evanphx/gopher-lua | table.go | 4410 | package lua
type lValueArraySorter struct {
L *LState
Fn *LFunction
Values []LValue
}
func (lv lValueArraySorter) Len() int {
return len(lv.Values)
}
func (lv lValueArraySorter) Swap(i, j int) {
lv.Values[i], lv.Values[j] = lv.Values[j], lv.Values[i]
}
func (lv lValueArraySorter) Less(i, j int) bool {... | mit |
kaoscript/kaoscript | test/fixtures/compile/export/export.filter.func.import.js | 914 | require("kaoscript/register");
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var Shape = require("../export/export.class.default.ks")().Shape;
function foobar() {
if(arguments.length === 1 && Type.isString(arguments[0])) {
let __ks_i = -1;
let x = arguments[++__ks_i];
if(x ==... | mit |
jvalen/dstruct-algorithms-examples-js | src/Node/Node.js | 190 | /**
* Node class
* @param {object} value
* @constructor
*/
class Node {
constructor(value) {
this._data = value;
}
value() {
return this._data;
}
}
export default Node;
| mit |
danott/today-i-learned | _posts/2015-02-02-today-i-learned.md | 320 | There is no magic for Rails' `enum` in fixtures. If you want to use the string value (which is the entire point of using the enum), you need to ERB it up. Something like
{% highlight yaml %}
michael:
name: Michael Bluth
occupation: <%= Person.occupations[:actor] %> # because 'actor' won't do it
{% endhighlight %}
| mit |
GrupaZero/platform_l4 | app/views/layouts/sidebarRight.blade.php | 671 | <!DOCTYPE html>
<html lang="en">
<head>
@include('includes.head')
</head>
<body>
<div id="wrapper">
<header>
@include('includes.navbar')
</header>
<div class="container">
<div class="row">
<!-- main content -->
<div id="content" class="col-md-9">
@... | mit |
felHR85/Pincho-Usb-Mass-Storage-for-Android | src/androidTest/java/com/felhr/usbmassstorageforandroid/bulkonlytests/UsbFacadeTest.java | 4796 | package com.felhr.usbmassstorageforandroid.bulkonlytests;
import android.hardware.usb.UsbConstants;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbInterface;
import com.felhr.usbmassstorageforandroid.bulkonly.UsbFacade;
import com.felhr.usbmassst... | mit |
pomaxa/monolog | tests/Monolog/Handler/MongoDBHandlerTest.php | 2373 | <?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
use MongoDB\Driver\Manager;
use... | mit |
singapore/renovate | lib/datasource/gitlab-tags/index.ts | 1669 | import URL from 'url';
import * as packageCache from '../../util/cache/package';
import { GitlabHttp } from '../../util/http/gitlab';
import type { GetReleasesConfig, ReleaseResult } from '../types';
import type { GitlabTag } from './types';
const gitlabApi = new GitlabHttp();
export const id = 'gitlab-tags';
export ... | mit |
srs1212/drinkSync | AllDrinks.js | 69466 | var AllDrinks =
[{"drinkName": "Alexander",
"recipe": "Shake all ingredients with ice and strain contents into a cocktail glass. Sprinkle nutmeg on top and serve.",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Gin_Alexander_%284371721753%29.jpg/220px-Gin_Alexander_%284371721753%29.jpg... | mit |
praeclarum/sqlite-net | src/SQLite.cs | 158773 | //
// Copyright (c) 2009-2021 Krueger Systems, Inc.
//
// 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,... | mit |
iadix/iadixcoin | src/qt/locale/bitcoin_nl.ts | 126834 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About IadixCoin</source>
<translation>Over IadixCoin</translation>
</message>
<message>
<loca... | mit |
dohr-michael/storyline-character | src/main/java/org/mdo/storyline/character/config/WebConfigurer.java | 6892 | package org.mdo.storyline.character.config;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
import org.mdo.storyline.character.web.filter.CachingHttpHeadersFilter;
import org.mdo.storyline.character.web.filter.Stat... | mit |
beck410/GJ_Timetravel | app/js/config/emu.config.js | 247 | ;(function(){
'use strict';
angular.module('TTT')
.config(function($routeProvider){
$routeProvider
.when('/emu',{
templateUrl: 'views/emu.html',
controller: 'emuController',
controllerAs: 'emu'
});
});
})();
| mit |
pombredanne/metamorphosys-desktop | metamorphosys/META/analysis_tools/FAME/MSL/3.2/Modelica/Resources/C-Sources/ModelicaInternal.c | 25865 | /* External utility functions for Modelica packages
Modelica_Utilities.Internal
The functions are mostly non-portable. The following #define's are used
to define the system calls of the operating system
_WIN32 : System calls of Windows'95, Windows'NT
(Note, that these sy... | mit |
pangru/church-omania | templates/assan-v2.6/one-page/css/one-page.css | 25862 | /*
Created on : 3 Sep, 2015, 6:57:21 AM
Author : Design_mylife
Template : Assan - Multipurpose template
Version : v1.9
*/
/**google fonts **/
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:400,700);
@imp... | mit |
v8-dox/v8-dox.github.io | 9dc621f/html/classv8_1_1_string_1_1_external_ascii_string_resource-members.html | 6327 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | mit |
gavinqqq/WANGYiNEWS | WangYiNEWS/Classes/General/ViewControllers/LeftTableViewController.h | 236 | //
// LeftTableViewController.h
// WangYiNEWS
//
// Created by lanou3g on 15/11/22.
// Copyright © 2015年 lanou3g. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LeftTableViewController : UITableViewController
@end
| mit |
parsnick/eloquentjs | src/ScriptGenerator/Model/Metadata.php | 772 | <?php
namespace EloquentJs\ScriptGenerator\Model;
class Metadata
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $endpoint;
/**
* @var array
*/
public $dates;
/**
* @var array
*/
public $scopes;
/**
* @var array
... | mit |
kozmonaut/pingu-track | css/style.css | 21348 | /*------------------------------------------------------------------
Bootstrap Admin Template by EGrappler.com
------------------------------------------------------------------*/
/*------------------------------------------------------------------
[1. Global]
*/
body {
background: #f9f6f1;
font: 13px/1.7em 'Open... | mit |
jamelcharouel/jamelcharouel.github.io | _posts/2015-08-03-line-following-robot.markdown | 2318 | ---
title: "Line-Following Robot"
---
Here's goes my first "projects" post. Last semester I took a class called "Intro To Electromechanical Systems" (shout out to my professor Greg Lewin), a fun class about combining software and hardware to make some cool things. As you've probably guessed, one of the projects we h... | mit |
Zartar/Skyrim-Behavior-Editor- | src/hkxclasses/behavior/modifiers/hkbgetworldfrommodelmodifier.h | 1324 | #ifndef HKBGETWORLDFROMMODELMODIFIER_H
#define HKBGETWORLDFROMMODELMODIFIER_H
#include "hkbmodifier.h"
class hkbGetWorldFromModelModifier final: public hkbModifier
{
friend class GetWorldFromModelModifierUI;
public:
hkbGetWorldFromModelModifier(HkxFile *parent, long ref = 0);
hkbGetWorldFromModelModifier&... | mit |
yilliot/souls | resources/views/admin/ff/payment_index.blade.php | 3322 | @extends('admin.layout')
@section('title')
Payment
@endsection
@section('content')
<a href="/admin/ff/payment/create/{{$pledge->id}}" class="ui teal button right floated">New Payment</a>
<h1 class="ui header">Payments</h1>
<div class="ui horizontal divider">{{$pledge->name}}'s <br> Summary </div>
<table class="ui un... | mit |
tennosys/autoworks | modules/core/client/app/config.js | 674 | (function (window) {
'use strict';
var applicationModuleName = 'mean';
var service = {
applicationModuleName: applicationModuleName,
applicationModuleVendorDependencies: ['ngResource', 'ngAnimate', 'ngMessages', 'ui.router', 'angularFileUpload', 'ngMaterial'],
registerModule: registerModule
};
... | mit |
dswann5/os_assignment_3 | user.h | 889 | struct stat;
struct rtcdate;
// system calls
int fork(void);
int exit(void) __attribute__((noreturn));
int wait(void);
int pipe(int*);
int write(int, void*, int);
int read(int, void*, int);
int close(int);
int kill(int);
int exec(char*, char**);
int open(char*, int);
int mknod(char*, short, short);
int unlink(char*);
... | mit |
flavio-fernandes/HT1632-for-Arduino | Arduino/HT1632/font_5x4.h | 6202 | /*
* 5-high FONT FOR RENDERING TO THE LED SCREEN.
* Includes kerning support
* Gaurav Manek, 2011
*/
#ifndef __FONT5X4_H
#define __FONT5X4_H
#include <avr/pgmspace.h>
#define FONT_5X4_HEIGHT 5
#define FONT_5X4_STEP_GLYPH 10
// Number of bytes per glyph
const char FONT_5X4 [] PROGMEM = {
0b0000, 0b0000, 0b... | mit |
RIT-EVT/RIT-EVT.github.io | sponsors/info/index.html | 8389 | ---
layout: default
---
<section id="content-region-3" class="padding-40 page-tree-bg">
<div class="container">
<h3 class="page-tree-text">
Becoming a Sponsor
</h3>
</div>
</section>
<div class="space-70"></div>
<div class="container">
<div class="row">
<div class="col-m... | mit |
zhongmingmao/zhongmingmao.github.io | source/_posts/mysql-short-conn-slow-query.md | 4013 | ---
title: MySQL -- 短连接 + 慢查询
date: 2019-02-20 16:11:17
categories:
- Storage
- MySQL
tags:
- Storage
- MySQL
---
## 短连接
1. 短连接模式:连接到数据库后,执行**很少的SQL**后就断开,下次需要的时候再重连
2. 在**业务高峰**期,会出现连接数突然暴涨的情况
- MySQL建立连接的**成本非常昂贵**
- 成本:TCP/IP三次握手 + 登录权限判断 + 获取连接的数据读写权限
<!-- more -->
### max_connections
1. ... | mit |
arjenm/symfony | src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolListCommandTest.php | 1603 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
use Symfony\Bundle\Fra... | mit |
bcardiff/active_survey | lib/active_survey/visitor.rb | 378 | module ActiveSurvey
class Visitor
def visit_items(items)
res = items.map { |item| item.accept(self) }
after_visit_items(items, res)
end
def after_visit_items(items, result)
result
end
def visit_question(item)
end
def visit_section(item)
self.visit_items item.item... | mit |
pierrec/js-xxhash | node_modules/lmd/test/qunit/modules/test_case/testcase_lmd_loader/testcase_lmd_loader.js | 10330 | (function (require) {
var test = require('test'),
asyncTest = require('asyncTest'),
start = require('start'),
module = require('module'),
ok = require('ok'),
expect = require('expect'),
$ = require('$'),
document = require('document'),
raises ... | mit |
angelwong/giftedfromus | client/js/main.js | 405 | /*
The main entry point for the client side of the app
*/
// Create the main app object
this.App = {};
// Create the needed collections on the client side
this.Surprises = new Meteor.Collection("surprises");
// Subscribe to the publishes in server/collections
Meteor.subscribe('surprises');
// Start the app
M... | mit |
mcc-petrinets/formulas | spot/tests/core/parity.cc | 16809 | // -*- coding: utf-8 -*-
// Copyright (C) 2016 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free... | mit |
henrikac/Me-e-ko | Meeko/Meeko/Form1.Designer.cs | 1734 | namespace Meeko
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="... | mit |
elstamey/elstamey.github.io | hey_boss.md | 4831 | title: Hey Boss, Event Sourcing Can Fix That!
author:
name: Emily Stamey
twitter: elstamey
url: http://elstamey.com
theme: elstamey/reveal-cleaver-theme
style: basic-style.css
output: hey_boss.html
controls: true
--
# Event Sourcing Can Fix That!
--

--

--
# Basi... | mit |
rohitwaghchaure/frappe | frappe/geo/doctype/address_template/address_template.js | 488 | // Copyright (c) 2016, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Address Template', {
refresh: function(frm) {
if(frm.is_new() && !frm.doc.template) {
// set default template via js so that it is translated
frappe.call({
method: 'frappe.geo.... | mit |
Raathigesh/Raathigesh.github.io | _posts/2016-07-2-Usefull-React-Components.md | 2156 | ---
title: "Packages for Better React Experience"
categories:
- Web
tags:
- React
---
Here are some components and utils that will make your React developement even more enjoyable.
# React Components
## [React Date Picker](https://github.com/Hacker0x01/react-datepicker)
Feature rich, configurable date picker fo... | mit |
NewEvolution/InsectCatalog | InsectCatalog/App_Start/BundleConfig.cs | 1459 | using System.Web;
using System.Web.Optimization;
namespace InsectCatalog
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | mit |
MiraitSystems/enju_trunk_statistics | app/models/ndl_stat_accept.rb | 462 | class NdlStatAccept < ActiveRecord::Base
default_scope :order => :region
belongs_to :ndl_statistic
attr_accessible :donation, :production, :purchase, :region, :item_type
item_type_list = ['book', 'magazine', 'other_micro', 'other_av', 'other_file']
region_list = ['domestic', 'foreign', 'none']
validat... | mit |
pads/arduino-yun-experiment | README.md | 1037 | # Arduino Yun Experiment
This project allows temperature and light sensor readings to be output as a web app.
## Board Setup

## Sketch Setup
Upload `api/api.ino` to the Yun. You should see `Waiting...` on the first ... | mit |
dav34111/bookmarks | application/controllers/user.php | 591 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
public function __construct(){
parent:: __construct();
$this->load->model('engine_model');
}
public function add_url(){
$url = $_POST['url'];
$id = $_POST['id'];
$this->engine_model->add_user_url($... | mit |
davidbstein/davidbstein.com | docs/resume.html | 3831 | <!DOCTYPE html>
<html lang="en">
<!--
Copyright 2021 David Stein
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, ... | mit |
opsb/day-tracker | lib/day/tracker.rb | 1005 | require "day/tracker/version"
module Day
module Tracker
class Cli < Thor
FILE_PATH = File.expand_path("~/.day-tracker")
def initialize(*args)
super
FileUtils.touch FILE_PATH
end
desc "list", "list recorded days"
def list
puts File.read(FILE_PATH)
end
desc "add PROJECT_NAM... | mit |
marvmartz/Project_MetaJS | index.html | 1271 | <!DOCTYPE html>
<html>
<head>
<title>metamachine v.0.03</title>
<meta charset="UTF-8">
<link href="style.css" type="text/css" rel="stylesheet">
<!--- <script type="text/javascript" src="main.js" async></script> -->
<script src="http://code.jquery.com/jquery-2.1.4.js"></script>
<script t... | mit |