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 |
|---|---|---|---|---|---|
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Project\LineOfWorkBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use S... | BanBart/Symfony2-Project-Final | src/Project/LineOfWorkBundle/Admin/CommercialAdmin.php | PHP | mit | 1,235 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | g0v/projectV | mirror/prvCode_07/cityCode_000-areaCode_07-deptCode_035/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_07-deptCode_035-liCode_0650.html | HTML | mit | 5,979 |
<?php
class Productos_model extends CI_Model{
function __construct()
{
parent::__construct();
$this->load->database();
}
function get_destacados($por_pagina,$segmento)
{
$consulta = $this->db->query("SELECT * FROM Producto WHERE Destacado=1 LIMIT $segmento, $por_pag... | dfergar/PHP_practica2 | application/models/Productos_model.php | PHP | mit | 3,985 |
import { describe, it, beforeEach, afterEach } from 'mocha';
import { expect } from 'chai';
import startApp from 'my-app/tests/helpers/start-app';
import { run } from '@ember/runloop';
describe('Acceptance | foo', function () {
let application;
beforeEach(function () {
application = startApp();
});
after... | emberjs/ember.js | node-tests/fixtures/acceptance-test/mocha.js | JavaScript | mit | 526 |
<?php
namespace ShopBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* CustomerRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CustomerRepository extends EntityRepository
{
}
| GitHubTai/MijnPizza | src/ShopBundle/Entity/CustomerRepository.php | PHP | mit | 258 |
# AudioLengthTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**reject_on_error** | **bool** | | [optional]
**checked** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documen... | Telestream/telestream-cloud-python-sdk | telestream_cloud_qc_sdk/docs/AudioLengthTest.md | Markdown | mit | 381 |
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
Created on : 24 juil. 2015, 03:28:54
Author : ubuntu
*/
/* iCheck plugin Flat skin, blue
----------------------------------- */
... | anderson-abc/Superjobs | src/Superjobs/HomeBundle/Resources/public/css/feedback.css | CSS | mit | 3,711 |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Red_Folder.com.Models.Activity
{
public class PluralsightActivity: IActivity
{
[JsonProperty("courses")]
public List<Course> Courses;
}
}
| Red-Folder/red-folder.com | src/Red-Folder.com/Models/Activity/PluralsightActivity.cs | C# | mit | 300 |
<!-- HTML header for doxygen 1.8.6-->
<!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" conte... | lucasbrsa/OpenCV-3.2 | docs/3.2/dd/d17/structcv_1_1cudev_1_1maximum_3_01ushort_01_4-members.html | HTML | mit | 9,582 |
#include "3d/Base.h"
#include "3d/C3DEffect.h"
#include "3d/C3DElementNode.h"
#include "3d/C3DEffectManager.h"
#include "3d/C3DElementNode.h"
namespace cocos3d
{
static C3DEffectManager* __effectManagerInstance = NULL;
C3DEffectManager::C3DEffectManager()
{
}
C3DEffectManager::~C3DEffectManager()
{
__effectManager... | mcodegeeks/OpenKODE-Framework | 01_Develop/libXMCocos2D-v3/Source/3d/C3DEffectManager.cpp | C++ | mit | 5,124 |
package me.protox.archetype.jersey.ext.config_property;
import org.glassfish.hk2.api.InjectionResolver;
import org.glassfish.hk2.api.TypeLiteral;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Singleton;
import javax.ws.rs.core.C... | Feng-Zihao/protox-webapp-archetype | jersey-ext/src/main/java/me/protox/archetype/jersey/ext/config_property/ConfigPropertyFeature.java | Java | mit | 1,271 |
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACCOUNT_SID"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)
number = client.lookups.phone_numbers("+16502530000... | teoreteetik/api-snippets | lookups/lookup-get-cname-example-1/lookup-get-cname-example-1.6.x.py | Python | mit | 417 |
---
layout: post
title: "AngularJS Card Game: A Technical Approach"
date: 2017-06-09 12:00:00 -0400
categories: jekyll update
---
Hey Everyone-
For those checking in on me pretty regularly this blog post might get a little technical. And as you're reading it please don't just check out too soon. Thank you, again, ... | JMStewart00/stewartblog | _posts/2017-06-09-AngularJS-CardGame.md | Markdown | mit | 6,360 |
.info-bar{
width:100%;
height:70px;
margin-bottom:4px;
background-color: #128A7A;
background-image: url("./guessit-logo-min.png");
background-repeat: no-repeat;
background-position:5px center;
}
.info-bar .players-count{
margin:4px;
width:30px;
margin-top:22px;
padding-top:3px;
font-size: 15px;
border-bo... | alexsad/guessit-frontend | src/find-me/info-bar/assets/info-bar.css | CSS | mit | 756 |
/*
For a thread pool of size 2, `fork(fork(fork(x)))` will deadlock, and so on. Another, perhaps more interesting example is `fork(map2(fork(x), fork(y)))`. In this case, the outer task is submitted first and occupies a thread waiting for both `fork(x)` and `fork(y)`. The `fork(x)` and `fork(y)` tasks are submitted a... | lucaviolanti/scala-redbook | answerkey/parallelism/09.answer.scala | Scala | mit | 409 |
import json
from dateutil import parser as datetime_parser
from occam.app import get_redis
from occam.runtime import OCCAM_SERVER_CONFIG_KEY
def get_servers():
redis = get_redis()
servers = json.loads(redis.get(OCCAM_SERVER_CONFIG_KEY))
return servers.items()
def iterate_servers():
redis = get_re... | Yelp/occam | occam/util.py | Python | mit | 715 |
class CreateLaDepartmentWatcherEvents < ActiveRecord::Migration
def change
create_table :la_department_watcher_events do |t|
t.string :type
t.datetime :start_at
t.datetime :end_at
t.text :text_description
t.datetime :notify_sent_at
t.string :notify_sent_to
t.text :agents_... | luigi-sk/la-department-watcher | db/migrate/20140205165029_create_la_department_watcher_events.rb | Ruby | mit | 372 |
# frozen_string_literal: true
module Global
module Backend
# Loads Global configuration from the AWS Systems Manager Parameter Store
# https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
#
# This backend requires the `aws-sdk` or `aws-sdk-ssm` gem, so mak... | railsware/global | lib/global/backend/aws_parameter_store.rb | Ruby | mit | 3,790 |
# encoding: utf-8
module Humanoid #:nodoc:
module Criterion #:nodoc:
module Inclusion
# Adds a criterion to the +Criteria+ that specifies values that must all
# be matched in order to return results. Similar to an "in" clause but the
# underlying conditional logic is an "AND" and not an "OR". Th... | delano/humanoid | lib/humanoid/criterion/inclusion.rb | Ruby | mit | 3,086 |
import {IFilesystem} from './Filesystem';
export type Node = Directory | string;
export type Directory = {[name: string]: Node};
export class MockFilesystem implements IFilesystem {
files: Directory = {};
constructor(files?: Directory) {
this.files = files || {};
}
private get(path: string, ... | sbj42/roze | src/db/MockFilesystem.test.ts | TypeScript | mit | 3,297 |
#ifndef _EASYEDITOR_ONE_FLOAT_VALUE_H_
#define _EASYEDITOR_ONE_FLOAT_VALUE_H_
namespace ee
{
class OneFloatValue
{
public:
virtual ~OneFloatValue() {}
virtual float GetValue() const = 0;
}; // OneFloatValue
}
#endif // _EASYEDITOR_ONE_FLOAT_VALUE_H_ | xzrunner/easyeditor | easyeditor/include/ee/OneFloatValue.h | C | mit | 255 |
#include <progress_bar.hh>
PROGRESS_BAR
::
PROGRESS_BAR(int x, int y, int w, int h, void(*opf)(void), void(*orf)(void), int ea, int ia, int l)
:
WIDGET(x,y,w,h,opf,orf)
{
this->ext_angle = ea;
this->int_angle = ia;
this->level = l;
}
| oktail/borealos | libs/lib_ihm/src/progress_bar.cpp | C++ | mit | 247 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* This module provides a set of common Pipes.
*/
import {AsyncPipe} from './async_p... | matsko/angular | packages/common/src/pipes/index.ts | TypeScript | mit | 1,312 |
{% extends 'layout.html' %}
{% block headerjs %}
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false&libraries=visualization,places"></script>
{% endblock %}
{% block content %}
<input id="pac-input" class="controls" type="text" placeholder="Enter a location">
<div id="map-canvas">
... | GovHack2015TeamBoba/MapAllTheThings | views/map.html | HTML | mit | 469 |
package net.crowmagnumb.database;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class SqlColumn implements SqlComponent {
private final String _name;
private final SqlColumnType _type;
private SqlTable _table;
private f... | SamSix/s6-db | src/main/java/net/crowmagnumb/database/SqlColumn.java | Java | mit | 4,933 |
namespace VocaDb.Model.Domain.Tags {
public interface ITagUsageFactory<T> where T : TagUsage {
T CreateTagUsage(Tag tag);
}
}
| cazzar/VocaDbTagger | VocaDbModel/Domain/Tags/ITagUsageFactory.cs | C# | mit | 137 |
import json
f = open('text-stripped-3.json')
out = open('text-lines.json', 'w')
start_obj = json.load(f)
end_obj = {'data': []}
characters_on_stage = []
currently_speaking = None
last_scene = '1.1'
for i in range(len(start_obj['data'])):
obj = start_obj['data'][i]
if obj['type'] == 'entrance':
if obj['characte... | SyntaxBlitz/syntaxblitz.github.io | mining-lear/process/step6.py | Python | mit | 1,654 |
import removeClass from 'tui-code-snippet/domUtil/removeClass';
import addClass from 'tui-code-snippet/domUtil/addClass';
import { HookCallback } from '@t/editor';
import { Emitter } from '@t/event';
import { ExecCommand, HidePopup, TabInfo } from '@t/ui';
import i18n from '@/i18n/i18n';
import { cls } from '@/utils/do... | nhnent/tui.editor | apps/editor/src/ui/components/toolbar/imagePopupBody.ts | TypeScript | mit | 5,214 |
# Pythagorean Triplet
A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for
which,
```text
a**2 + b**2 = c**2
```
For example,
```text
3**2 + 4**2 = 9 + 16 = 25 = 5**2.
```
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product a * b * c.
## Setup
Go through ... | exercism/xswift | exercises/pythagorean-triplet/README.md | Markdown | mit | 825 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("p04... | stefankon/CShomeworkAndLabIssues | CSharp-List-More-Exercises/p04.UnunionLists/Properties/AssemblyInfo.cs | C# | mit | 1,403 |
let mongoose = require('mongoose')
let userSchema = mongoose.Schema({
// userModel properties here...
local: {
email: {
type: String,
required: true
},
password: {
type: String,
required: true
}
},
facebook: {
id: ... | linghuaj/node-social-auth | app/models/user.js | JavaScript | mit | 1,581 |
package io.github.voidcontext.easyvalidator.rule
package string
import scala.util.Try
import scala.util.matching.Regex
abstract class StringRule(value: String) extends Rule[String](value)
abstract class ThanableStringRule(value: String) extends StringRule(value) {
def than(expected: Int): Try[String]
}
case class ... | voidcontext/scala-easyvalidator | src/main/scala/io/github/voidcontext/easyvalidator/rule/string/StringRule.scala | Scala | mit | 1,085 |
using DragonSpark.Sources.Parameterized;
using System;
namespace DragonSpark.Aspects.Specifications
{
sealed class SpecificationConstructor : AdapterConstructorSource<ISpecification>
{
public static IParameterizedSource<Type, Func<object, ISpecification>> Default { get; } = new SpecificationConstructor().ToCache(... | DevelopersWin/VoteReporter | Framework/DragonSpark/Aspects/Specifications/SpecificationConstructor.cs | C# | mit | 460 |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xF92E0197)]
public class STU_F92E0197 : STUInstance {
[STUField(0xDAE04657)]
public float m_DAE04657;
[STUField(0x96960C7F)]
public float m_96960C7F;
[ST... | kerzyte/OWLib | STULib/Types/Dump/STU_F92E0197.cs | C# | mit | 446 |
package com.sunnyface.popularmovies;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
impor... | kikoseijo/AndroidPopularMovies | app/src/main/java/com/sunnyface/popularmovies/MainActivity.java | Java | mit | 3,149 |
Photos = new orion.collection('photos', {
singularName: 'photo',
pluralName: 'photos',
link: {
title: 'Photos'
},
tabular: {
columns: [
{data: 'title', title: 'Title'},
{data: 'state', title: 'State'},
//ToDo: Thumbnail
orion.attributeColumn('markdown', 'body', 'Content'),
... | JavaScript-NZ/javascript-website-v2 | app/lib/collections/2_photos.js | JavaScript | mit | 1,358 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Rajdeep's Programs Repository</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="... | rajdeep26/MyProgramRepository | ShowPrograms.php | PHP | mit | 7,658 |
import browserSync from 'browser-sync';
import config from '../../config';
import middlewaresStack from '../middlewares_stack';
import apiMiddleware from '../middlewares/api';
import mockMiddleware from '../middlewares/mock';
export default () => {
const port = process.env.PORT;
const middlewares = apiMiddleware()... | fs/backbone-base | gulp/modules/server/development.js | JavaScript | mit | 690 |
---
layout: page
title: Projects
permalink: /projects/
---
# List of my projects
| oferlitver/oferlitver.github.io | projects.md | Markdown | mit | 82 |
/**
* \file NETGeographicLib\PolyPanel.cs
* \brief NETGeographicLib.PolygonArea example
*
* NETGeographicLib is copyright (c) Scott Heiman (2013)
* GeographicLib is Copyright (c) Charles Karney (2010-2012)
* <charles@karney.com> and licensed under the MIT/X11 License.
* For more information, see
* https://geogr... | geographiclib/geographiclib | dotnet/Projections/PolyPanel.cs | C# | mit | 6,048 |
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from .views import UploadBlackListView, DemoView, UdateBlackListView
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^upload-blacklist$', login_required(Upload... | nirvaris/nirvaris-djangofence | djangofence/urls.py | Python | mit | 566 |
'use strict';
module.exports.name = 'cssnano/postcss-minify-font-values';
module.exports.tests = [{
message: 'should unquote font names',
fixture: 'h1{font-family:"Helvetica Neue"}',
expected: 'h1{font-family:Helvetica Neue}'
}, {
message: 'should unquote and join identifiers with a slash, if numeric',... | pieter-lazzaro/cssnano | tests/modules/postcss-font-family.js | JavaScript | mit | 3,673 |
#ifndef WARSPRITES
#define WARSPRITES
#include <avr/pgmspace.h>
extern const unsigned char warsprite_grass1[];
extern const unsigned char warsprite_grass2[];
extern const unsigned char warsprite_trees[];
extern const unsigned char warsprite_dirt[];
extern const unsigned char warsprite_mountain[];
extern const unsigne... | yinkou/WarSprites-Arduboy | warspritesSample/warsprites.h | C | mit | 839 |
#include <cstdlib>
#include <stdexcept>
#include <vector>
#include <algorithm>
#include "Platform.h"
#include "T3000.h"
#include "Position.h"
#include "Selection.h"
using namespace T3000;
void CTstat8HelySystem::MoveForInsertDelete(bool insertion, Sci::Position startChange, Sci::Position length) {
if (insertio... | temcocontrols/T3000_Building_Automation_System | T3000/Tstat8HelpSystem/CTstat8HelpSystem.cpp | C++ | mit | 10,412 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Resume</title>
</head>
<body>
<div class="container">
<h1 class="header" data-bind="text:i18n().russ_full"></h1>
<div class="contact">
<h1><span data-bind="{text: i18n().contact_info}"></span></h1>
<ul id="contactList" data-b... | russjohnson09/rdjgvus | public_html/resume/index.html | HTML | mit | 5,209 |
using AlgorithmsLibrary;
using Xunit;
namespace Tests
{
public class QuickFindTests
{
[Fact]
public void IsConnected_NotConnectedByDefault()
{
var algorithm = new QuickFind(2);
Assert.Equal(0, algorithm.Result[0]);
Assert.Equal(1, algor... | Sufflavus/Algorithms | Source/Tests/QuickFindTests.cs | C# | mit | 1,178 |
function Tw2VectorSequencer()
{
this.name = '';
this.start = 0;
this.value = vec3.create();
this.operator = 0;
this.functions = [];
this._tempValue = vec3.create();
}
Tw2VectorSequencer.prototype.GetLength = function () {
var length = 0;
for (var i = 0; i < this.functions.length; ++i)... | reactormonk/ccpwgl | src/curves/Tw2VectorSequencer.js | JavaScript | mit | 1,489 |
# Weather Forecast Data Generator
Weather forecast data generator is a programe for periodically reading a list of locations and temperature limits in a streaming manner, connects to external on demand data service, gets raw weather data according to the locations, compares temperature limit and creates an alert statu... | ShamiulHaque-repository/WeatherForecastDataGenerator | README.md | Markdown | mit | 4,542 |
# React Native based Meituan Client
## Environment setup
### OS X
``` shell
# 1. install node and system tools
brew install node
brew install watchman
brew install flow
# You may need to get the write permission to the `/usr/local` directory
# or get the ownership of `/usr/local` by `chown`
# 2. install react-nativ... | huajianmao/learning | framework/react-native/meituan/README.md | Markdown | mit | 500 |
using commercetools.Common;
namespace commercetools.Zones
{
/// <summary>
/// Extensions
/// </summary>
public static class Extensions
{
/// <summary>
/// Creates an instance of the ZoneManager.
/// </summary>
/// <returns>ZoneManager</returns>
public static... | commercetools/commercetools-dotnet-sdk | commercetools.NET/Zones/Extensions.cs | C# | mit | 434 |
#region License
// Microsoft Public License (Ms-PL)
//
// This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
//
// 1. Definitions
//
// The terms "reproduce," "reproduction," "derivative works," and "d... | Julien-Mialon/StormXamarin | StormXamarin/Storm.Mvvm/Funq/ServiceKey.cs | C# | mit | 3,739 |
#javascript_koans
This is an automated copy of the work I did on a private repo, originally a project from the [Hack Reactor](http://hackreactor.com) curriculum. For technical reasons, the history has been omitted, and my code is mixed with that of my pair and the exercise's starting point. As such, this repo is rep... | MrBri/javascript_koans | README.md | Markdown | mit | 535 |
// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
#define SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_
#include <memory>
#include <string>
#include "base/macros.h"
#include "content/public/... | the-ress/electron | shell/browser/ui/webui/pdf_viewer_ui.h | C | mit | 1,736 |
Simple Flask Visualization
===========
## Who Am I?
I am a flask application that wants to grow up and become a kick-ass visualizatioin app. For now, I am still trying to figure out how to use d3 to render my data stored in Postgres.
## What can you do?
Take a sneak peak at the issues links, if you have any pointe... | pkafei/Flask-Visualization | README.md | Markdown | mit | 592 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dblib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.1/dblib/8.7.0.html | HTML | mit | 6,997 |
@mixin centerer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.parent {
position: relative;
}
.child {
@include centerer;
}
.searchBar {
background:#fee;
padding:5px;
margin:5p... | rajasegar/compack | component/search-bar/search-bar.css | CSS | mit | 401 |
<!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... | gallenmu/MoonGen | libmoon/deps/tbb/doc/html/a00388.html | HTML | mit | 17,980 |
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var header = require('gulp-header');
var footer = require('gulp-footer');
// Build Task
gulp.task('default', function() {
gulp.src([ "src/... | tyler-johnson/Legends | gulpfile.js | JavaScript | mit | 1,023 |
.MainMenuRoot
{
width: 100%;
height: 95%;
vertical-align: bottom;
flow-children: down;
opacity: 0.0;
}
.MainMenuFX
{
width: 1000px;
height: 360px;
vertical-align: top;
horizontal-align: center;
}
.MainMenuLogo
{
horizontal-align: center;
}
.MainMenuLogoContainer
{
width: 100%;
}
.MainMenuButtonContainer
... | Dingf/Icewrack | content/dota_addons/icewrack/panorama/styles/custom_game/maps/main_menu/iw_main_menu.css | CSS | mit | 415 |
import requests
from flask import session, Blueprint, redirect
from flask import request
from grano import authz
from grano.lib.exc import BadRequest
from grano.lib.serialisation import jsonify
from grano.views.cache import validate_cache
from grano.core import db, url_for, app
from grano.providers import github, twi... | clkao/grano | grano/views/sessions_api.py | Python | mit | 5,328 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>NgRx Docs</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/images/favicons/favicon.ico">
<link rel="icon" type="image/png" href="assets/images/favicons/... | brandonroberts/platform | projects/ngrx.io/src/index.html | HTML | mit | 4,153 |
<!-- steps -->
<el-row>
<el-col :lg="{ span: 20, push: 2 }">
<el-steps :active="active" process-status="process" finish-status="success">
<el-step title="载入音乐文件" description="可以选择上传本地音乐文件或选择网络文件"></el-step>
<el-step title="编辑歌词" description="填写好以下信息跟着音乐编辑歌词"></el-step>
<el-step title="预览歌词并下载" d... | u3u/Lyric | src/components/Step/src/Step.html | HTML | mit | 568 |
package com.dasa.approval.service;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import com.dasa.approva... | GenSolutionRep/Note | src/main/java/com/dasa/approval/service/ApprovalService.java | Java | mit | 3,931 |
var myTimeout = 12000;
Storage.prototype.setObject = function(key, value) {
this.setItem(key, JSON.stringify(value));
};
Storage.prototype.getObject = function(key) {
var value = this.getItem(key);
return value && JSON.parse(value);
};
// Обеспечиваем поддержу XMLHttpRequest`а в IE
var xmlVersions = new Array(
... | schoolphp/library | Core/fw.js | JavaScript | mit | 2,095 |
/*! YAD - v1.0.0 - 82bbc70 - 2014-12-02
* Yahoo Personalised Content Widget
* Copyright (c) 2014 ; Licensed */
(function(){var f=window.document,e={Error:function(a){this.message=a},Bootstrap:function(a,b,c){this.widgetInitialisationStartedAt=this.timeSinceNavigationStart();this.snippetLoadedAt=c?this.timeSinceNav... | izakfilmalter/the-verge | the-verge-article/Google is killing CAPTCHA as we know it The Verge_files/yad.js | JavaScript | mit | 24,061 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... | hatimeria/HatimeriaExtJS | docs/source/LockingView.html | HTML | mit | 5,533 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>EcoTroca - Mude o Mundo e ganhe... | WellingtonJJ/wellingtonjj.github.io | index.html | HTML | mit | 7,411 |
---
layout: post
title: Models and Views and Controllers! Oh My!
description: "Learning from my mistakes..."
category: articles
tags: [web, technical, internet]
---
Today we're going to talk about the purpose of models, controllers, and views and how they work (mainly within the context of Sinatra). So grab a cup of c... | youcatastrophe/youcatastrophe.github.io | _posts/2016-02-18-models-views-controllers.md | Markdown | mit | 4,310 |
#//%LICENSE////////////////////////////////////////////////////////////////
#//
#// Licensed to The Open Group (TOG) under one or more contributor license
#// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
#// this work for additional information regarding copyright ownership.
#// Each contributo... | xenserver/openpegasus | pegasus/src/Pegasus/Client/tests/AssociationClient/Makefile | Makefile | mit | 1,979 |
#!/usr/bin/env bash
python run.py --test &
sleep 1
py.test -v -s --driver PhantomJS tests/selenium
exit_code=$?
pkill -9 -f run.py && exit ${exit_code}
| mijdavis2/starter_weppy | tests/selenium/run.sh | Shell | mit | 156 |
/**
* grunt-webfont: fontforge engine
*
* @requires fontforge, ttfautohint 1.00+ (optional), eotlitetool.py
* @author Artem Sapegin (http://sapegin.me)
*/
module.exports = function(o, allDone) {
'use strict';
var fs = require('fs');
var path = require('path');
var temp = require('temp');
var async = require... | jnaO/grunt-webfont | tasks/engines/fontforge.js | JavaScript | mit | 2,457 |
#include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
TreeNode* mergeTrees(TreeNode* t1, TreeNode* t2) {
if (t1 == NULL) return t2;
if (... | chasingegg/Online_Judge | leetcode/617_Merge-Two-Binary-Trees/MergeTrees.cpp | C++ | mit | 558 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Nels D. "Chip" Pearson (aka CmdrZin)
*
* 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 limitati... | CmdrZin/chips_avr_examples | LCD_16100_CP/LCD_16100_CP/LCD_16100_CP_DevCode/io_led_button.h | C | mit | 1,917 |
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 Christian Zenker <dev@xopn.de>
*
* 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 limitati... | czenker/wichtlr | lib/Czenker/Wichtlr/ConsoleHelper/Reindeer.php | PHP | mit | 6,574 |
<?php
/**
* MarkaCategory form base class.
*
* @method MarkaCategory getObject() Returns the current form's model object
*
* @package sf_sandbox
* @subpackage form
* @author Your name here
* @version SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
*/
abstrac... | verkri/designermarka | lib/form/doctrine/base/BaseMarkaCategoryForm.class.php | PHP | mit | 1,491 |
require 'csv'
@file_name = ARGV[0]
file = File.new('inputs/' + @file_name, 'r')
n_lines = 0
@headers = nil
@contents = {}
@dates = []
def parse_headers(fields)
@headers = fields.slice(1..(fields.length-1))
@headers = @headers.map(&:chomp)
@headers.each do |name|
@contents[name] = []
end
end
def parse_line(fi... | cyrusinnovation/american_ebola_response | data_sources/parse_individual.rb | Ruby | mit | 1,137 |
#!/bin/bash
function logfun(){
local MEX=$@
echo $MEX
logger -s -i -t "randomly" -p user.info "The number is "${MEX}
}
logfun "Got a new random: "$RANDOM
logfun "Got a new random: "$RANDOM
logfun "Got a new random: "$RANDOM
| riccardotommasini/shell-scripting-course | section-eight/exe2.sh | Shell | mit | 231 |
package cmd
import (
"testing"
gomock "github.com/golang/mock/gomock"
"github.com/jamesnetherton/homehub-cli/service"
)
func TestSambaIPCommand(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
hub := NewMockHub(ctrl)
service.SetHub(hub)
service.AuthenticationComplete()
hub.EXPECT().Samb... | jamesnetherton/homehub-cli | cmd/samba_ip_test.go | GO | mit | 420 |
using System.Linq;
using Moq;
using NUnit.Framework;
using Pustota.Maven.Models;
using Pustota.Maven.Validation;
namespace Pustota.Maven.Base.Tests.Validations
{
[TestFixture]
public class RepositoryValidatorTests
{
private RepositoryValidator _validator;
private Mock<IRepositoryValidationFactory... | strotz/pustota | src/Pustota.Maven.Base.Tests/Validations/RepositoryValidatorTests.cs | C# | mit | 2,836 |
The MIT License (MIT)
Copyright (c) 2013 Peter Ahlers
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, pub... | eonlepapillon/parametrizedLocation | LICENSE.md | Markdown | mit | 1,078 |
---
layout: post
title: "Faut-il Sauver Michel Sardou ?"
date: 2015-05-09 10:00:00
authors:
- Dirty Henry
tags:
- laurent chalumeau
- livres
- michel sardou
cover: http://s3-eu-west-1.amazonaws.com/org.deadrooster.blog/sardou-chalumeau.jpg
description: >
Quelles conclusions tirer de la lecture de Kif, de L... | dirtyhenry/blog-deadrooster-org | _posts/2015-05-09-faut-il-sauver-michel-sardou.md | Markdown | mit | 8,012 |
package com.github.programmerr47.chords.representation.adapter.item;
/**
* Simple expansion of interface {@link AdapterItem} for organization of
* "selection mode".
*
* @author Michael Spitsin
* @since 2014-10-08
*/
public abstract class SelectionModeAdapterItem implements AdapterItem {
protected boolean is... | programmerr47/guitar-chords | app/src/main/java/com/github/programmerr47/chords/representation/adapter/item/SelectionModeAdapterItem.java | Java | mit | 1,102 |
package cloudstack
import (
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"testing"
)
func TestAssociateIpAddress(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
responses := map[string]string{
"associateIpAddress": `
{
"associateipaddre... | atsaki/golang-cloudstack-library | AddressApi_test.go | GO | mit | 2,665 |
package br.com.trustsystems.demo.provider;
import br.com.trustsystems.persistence.Persistent;
import br.com.trustsystems.persistence.dao.IUnitOfWork;
import br.com.trustsystems.persistence.provider.jpa.JpaPersistenceProvider;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotat... | trust-wenderson/super-dao-demo | src/main/java/br/com/trustsystems/demo/provider/DatabasePersistenceProvider.java | Java | mit | 1,812 |
module Puppet.Master.Interpreter ( InterpreterWorker
, newInterpreterWorker
, ask
, eval
, typeOf
) where
import Exception
import Control.Monad
import GH... | jd823592/puppeteer | src/Puppet/Master/Interpreter.hs | Haskell | mit | 1,473 |
// <copyright file="Size2D.cs" company="Shkyrockett" >
// Copyright © 2005 - 2020 Shkyrockett. All rights reserved.
// </copyright>
// <author id="shkyrockett">Shkyrockett</author>
// <license>
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// </license>
/... | Shkyrockett/engine | Engine.Geometry/Primitives/Size2D.cs | C# | mit | 46,593 |
/**
* @file KeyboardButtonTest.h
* @brief Contains KeyboardButtonTest fixture
* @author Khalin Yevhen
* @version 0.0.1
* @date 28.09.17
*/
#pragma once
#include <gtest\gtest.h>
#include "..\khalin04\KeyboardButton.h"
#include "..\khalin04\KeyboardButton.cpp"
/**
* @brief Test fixture for using the sam... | kit25a/se-cpp | khalin-yevhen/src/khalin04_tests/KeyboardButtonTest.h | C | mit | 681 |
/*virtual sticky*/
#siteTable {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
}
.stickied {
-webkit-order: -2;
order: -2;
}
.id-t3_3wr79q {
-webkit-order: -1;
order: -1;
}
.id-t3_3wr79q>.rank {
visibili... | GrygrFlzr/Subreddit-Stylesheets | SchoolIdolFestival/main.css | CSS | mit | 57,736 |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ApiPlatform\Core\Tests\Doctrine\Util;
use ApiPlatform\Core\Bridge\Doct... | yoan-durand/test-api-platform | apps/platform/vendor/api-platform/core/tests/Bridge/Doctrine/Util/QueryJoinParserTest.php | PHP | mit | 3,658 |
class Model < ActiveRecord::Base
# Relationships to other Entities
has_many :products
validates_presence_of :name
validates_length_of :name, :within => 2..32
validates_uniqueness_of :name
end
| joshcarr/minimal-commerce | app/models/model.rb | Ruby | mit | 211 |
'use strict';
var fs = require('fs'),
path = require('path');
// path.basename('/foo/bar/baz/asdf/quux.html', '.html') = quux
// path.dirname('/foo/bar/baz/asdf/quux.html') = /foo/bar/baz/asdf/
// path.parse('/home/user/dir/file.txt')
// returns
// {
// root : "/",
// dir : "/ho... | hanakin/rotory | src/model/layers/index.js | JavaScript | mit | 2,763 |
#-------------------------------------------------------------------
#* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
#*
#* This LIBRARY is free software; you can distribute it and/or modify
#* it under the therms of the ALSOC FREE LICENSE as available at
#* http://www.enq.ufrgs.br/alsoc.
#*
#* EMSO Copyrig... | DANA-Laboratory/EMSOModelLibrary.jl | JuliaEMSOModels/water_steam/power_plant/CorrenteVap.jl | Julia | mit | 1,944 |
var NULL = null;
function NOP() {}
function NOT_IMPLEMENTED() { throw new Error("not implemented."); }
function int(x) {
return x|0;
}
function pointer(src, offset, length) {
offset = src.byteOffset + offset * src.BYTES_PER_ELEMENT;
if (typeof length === "number") {
return new src.constructor(src.buffer, o... | mohayonao/libogg.js | include/stdlib.js | JavaScript | mit | 777 |
var _ = require('../../util')
var handlers = {
text: require('./text'),
radio: require('./radio'),
select: require('./select'),
checkbox: require('./checkbox')
}
module.exports = {
priority: 800,
twoWay: true,
handlers: handlers,
/**
* Possible elements:
* <select>
* <textarea>
* <... | goforward01/follow_vue | src/directives/model/index.js | JavaScript | mit | 1,765 |
# Font Awesome 5.0.2
| SkillsFundingAgency/das-commitments | src/SFA.DAS.Commitments.Support.SubSite/assets/fontawesome-5.0.2/README.md | Markdown | mit | 21 |
var classes = [
{
"name": "Hal\\Report\\Html\\Reporter",
"interface": false,
"methods": [
{
"name": "__construct",
"role": null,
"public": true,
"private": false,
"_type": "Hal\\Metric\\FunctionMetric... | phpmetrics/website | report/v2/js/classes.js | JavaScript | mit | 98,017 |
(function() {
'use strict';
var jhiAlert = {
template: '<div class="alerts" ng-cloak="">' +
'<div ng-repeat="alert in $ctrl.alerts" ng-class="[alert.position, {\'toast\': alert.toast}]">' +
'<uib-alert ng-cloak="" type="{{alert.type}}" close="alert.cl... | gcorreageek/noctem | src/main/webapp/app/components/alert/alert.directive.js | JavaScript | mit | 864 |
/**
* From https://github.com/graphitemaster/incbin licenced in public domain
*/
#ifndef INCBIN_HDR
#define INCBIN_HDR
#include <limits.h>
#if defined(__AVX512BW__) || \
defined(__AVX512CD__) || \
defined(__AVX512DQ__) || \
defined(__AVX512ER__) || \
defined(__AVX512PF__) || \
defined(... | EOSIO/eos | unittests/incbin.h | C | mit | 11,177 |
<header class="main-header">
<!-- Logo -->
<a href="" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>G'</b>GO</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Gaspi'</b>GO</span>
</a>
<!-- Header Navbar:... | Theo-Drappier/dip-purple | views/base/header.php | PHP | mit | 1,870 |
/*
* Pallot
*/
.sphere {text-align:center; border:1px solid rgba(0,0,0,0.2); _box-shadow:inset 0 0 10px #fff; border-radius:9999px; _outline:1px solid #f00;}
.sphere p {padding:10px; width:90%; color:#777; _outline:1px solid #000; }
.sphere-top {top:10px;}
.sphere-bottom {bottom:10px;}
.like-icon {width:80px; heigh... | Jaap-/fellmannia-customer-survey | css/balls.css | CSS | mit | 1,862 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.