code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
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,... | dvsa/mot | mot-api/db/dev/populate/static-data/payment_type.sql | SQL | mit | 731 |
angular.module('africaXpress')
.controller('ShopController', function($scope, Item){
$scope.allItems;
$scope.getAll = function () {
Item.getAll().success(function(data){
$scope.allItems = data
});
};
$scope.getAll();
}); | ctodmia/africaexpress | client/controllers/shopcontroller.js | JavaScript | mit | 244 |
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 ... | cemtuver/toastpf | Toastpf/Properties/AssemblyInfo.cs | C# | mit | 2,340 |
//同一个键的值连续存储,使用find产生的迭代器连续删除n次,n是该键对应的值的个数
| hongmi/cpp-primer-4-exercises | chapter-10/10.26.cc | C++ | mit | 114 |
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... | JosephClay/d-js | src/parser.js | JavaScript | mit | 975 |
<<<<<<< HEAD
=======
<header class="hide-on-large-only">
<img src="{{"assets/img/logo-mds-big.png"}}" alt="" style="width: 100%;">
</header>
>>>>>>> 9bc2ead780ab1fa06cd37135345925de18a2a3fd
| moredms/moredms-com | _includes/mobile_banner.html | HTML | mit | 192 |
// 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
| sudorandom/softlayer-go-gen | methods/softlayer_scale_policy_trigger_resourceuse_watch/doc.go | GO | mit | 229 |
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 {
... | CS2103JAN2017-F11-B1/main | src/main/java/seedu/jobs/logic/commands/PathCommand.java | Java | mit | 1,421 |
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... | bastimeyer/livestreamer-twitch-gui | src/test/tests/nwjs/argv.js | JavaScript | mit | 3,497 |
//
// 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... | ruaridht/Spotify-Menubar | AppController.h | C | mit | 3,729 |
<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... | SamDC/MEANMaterial | public/modules/core/views/page1.client.view.html | HTML | mit | 829 |
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 ... | yizhuan/tradingac | src/main/java/mobi/qubits/tradingapp/query/QuoteEntity.java | Java | mit | 1,859 |
#!/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:
... | wei0831/fileorganizer | fileorganizer/fanhaorename.py | Python | mit | 2,156 |
<?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... | mitchellvanw/event-dispatcher | src/Dispatcher.php | PHP | mit | 1,085 |
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... | zezba9000/UnityMathReference | Assets/Math/Point3.cs | C# | mit | 5,085 |
<!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... | tobyclemson/msci-project | vendor/jung-2.0.1/doc/edu/uci/ics/jung/io/graphml/class-use/GraphMLReader2.html | HTML | mit | 6,127 |
<?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
... | Gordondalos/ereport-two | src/AppBundle/Form/OrganizationType.php | PHP | mit | 995 |
using System;
namespace Frog.Orm
{
[AttributeUsage(AttributeTargets.Property)]
public sealed class PrimaryKeyAttribute : Attribute
{
public string Name { get; set; }
}
}
| suneg/frogdotnet | Frog.Orm/PrimaryKeyAttribute.cs | C# | mit | 208 |
import * as React from './dfvReact'
import { dfvFront } from "./dfvFront";
export interface PopWindowPara {
/**
* 是否不覆盖全屏
*/
notCover?: boolean;
/**
* 是否显示红色背景的错误提示框
*/
isErr?: boolean;
/**
* 自动关闭时间,为0则不自动关闭
*/
closeTime?: number;
}
export class dfvWindow {
... | rxaa/dfv | src/public/dfvWindow.tsx | TypeScript | mit | 6,167 |
namespace Teleimot.Web.Api.Mapping
{
using AutoMapper;
public interface IHaveCustomMappings
{
void CreateMappings(IConfiguration configuration);
}
}
| EmilPopov/C-Sharp | Web Services and Cloud/Exam/Teleimot_Exam2015/Web/Teleimot.Web.Api/Mapping/IHaveCustomMappings.cs | C# | mit | 177 |
module.exports.default = undefined;
| webpack/webpack-cli | test/build/config/undefined-default/webpack.config.js | JavaScript | mit | 36 |
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... | yuanzm/simple-date-picker | lib/datepicker_tpl.js | JavaScript | mit | 2,048 |
<?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(... | jarnix/nofussframework | Nf/Db.php | PHP | mit | 3,365 |
/**
* 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... | lakb248/CouplesWallet | controllers/taskController.js | JavaScript | mit | 6,193 |
<?php namespace App\Models\Soundcloud;
use App\Models\SocialModel;
class User extends SocialModel {
protected $table = 'social_soundcloud_users';
}
| rex/prex.io | app/Models/Soundcloud/User.php | PHP | mit | 153 |
(function () {
'use strict';
angular
.module('password', [
'ngMaterial',
/*@@DIST-TEMPLATE-CACHE*/
'ngRoute',
'password.analytics',
'password.title',
'password.nav',
'password.welcome',
'password.forgot',
'password.... | silinternational/idp-pw-ui | app/password.module.js | JavaScript | mit | 513 |
# 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... | forty2/message-socket | README.md | Markdown | mit | 5,016 |
<!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>... | bjwbell/renfish | setup.html | HTML | mit | 522 |
<?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... | ryanvade/laravel-box | src/LaravelBox/Commands/Files/DownloadFileCommand.php | PHP | mit | 1,523 |
/*
* 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... | rib/intel-gpu-tools | tests/prime_self_import.c | C | mit | 10,481 |
<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}}</... | daniberc/TheAnimalShop | src/app/components/updAnimal/upd-animal-template.html | HTML | mit | 1,760 |
pyrdiff
=======
Python rdiff/rsync implementation (for experimental/learning purposes only)
| therealmik/pyrdiff | README.md | Markdown | mit | 93 |
<?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... | koolkode/bpmn | src/Runtime/Behavior/MessageBoundaryEventBehavior.php | PHP | mit | 1,724 |
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... | jakkra/SmartMirror | util/messages.js | JavaScript | mit | 879 |
/* 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... | hexxcointakeover/hexxcoin | src/tor/src/test/test_hs_cell.c | C | mit | 3,900 |
# 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... | pmenke/mucomo | lib/mucomo/model/design_component.rb | Ruby | mit | 733 |
.component {
padding-top: 20px;
}
.currenttotal {
text-align: center;
}
| justone/leftovers | frontend/resources/public/css/app.css | CSS | mit | 77 |
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... | romanvbabenko/ukrainian | lib/ukrainian/backend/simple.rb | Ruby | mit | 678 |
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... | axel-halin/Thesis-JHipster | FML-brute/jhipsters/uaa/src/main/java/io/variability/jhipster/security/SpringSecurityAuditorAware.java | Java | mit | 548 |
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... | UnboundVR/metavrse-server | src/inventory/controller.js | JavaScript | mit | 2,973 |
<?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 {
... | harrydeluxe/mongofilesystem | example/dav/protected/lib/Sabre/DAV/Server.php | PHP | mit | 68,178 |
<?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... | stecman/passnote | app/controllers/ObjectController.php | PHP | mit | 6,009 |
import { globalShortcut } from 'electron'
import playbackControls from '../actions/playbackControls'
function initGlobalShortcuts () {
globalShortcut.register('MediaNextTrack', playbackControls.clickNextSong)
globalShortcut.register('MediaPreviousTrack', playbackControls.clickPreviousSong)
globalShortcut.registe... | ashokfernandez/kiste | src/shortcuts/initGlobalShortcuts.js | JavaScript | mit | 483 |
// 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... | Azure/azure-sdk-for-java | sdk/automation/azure-resourcemanager-automation/src/main/java/com/azure/resourcemanager/automation/models/ConnectionListResult.java | Java | mit | 2,244 |
#
# 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... | Copyleaks/Ruby-Plagiarism-Checker | lib/copyleaks/models/exceptions/auth_exipred_exception.rb | Ruby | mit | 1,349 |
<?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);... | idiomaCoLtd/StreamAPI-wordpress-plugin | stream-api_loading_pages.php | PHP | mit | 15,619 |
/**
* @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... | entegreio/entegre-js | src/widget/fontawesome.js | JavaScript | mit | 1,327 |
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 = ... | ldgit/remote-phpunit | tests/app/commands/test_file_command.py | Python | mit | 7,821 |
# 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... | Keyclic/keyclic-sdk | dart/doc/FeedbackLinksImagesIriTemplate.md | Markdown | mit | 544 |
<?php
/**
* Created by PhpStorm.
* User: Lien
* Date: 27/04/2017
* Time: 16:43
*/
use app\models\ModelEvents;
class ModelEventsTest extends PHPUnit_Framework_TestCase
{
} | Alevyr/WebAdvancedCodeIgniter2017 | application/test/models/ModelEventsTest.php | PHP | mit | 179 |
//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);
... | JFAlexanderS/Contest-Archive | OmegaUp/El-Arreglo-de-Nieves.cpp | C++ | mit | 1,363 |
/*
* Class Name: Constantes
* Name: Daniel Arevalo
* Date: 13/03/2016
* Version: 1.0
*/
package co.edu.uniandes.ecos.tarea4.util;
/**
* Clase utilitaria de constantes
* @... | darevalor/Ecos-Tarea4 | src/main/java/co/edu/uniandes/ecos/tarea4/util/Constantes.java | Java | mit | 600 |
<?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
{
... | paymentwall/module-blesta | src/components/gateways/nonmerchant/brick/brick.php | PHP | mit | 16,335 |
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... | butioy/webIM | butioy-framework-src/org/butioy/framework/security/XSSHttpServletRequestWrapper.java | Java | mit | 2,507 |
#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... | cwi-dis/iotsa | src/iotsaFilesUpload.cpp | C++ | mit | 2,362 |
<?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 ... | webmozart/php-scoper | specs/static-method/namespace-two-parts-with-single-level-use.php | PHP | mit | 2,100 |
<?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... | LetsnetHungary/letsnet | App/_models/Auth_Model.php | PHP | mit | 1,452 |
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 {... | evanphx/gopher-lua | table.go | GO | mit | 4,410 |
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 ==... | kaoscript/kaoscript | test/fixtures/compile/export/export.filter.func.import.js | JavaScript | mit | 914 |
/**
* Node class
* @param {object} value
* @constructor
*/
class Node {
constructor(value) {
this._data = value;
}
value() {
return this._data;
}
}
export default Node;
| jvalen/dstruct-algorithms-examples-js | src/Node/Node.js | JavaScript | mit | 190 |
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 %}
| danott/today-i-learned | _posts/2015-02-02-today-i-learned.md | Markdown | mit | 320 |
<!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">
@... | GrupaZero/platform_l4 | app/views/layouts/sidebarRight.blade.php | PHP | mit | 671 |
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... | felHR85/Pincho-Usb-Mass-Storage-for-Android | src/androidTest/java/com/felhr/usbmassstorageforandroid/bulkonlytests/UsbFacadeTest.java | Java | mit | 4,796 |
<?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... | pomaxa/monolog | tests/Monolog/Handler/MongoDBHandlerTest.php | PHP | mit | 2,373 |
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 ... | singapore/renovate | lib/datasource/gitlab-tags/index.ts | TypeScript | mit | 1,669 |
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... | srs1212/drinkSync | AllDrinks.js | JavaScript | mit | 69,466 |
//
// 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,... | praeclarum/sqlite-net | src/SQLite.cs | C# | mit | 158,773 |
<?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... | iadix/iadixcoin | src/qt/locale/bitcoin_nl.ts | TypeScript | mit | 126,834 |
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... | dohr-michael/storyline-character | src/main/java/org/mdo/storyline/character/config/WebConfigurer.java | Java | mit | 6,892 |
;(function(){
'use strict';
angular.module('TTT')
.config(function($routeProvider){
$routeProvider
.when('/emu',{
templateUrl: 'views/emu.html',
controller: 'emuController',
controllerAs: 'emu'
});
});
})();
| beck410/GJ_Timetravel | app/js/config/emu.config.js | JavaScript | mit | 247 |
/* 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... | pombredanne/metamorphosys-desktop | metamorphosys/META/analysis_tools/FAME/MSL/3.2/Modelica/Resources/C-Sources/ModelicaInternal.c | C | mit | 25,865 |
/*
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... | pangru/church-omania | templates/assan-v2.6/one-page/css/one-page.css | CSS | mit | 25,862 |
<!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... | v8-dox/v8-dox.github.io | 9dc621f/html/classv8_1_1_string_1_1_external_ascii_string_resource-members.html | HTML | mit | 6,327 |
//
// LeftTableViewController.h
// WangYiNEWS
//
// Created by lanou3g on 15/11/22.
// Copyright © 2015年 lanou3g. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LeftTableViewController : UITableViewController
@end
| gavinqqq/WANGYiNEWS | WangYiNEWS/Classes/General/ViewControllers/LeftTableViewController.h | C | mit | 236 |
<?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
... | parsnick/eloquentjs | src/ScriptGenerator/Model/Metadata.php | PHP | mit | 772 |
/*------------------------------------------------------------------
Bootstrap Admin Template by EGrappler.com
------------------------------------------------------------------*/
/*------------------------------------------------------------------
[1. Global]
*/
body {
background: #f9f6f1;
font: 13px/1.7em 'Open... | kozmonaut/pingu-track | css/style.css | CSS | mit | 21,348 |
---
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... | jamelcharouel/jamelcharouel.github.io | _posts/2015-08-03-line-following-robot.markdown | Markdown | mit | 2,318 |
#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&... | Zartar/Skyrim-Behavior-Editor- | src/hkxclasses/behavior/modifiers/hkbgetworldfrommodelmodifier.h | C | mit | 1,324 |
@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... | yilliot/souls | resources/views/admin/ff/payment_index.blade.php | PHP | mit | 3,322 |
(function (window) {
'use strict';
var applicationModuleName = 'mean';
var service = {
applicationModuleName: applicationModuleName,
applicationModuleVendorDependencies: ['ngResource', 'ngAnimate', 'ngMessages', 'ui.router', 'angularFileUpload', 'ngMaterial'],
registerModule: registerModule
};
... | tennosys/autoworks | modules/core/client/app/config.js | JavaScript | mit | 674 |
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*);
... | dswann5/os_assignment_3 | user.h | C | mit | 889 |
/*
* 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... | flavio-fernandes/HT1632-for-Arduino | Arduino/HT1632/font_5x4.h | C | mit | 6,202 |
---
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... | RIT-EVT/RIT-EVT.github.io | sponsors/info/index.html | HTML | mit | 8,389 |
---
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. ... | zhongmingmao/zhongmingmao.github.io | source/_posts/mysql-short-conn-slow-query.md | Markdown | mit | 4,013 |
<?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... | arjenm/symfony | src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolListCommandTest.php | PHP | mit | 1,603 |
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... | bcardiff/active_survey | lib/active_survey/visitor.rb | Ruby | mit | 378 |
(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 ... | pierrec/js-xxhash | node_modules/lmd/test/qunit/modules/test_case/testcase_lmd_loader/testcase_lmd_loader.js | JavaScript | mit | 10,330 |
/*
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... | angelwong/giftedfromus | client/js/main.js | JavaScript | mit | 405 |
// -*- 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... | mcc-petrinets/formulas | spot/tests/core/parity.cc | C++ | mit | 16,809 |
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="... | henrikac/Me-e-ko | Meeko/Meeko/Form1.Designer.cs | C# | mit | 1,734 |
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... | elstamey/elstamey.github.io | hey_boss.md | Markdown | mit | 4,831 |
// 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.... | rohitwaghchaure/frappe | frappe/geo/doctype/address_template/address_template.js | JavaScript | mit | 488 |
---
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... | Raathigesh/Raathigesh.github.io | _posts/2016-07-2-Usefull-React-Components.md | Markdown | mit | 2,156 |
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... | NewEvolution/InsectCatalog | InsectCatalog/App_Start/BundleConfig.cs | C# | mit | 1,459 |
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... | MiraitSystems/enju_trunk_statistics | app/models/ndl_stat_accept.rb | Ruby | mit | 462 |
# 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 ... | pads/arduino-yun-experiment | README.md | Markdown | mit | 1,037 |
<?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($... | dav34111/bookmarks | application/controllers/user.php | PHP | mit | 591 |
<!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, ... | davidbstein/davidbstein.com | docs/resume.html | HTML | mit | 3,831 |
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... | opsb/day-tracker | lib/day/tracker.rb | Ruby | mit | 1,005 |
<!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... | marvmartz/Project_MetaJS | index.html | HTML | mit | 1,271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.