code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#!/usr/bin/python2.7
#-*- coding: utf-8 -*-
import numpy as np
import gl
def testkf(input1,Q,R):
print gl.X_i_1
print gl.P_i_1
#rang(1,N) do not contain N
K_i = gl.P_i_1 / (gl.P_i_1 + R)
X_i = gl.X_i_1 + K_i * (input1 - gl.X_i_1)
P_i = gl.P_i_1 - K_i * gl.P_i_1 + Q
#print (X[i])
#Upd... | zharuosi/2017 | pythonNRC/modules/testkf.py | Python | mit | 379 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | BetterExamples/PipeMongoShell | PipeMongoShell/Properties/Resources.Designer.cs | C# | mit | 2,786 |
use {SqliteResult, SqliteConnection};
pub use SqliteTransactionBehavior::{
SqliteTransactionDeferred,
SqliteTransactionImmediate,
SqliteTransactionExclusive};
/// Options for transaction behavior. See [BEGIN
/// TRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.
#[derive(Copy)]
pub enu... | huonw/rusqlite | src/transaction.rs | Rust | mit | 8,307 |
using System;
using System.Collections.Generic;
using System.Text;
namespace Nucleo.Web.EventsManagement
{
public class ProviderErrorEvent : WebMonitoringEventBase
{
private const string EVENT_MESSAGE = "An error occurred within the provider '{0}', with an exception of: {1}";
private const int EVENT_CODE = 10010... | brianmains/Nucleo.NET | src/Nucleo.Web/Web/EventsManagement/ProviderErrorEvent.cs | C# | mit | 550 |
version https://git-lfs.github.com/spec/v1
oid sha256:e63ec89c8bce1f67a79c0a8042e7ad0f2197f9bf615c88fd1ce36266c4050e1b
size 5126
| yogeshsaroya/new-cdnjs | ajax/libs/backbone.layoutmanager/0.7.0/backbone.layoutmanager.min.js | JavaScript | mit | 129 |
<?php
use Illuminate\Database\Seeder;
use App\System\System;
/**
* @author Setiadi, 20 Agustus 2017
*/
class RoleUserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('t_role_user')->delete();
DB::table('t_... | setiadi01/Office-Attendance-System-Rest | database/seeds/RoleUserTableSeeder.php | PHP | mit | 917 |
<html><body>
<h4>Windows 10 x64 (18362.116)</h4><br>
<h2>_HMAP_ENTRY</h2>
<font face="arial"> +0x000 BlockOffset : Uint8B<br>
+0x008 PermanentBinAddress : Uint8B<br>
+0x010 MemAlloc : Uint4B<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18362.116)/_HMAP_ENTRY.html | HTML | mit | 237 |
class AndroidController < ApplicationController
def index
end
def create
app = RailsPushNotifications::GCMApp.new
app.gcm_key = params[:gcm_api_key]
app.save
if app.save
notif = app.notifications.build(
destinations: [params[:destination]],
data: { text: params[:message] }
... | calonso/rails_push_notifications_test | app/controllers/android_controller.rb | Ruby | mit | 776 |
module tsp {
export interface IDOMBinder {
attributes?: { [name: string]: string; };
contentEditable?: bool;
dynamicAttributes?: { [name: string]: { (el: IElX): string; }; };
dynamicClasses?: { [name: string]: { (el: IElX): bool; }; };
dynamicStyles?: { [name: string]: { (e... | bahrus/teaspoon | TypeStrictTests/Interface_ElX.ts | TypeScript | mit | 2,489 |
package ee.tuleva.onboarding.user.exception;
public class UserAlreadyAMemberException extends RuntimeException {
public UserAlreadyAMemberException(String message) {
super(message);
}
}
| TulevaEE/onboarding-service | src/main/java/ee/tuleva/onboarding/user/exception/UserAlreadyAMemberException.java | Java | mit | 196 |
namespace ImageGallery.Data.Common.Models
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public abstract class BaseModel<TKey> : IAuditInfo, IDeletableEntity
{
public DateTime CreatedOn { get; set; }
public DateTime... | atanas-georgiev/ImageGallery | src/ImageGallery.Data.Common/Models/BaseModel{TKey}.cs | C# | mit | 581 |
package org.psliwa.idea.composerJson.util
import java.net.{HttpURLConnection, URL}
import scala.io.{Codec, Source}
import scala.util.Try
object IO {
def loadUrl(uri: String): Try[String] = {
Try {
val connection = new URL(uri).openConnection() match {
case c: HttpURLConnection =>
c.setC... | psliwa/idea-composer-plugin | src/main/scala/org/psliwa/idea/composerJson/util/IO.scala | Scala | mit | 746 |
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<!--overview start-->
<div class="row">
<div class="col-lg-12">
<h3 class="page-header"><i class="fa fa-laptop"></i> 한글제품 현재사용내역</h3>
</div>
</div>
<br/>
<... | jangmac/CodeIgniter | application/views/list/computational/using_soft/use_hangul.php | PHP | mit | 1,961 |
//-----------------------------------------
// Grunt configuration
//-----------------------------------------
module.exports = function(grunt) {
// Init config
grunt.initConfig({
// environment constant
ngconstant: {
options: {
space: ' ',
name: '... | andreavitali/instalurker | gruntfile.js | JavaScript | mit | 2,712 |
<ul class="usersMedium clearit" id="users" odd="1">
<li ng-repeat="friend in friends" ng-class="{
first: $first,
odd: ($index + 1) % 2
}" class="user friend" id="r4_{{friend.id}}">
<div class="userContainer">
<div id="hcard-reframe-music" class="vcard">
<strong>
<a ng-href="{{fri... | jessethegame/lastfm | src/app/lastfm/views/user/friends/gallery.tpl.html | HTML | mit | 1,805 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.1.1; ru-kz; HTC_Butterfly Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30</title>
<link rel="stylesheet" href="https://cdn... | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/08/f5/08f5720a-3ad9-4782-b701-7e1790cacdf4.html | HTML | mit | 56,671 |
<?php
namespace Smath\VentasBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;... | rsuarezdeveloper/smath | src/Smath/VentasBundle/Controller/PedidoController.php | PHP | mit | 7,983 |
package com.backusnaurparser.helper;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* Runtime Exception thrown when something goes wrong with parsing the EBNF
* grammar. A reason is always given (automatically printed via every
* printStackTrace(...) permutation)
*
* @author Dominik Horn
*
*/
pub... | DominikHorn/FormalLanguageParser | src/com/backusnaurparser/helper/LanguageParseException.java | Java | mit | 981 |
<div id="wrap">
<header data-bind="compose: { view: 'nav' }"></header>
<section class="container" data-bind="router: { transition: 'entrance', cacheViews: true }">
</section>
<div id="push"></div>
</div>
<div id="footer">
</div> | ddisalvo/FreeDB | Source/Web/App/views/shell.html | HTML | mit | 247 |
require 'spec_helper'
describe Skywriter::Resource::CloudFormation::Authentication do
it "is a Resource" do
expect(Skywriter::Resource::CloudFormation::Authentication.new('name')).to be_a(Skywriter::Resource)
end
describe "#as_json" do
it "allows the user to define the keyspace" do
resource = Skyw... | otherinbox/skywriter | spec/skywriter/resource/cloud_formation/authentication_spec.rb | Ruby | mit | 937 |
/*!
* vue-i18n v9.0.0-beta.13
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue';
/**
* Original Utilities
* written by kazuya kawaguchi
*/
const inBrowser ... | cdnjs/cdnjs | ajax/libs/vue-i18n/9.0.0-beta.13/vue-i18n.esm-browser.js | JavaScript | mit | 168,066 |
SHELL:=/bin/bash -euo pipefail
CTXDIR=../..
MCCORTEX=$(CTXDIR)/bin/mccortex31
DNACAT=$(CTXDIR)/libs/seq_file/bin/dnacat
K=7
KEEP=$(shell echo genome.fa genome.k$(K).{ctx,ctp} reads.1.fa.gz reads.2.fa.gz reads.{se,pe}.k$(K).ctp)
PLOTS=genome.k$(K).dot genome.k$(K).pdf
all: $(KEEP)
plots: $(PLOTS)
clean:
rm -rf $(KE... | mcveanlab/mccortex | tests/path_check/Makefile | Makefile | mit | 1,205 |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/msg/Motors.msg"
services_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/srv/AddTwoInts.srv"
pkg_name = "er1_motor_driver"
dependencies_str = "std_msgs"
langs = "gencpp;gen... | arvindpereira/clover_hack_day | er1_robot/build/er1_motor_driver/cmake/er1_motor_driver-genmsg-context.py | Python | mit | 677 |
export default {
name: 'selfie-card',
type: 'text',
render() {
return '[ :) ]';
}
};
| atonse/mobiledoc-kit | demo/app/mobiledoc-cards/text/selfie.js | JavaScript | mit | 97 |
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("Ch... | NativeScriptHybrids/ChallengeAccepted | ChallengeAccepted.Service/ChallengeAccepted.Models/Properties/AssemblyInfo.cs | C# | mit | 1,424 |
from mimetypes import guess_type
def get_git_info():
"""
Parses the git info and returns a tuple containg the owner and repo
:deprecated:
:rtype: tuple
:return: (owner name, repo name)
"""
repo = ''
with open('.git/config') as f:
for line in f.readlines():
if 'url' ... | GrappigPanda/pygemony | pyg/utils.py | Python | mit | 811 |
#include "ticTacToeFunc.h"
#include <cstdio>
TicTacToeFunc::TicTacToeFunc()
{
size = 3;
winSize = 3;
field = new States *[size];
for (int i = 0; i < size; i++)
field[i] = new States[size];
for (int i = 0; i < size; i++)
for (int j = 0; j < size; j++)
field[... | Sergey-Pravdyukov/Homeworks | term2/hw7/3/tictactoefunc.cpp | C++ | mit | 4,600 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
TheFragebogen - Test UIElements and QuestionnaireItems
</title>
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
<script src="../node_modules/qunit/qunit/qunit.js">
</script... | TheFragebogen/TheFragebogen | tests/qunit_es5.html | HTML | mit | 760 |
#import "ZYTheme.h"
@interface ZYThemeManager : NSObject {
NSMutableDictionary *allThemes;
ZYTheme *currentTheme;
}
+ (instancetype)sharedInstance;
- (ZYTheme*)currentTheme;
- (NSArray*)allThemes;
- (void)invalidateCurrentThemeAndReload:(NSString*)currentIdentifier;
@end
| Shade-Zepheri/Zypen | Theming/ZYThemeManager.h | C | mit | 278 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module Data.WebsiteContent
( WebsiteContent (..)
, StackRelease (..)
, Post (..)
, loadWebsiteContent
) where
import ClassyPrelude.Yesod
import CMarkGFM
import Data.G... | fpco/stackage-server | src/Data/WebsiteContent.hs | Haskell | mit | 3,666 |
#!/bin/bash
if [ -z "${BASH_VERSION+Defined?}" ]; then
echo "bash-pack: No shell interpreter other than Bash is supported"
exit 1
fi
# enable / disable bash-debug based on environment variable.
#
# Globals:
# bash_debug set to 1 to enable xtrace
enable_bash_debug() {
[ "${bash_debug:-0}" = 0 ] ||
... | codemedic/bash-pack | init.sh | Shell | mit | 3,702 |
# Hoboexpress
- [Hoboexpress](http://hoboexpress.ca)
- Setup
- Start the development server with this command:
-compile
| ravi-shah/Hoboexpress | README.md | Markdown | mit | 124 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace QrF.Core.Admin.Dto
{
public class BasePageInput
{
public BasePageInput()
{
this.Page = 1;
this.PageSize = 20;
}
/// <summary>
/// 当前分页
... | ren8179/QrF.Core | src/apis/QrF.Core.Admin/Dto/BasePageInput.cs | C# | mit | 507 |
package com.paratussoftware.ui.cli;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class GrimoireCLI {
private static final String TITLE_FILE_NAME = "./lib/grimoire_title.txt";
public static void startGrimoireCLI(String[] args){
showTitle();
CLIM... | JArthurJohnston/Grimoire-V2 | Demo/src/main/java/com/paratussoftware/ui/cli/GrimoireCLI.java | Java | mit | 754 |
<?php
namespace BDN\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20170820234613 extends AbstractMigration {
/**
* @param Schema $schema
*/
public function up(Schema $schema... | Parabot/BDN-V3 | app/Migrations/Version20170820234613.php | PHP | mit | 32,193 |
package com.openknowl.okhttpexample;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import java.io.IOException;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class MainActivity e... | openknowl/android-prototyper-tutorials | android/android_tutorial_8/OkHttpExample/app/src/main/java/com/openknowl/okhttpexample/MainActivity.java | Java | mit | 1,171 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./5fe6ce7f3769222d015404ce55e3969363e8ca463dcbc38273278839e8fff26f.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/8e8c4edff5c0066bfcd8acdd9334efa8b137ce8b3ddf889c88ad7bede2970d9f.html | HTML | mit | 550 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-algebra-tactics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.1/mathcomp-algebra-tactics/0.1.0.html | HTML | mit | 7,294 |
/* global describe, it */
var assert = require('assert')
var constantCase = require('./')
describe('constant case', function () {
it('should upper case a single word', function () {
assert.equal(constantCase('test'), 'TEST')
assert.equal(constantCase('TEST'), 'TEST')
})
it('should constant case regular ... | blakeembrey/constant-case | test.js | JavaScript | mit | 922 |
(function($){
$.fn.onImagesLoaded = function(_cb,_ca) {
return this.each(function() {
var $imgs = (this.tagName.toLowerCase()==='img')?$(this):$('img',this),
_cont = this,
i = 0,
_loading=function() {
if( typeof _cb === 'function') _cb(_cont);
},
_done=func... | flashycud/timestack | static/js/lib.js | JavaScript | mit | 614 |
---
layout: post
title: "Kindling a Fire"
date: 2016-10-01 19:45:31 +0530
categories: ["design"]
---
<img src="http://static.boredpanda.com/blog/wp-content/uuuploads/life-hacks/life-hacks-8.jpg" alt="Doritos"> | higfig/HigFig.github.io | _posts/2016-10-01-simple3.markdown | Markdown | mit | 213 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | z32556601/90ping_backend | application/config/routes.php | PHP | mit | 1,971 |
# Aid Programming Language

Author: Ian Byrd <ian@byrd.im>
Last updated: 13 December 2015
## Abstract
This document is a starting point for a new programming language called Aid. First of all, it's not a spec or any sort of a spec draft. This document isn't supposed to specify anything. Yet it's here... | aid-lang/design | README.md | Markdown | mit | 1,984 |
Profiling
=========
Various notes from some early profiling, not expected to be useful to anyone but me.
Finding potential hotspots with valgrind callgrind
--------------------------------------------------
valgrind --tool=callgrind ./plot t/examples/fibo.scm
then inspect the output `callgrind.out.nnnn` file us... | mkfifo/plot | docs/profiling.md | Markdown | mit | 13,055 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!--
This is the personal blog of Carlo Sciolla, a.k.a. skuro.
Thank you oh so much for peeking around the source code of my blog! I'm
an experienced software developer, but as I usua... | skuro/skuro.github.com | category/subversion/index.html | HTML | mit | 7,472 |
@NodeEntity
public class Country{
@GraphId
private Long id;
@Indexed(unique=true)
private String coutryName;
@RelatedTo
private Set<City> cities;
public Country(){}
public Country(String countryName){
this.countryName = countryName;
}
} | yanisIk/Hobdy | Domain/Country.java | Java | mit | 254 |
/*! normalize.css v6.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and i... | TechTalentSouthES/blog.techtalentsouth.es | css/style.css | CSS | mit | 25,571 |
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ext... | rangakomarthicomo/SuperMarket | app/cache/dev/appDevUrlMatcher.php | PHP | mit | 39,321 |
// The MIT License (MIT)
//
// Copyright (c) 2015-2018 Rasmus Mikkelsen
// Copyright (c) 2015-2018 eBay Software Foundation
// https://github.com/eventflow/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | rasmus/EventFlow | Source/EventFlow.Tests/IntegrationTests/BackwardCompatibilityTests.cs | C# | mit | 3,638 |
<!doctype html>
<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link rel="stylesheet" media="all" href="/lib/Han/di... | Jermmy/jermmy.github.io | tags/内存优化/index.html | HTML | mit | 12,054 |
# Cognitive Services Custom Search SDK
> see https://aka.ms/autorest
Configuration for generating Custom Search SDK.
The current release is `release_1_0`.
``` yaml
tag: release_1_0
add-credentials: true
openapi-type: data-plane
```
# Releases
### Release 1.0
These settings apply only when `--tag=release_1_0` is s... | kiwidev/azure-rest-api-specs | specification/cognitiveservices/data-plane/CustomImageSearch/readme.md | Markdown | mit | 3,523 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>ICLC2016 - Molly IDE</title>
<script type="application/dart" s... | lukechurch/iclc2016 | web-editor/web/index.html | HTML | mit | 802 |
// Generated from ./Select.g4 by ANTLR 4.5
// jshint ignore: start
var antlr4 = require('../../index');
var serializedATN = ["\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd",
"\2\17\177\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t",
"\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\3\2\... | bvellacott/papu-force-adapter | lib/antlr4/parsers/select/SelectLexer.js | JavaScript | mit | 4,185 |
using System;
using Microsoft.VisualStudio.Shell.Interop;
using NUnit.Framework;
using Telerik.JustMock;
using VisualStudioSync.Controllers;
namespace VisualStudioSync.Tests
{
[TestFixture]
public class SettingsControllerTest
{
private const string Path = "path";
private const string Value = "test";
private... | aquiladev/Coding4Fun.VisualStudioSync | VisualStudioSync.Tests/SettingsControllerTest.cs | C# | mit | 4,052 |
import styled from 'styled-components';
const Wrapper = styled.div`
width: 100%;
height: 100%;
display: block;
align-items: space-between;
`;
export default Wrapper;
| andyfrith/weather.goodapplemedia.com | app/containers/ForecastListItem/Wrapper.js | JavaScript | mit | 176 |
<?php
/**
* Low Seg2Cat Language file
*
* @package low_seg2cat
* @author Lodewijk Schutte <hi@gotolow.com>
* @link http://gotolow.com/addons/low-seg2cat
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/
$lang = array(
'category_groups' =>
'Category groups',
'all_gro... | noslouch/pa | core/expressionengine/third_party/low_seg2cat/language/english/low_seg2cat_lang.php | PHP | mit | 547 |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Reflection;
namespace AKDK.Messages.DockerEvents.Converters
{
/// <summary>
/// JSON converter that that enables custom selection logic during deserialisation of the object to create based on the JSON encountered.
/// </summary>
/// <ty... | tintoy/aykay-deekay | src/AKDK/Messages/DockerEvents/Converters/JsonCreationConverter.cs | C# | mit | 3,851 |
<?php
$files = array('global', 'module', 'admin', 'bootstrap', 'bootstrap-responsive', 'bootstrap-wysihtml5','datetimepicker');
$extended = array('install' => 'installation css', 'mailer' => 'Custom mailer css');
/* Do not edit below this line //-------------------------------*/
header("Content-Type: text/css; ch... | iantearle/Expanse-CMS-Public | expanse/css/expanse.css.php | PHP | mit | 1,657 |
module.exports={
setup(context, cb){
//context.sigslot.signalAt('* * * * * *', 'sayHello')
cb()
},
sep(msg,next){
console.log(msg); return next()
},
route(req, next){
switch(req.method){
case 'POST': return next()
case 'GET': this.setOutput(this.time)
default: return next(null, this.sigslot.abort())
... | ldarren/pico-api | test/util.js | JavaScript | mit | 464 |
fencing-devices
===============
| jrafidi/fencing-devices | README.md | Markdown | mit | 32 |
# template-react | wrariza/candado | README.md | Markdown | mit | 16 |
<?php
namespace Murky\HomeBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->asser... | rlbaltha/biblio | src/Murky/HomeBundle/Tests/Controller/DefaultControllerTest.php | PHP | mit | 399 |
/***********************************************
* MIT License
*
* Copyright (c) 2016 珠峰课堂,Ramroll
* 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... | njxiaohan/TransPal | app/domain/component/index.js | JavaScript | mit | 1,752 |
goog.provide('ngeo.CreatefeatureController');
goog.provide('ngeo.createfeatureDirective');
goog.require('ngeo');
goog.require('ngeo.EventHelper');
/** @suppress {extraRequire} */
goog.require('ngeo.filters');
goog.require('ngeo.interaction.MeasureArea');
goog.require('ngeo.interaction.MeasureLength');
goog.require('ol... | ger-benjamin/ngeo | src/directives/createfeature.js | JavaScript | mit | 6,955 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Welcome to the Macroevolution Group!</title>
<meta name="description" content="Thomas lab at the University of Sheffield">
... | ghthomas/ghthomas.github.io | _site/2016/a-test/index.html | HTML | mit | 7,847 |
/*
* RAForm
* (c) Red Ant <mobile.support@redant.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <UIKit/UIKit.h>
@interface RAFormSecureTextEntryCell:UITableViewCell
@property (nonatomic, weak) IBOutlet UITextField *... | redant-mobile/raformview | RAFormViewSampleApp/RAFormViewKit/Cells/RAFormSecureTextEntryCell.h | C | mit | 490 |
using System.Collections.Generic;
using System.Security.Claims;
namespace FujiyBlog.Web.Areas.Admin.ViewModels
{
public class AdminRoleSave
{
public string Id { get; set; }
public string Name { get; set; }
public IEnumerable<string> Claims { get; set; }
}
}
| fujiy/FujiyBlog | src/FujiyBlog.Web/Areas/Admin/ViewModels/AdminRoleSave.cs | C# | mit | 302 |
## Synopsis
WMI-Query class/module is a nodejs package enabling "Web-Based Enterprise Management" on microsoft OS using "Windows Management Instrumentation" and more precisely **wmic** command line tools. Thus **it needs to be run on a microsoft OS**.
## Code Example
```
//requiring module
var wmi = require(... | Anapajari/wmi-query | README.md | Markdown | mit | 1,917 |
# rewrites the expressions generated by clang
using DataStructures
# node: the input obuff has the type annotations in the function signature and the types in the ccall as references to the same Expr object. A deepcopy and overwrite is needed to fix hthis
# dictionary to map pointer types to desired type
# isdefine... | stevengj/PETSc.jl | src/generated/rewriter.jl | Julia | mit | 22,005 |
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class StartMenuUIControl : MonoBehaviour {
/*===================== GameObjects =====================================================================================*/
public GameObject characterCreationMenuPrefab;
/*===================... | Ross-Byrne/Management_Mayhem | Assets/Scripts/UI/StartMenu/StartMenuUIControl.cs | C# | mit | 2,906 |
Mini.define('layerTemplate', function(){
var $detail = $('#t-detail').html()
return {
detail: _.template($detail)
}
});
Mini.define('serviceLayer', [
'layerTemplate'
], function(layerTemplate){
return {
ctn: function(e) {
layer.open({
title: '箱动态列表',
... | hoozi/hyd2 | js/site/components/serviceLayer.js | JavaScript | mit | 559 |
# frozen_string_literal: true
Rails.application.routes.draw do
match "lock/login", to: "lock#login", as: "lock_login", via: :get
match "lock/refused", to: "lock#refused", as: "unlock_refused", via: :get
match "lock/unlock", to: "lock#unlock", as: "unlock", via: :post
end
| charlotte-ruby/lock | config/routes.rb | Ruby | mit | 279 |
#!/bin/bash
if [ -z "$BACKEND_ID" -o -z "$SERVER_ID" -o -z "$URL" -o -z "$VULCAN_URL" -o -z "$TIMEOUT_SECS" ]; then
echo "register-healthcheck requires the following variables:" >&2
echo ' $BACKEND_ID $SERVER_ID $URL $VULCAN_URL $TIMEOUT_SECS' >&2
exit 1
fi
function ttl_param {
if [ -n "$FRONTEND_TTL_SECS" ]... | octoblu/docker-register-sidekick | register-healthcheck.sh | Shell | mit | 1,004 |
// For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on
// chunking vendors files for async loading. You would need to import the async loaded vendors
// at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to
// run `typings install x` wher... | katallaxie/generator-angular2-starter | template/src/vendor.ts | TypeScript | mit | 756 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Internal function to process the separation of a physics body from a tile.
*
* @function Phaser.Physics.Arcad... | rblopes/phaser | src/physics/arcade/tilemap/ProcessTileSeparationX.js | JavaScript | mit | 901 |
# wms-downloader-mngr
## Installation
### 01 NodeJS and NPM
Windows:
Use the installer from <https://nodejs.org/>
Ubuntu / Debian:
```sh
sudo apt install nodejs npm
```
### 02 GraphicsMagick
Windows:
Use the installer from <http://www.graphicsmagick.org/>
Ubuntu / Debian:
```sh
sudo apt install graphicsmagick
... | stadt-bielefeld/wms-downloader-mngr | README.md | Markdown | mit | 9,448 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.4; XT862 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudf... | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/b1/e4/b1e4fe5b-aac1-4d31-a73b-2862f9949a87.html | HTML | mit | 56,523 |
//
// XMCommunityViewController.h
// XMLolGames
//
// Created by montnets on 2016/12/22.
// Copyright © 2016年 montnets. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface XMCommunityViewController : UITableViewController
@end
| LoveCcheng/XMLolGames | XMLolGames/Community(four)/controller/XMCommunityViewController.h | C | mit | 244 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mindmapp</title>
<base href="/">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="yes" name="mobile-web-app-capable">
<meta conte... | Mindmapp/mindmapp | src/index.html | HTML | mit | 903 |
<?php
namespace Oro\Bundle\UserBundle\Tests\Unit\Type;
use Oro\Bundle\UserBundle\Form\Type\ChangePasswordType;
use Symfony\Component\Form\Test\FormIntegrationTestCase;
class ChangePasswordTypeTest extends FormIntegrationTestCase
{
/** @var \PHPUnit_Framework_MockObject_MockObject */
protected $subscriber;
... | akeneo/platform | src/Oro/Bundle/UserBundle/Tests/Unit/Form/Type/ChangePasswordTypeTest.php | PHP | mit | 1,781 |
export function mergeUsers({ props, state, uuid }) {
if (props.response.result.users && props.response.result.users.length !== 0) {
let orderKey = 1
for (const user of props.response.result.users) {
user.orderKey = orderKey
const usersInState = state.get('admin.users')
const uidInState = Obj... | yacoma/auth-boilerplate | client/app/modules/admin/actions.js | JavaScript | mit | 1,148 |
<?php
namespace Dodici\Fansworld\WebBundle\Controller;
use Doctrine\ORM\EntityManager;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
us... | FansWorldTV/web | src/Dodici/Fansworld/WebBundle/Controller/ContestController.php | PHP | mit | 16,104 |
QuakeMap::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test... | QuakeMap/quakemap | config/environments/test.rb | Ruby | mit | 1,814 |
package errors
import (
"net/http"
"fmt"
)
// NewValidationError creates a new APIError with 422 Unprocessable entity http status code to be used as reporting the validation failure
func NewValidationError(e ... error) APIError {
return APIError{
StatusCode: http.StatusUnprocessableEntity,
Title: ... | uroshercog/kanban-board-backend | http/errors/validation.go | GO | mit | 874 |
VBA
===
| jifarooq/VBA | README.md | Markdown | mit | 8 |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate... | cdnjs/cdnjs | ajax/libs/lit-grid-layout/1.1.4/lit-draggable.js | JavaScript | mit | 4,479 |
using System;
class A
{
internal string S;
internal void Say()
{
Console.WriteLine(S);
}
}
class Program
{
private static void doit(Action sayit)
{
sayit();
}
static void Main(string[] args)
{
A a = new A();
a.S = "I am one";
A b = new A();
... | autumn009/TanoCSharpSamples | Chap4/デリゲート型はインスタンスを区別する/デリゲート型はインスタンスを区別する/Program.cs | C# | mit | 398 |
require 'commander'
require 'applyrics/project'
require 'applyrics/lyricsfile'
module Applyrics
class Setup
def run(config = {})
platform = nil
if is_ios?
platform = :ios
elsif is_android?
platform = :android
elsif is_unity?
platform = :unity
else
ret... | applyrics/applyrics-gem | lib/applyrics/setup.rb | Ruby | mit | 622 |
<?php
/*
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
sanitize : use mysql_real_escape_string via an object and a classic getter
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royal... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__backticks__object-func_mysql_real_escape_stringGetter__select_from-interpretation_simple_quote.php | PHP | mit | 1,889 |
#include <Python.h>
#include <maya/MFnPlugin.h>
#include <maya/MGlobal.h>
#include <maya/MPxNode.h>
#include <maya/MFnTypedAttribute.h>
#include <maya/MFnGenericAttribute.h>
#include <maya/MFnNumericData.h>
#include <maya/MFnNumericAttribute.h>
#include <maya/MFnNumericData.h>
#include <maya/MFnMatrixData.h>
#include ... | ryusas/maya_exprespy | srcs/exprespy.cpp | C++ | mit | 49,535 |
import logging
logging.basicConfig(level=logging.DEBUG)
import nengo
import nengo_spinnaker
import numpy as np
def test_probe_ensemble_voltages():
with nengo.Network("Test Network") as network:
# Create an Ensemble with 2 neurons that have known gain and bias. The
# result is that we know how the... | project-rig/nengo_spinnaker | regression-tests/test_voltage_probing.py | Python | mit | 1,158 |
using System;
namespace Proxy
{
class RealPhoto : IPhoto
{
private string fileName;
public RealPhoto(string fileName)
{
this.fileName = fileName;
LoadPhoto(fileName);
}
public void Display()
{
Console.WriteLine("Displaying "... | IvayloP/TelerikAcademy2016-2017 | HQC/04.DesingPatterns/02.StructuralPatterns/Proxy/RealPhoto.cs | C# | mit | 477 |
<div class="workplace">
<div class="row-fluid">
<div class="span12">
<?php $this->load->view('admin/includes/message'); ?>
<div class="head clearfix">
<div class="isw-grid"></div>
<h1>API Manager</h1>
</div>
<div class="bloc... | muhammad-shariq/exclusiveunlock | application/views/admin/apimanager/list.php | PHP | mit | 3,622 |
<div class="nav_menu">
<div>
<div class="top_menu" style="padding-left: 20px;">
<div class="container"><div class="row"><div class="col-md-12">
<div class="top_info"><span><i class="fa fa-phone-square"></i>+91 9829211106</span><span> <i class="fa fa-envelope-o"></i> <a hr... | ajaykumarparashar11/VD | application/views/manage/layout/header.php | PHP | mit | 6,983 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2013:0831
#
# Security announcement date: 2013-05-17 00:35:37 UTC
# Script generation date: 2017-01-01 21:10:45 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libvirt-client.i686:0.10.2-18.el6_4.5
# ... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2013/CESA-2013:0831.sh | Shell | mit | 1,462 |
'use strict';
var Lab = require('lab'),
Hapi = require('hapi'),
Plugin = require('../../../lib/plugins/sugendran');
var describe = Lab.experiment;
var it = Lab.test;
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
describe('sugendran', function() {
var server = new Hapi.Server();
it(... | nvcexploder/hapi-lxjs | test/plugins/sugendran/index.js | JavaScript | mit | 1,090 |
import app from 'flarum/forum/app';
import { extend } from 'flarum/common/extend';
import DiscussionControls from 'flarum/forum/utils/DiscussionControls';
import DiscussionPage from 'flarum/forum/components/DiscussionPage';
import Button from 'flarum/common/components/Button';
export default function addStickyControl(... | flarum/sticky | js/src/forum/addStickyControl.js | JavaScript | mit | 1,121 |
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import AdaBoostClassifier
from skTMVA import convert_bdt_sklearn_tmva
import cPickle
import numpy as np
from numpy.random import RandomState
RNG = RandomState(21)
# Construct an example dataset for binary classification
n_vars = 2
n_events = 100... | yuraic/koza4ok | examples/bdt_sklearn_to_tmva_AdaBoost.py | Python | mit | 1,493 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2020_08_01
module Models
#
# Defines values for ProcessorArchitecture
#
module ProcessorArchitecture
A... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2020-08-01/generated/azure_mgmt_network/models/processor_architecture.rb | Ruby | mit | 371 |
'use strict'
import assert from 'assert'
import { btoa } from 'Base64'
import decode from 'jwt-decode'
import token from './data/token'
import tokenTimezone from './data/token-timezone'
import ls from 'local-storage'
import bluebird from 'bluebird'
import sinon from 'sinon'
const setTokenExp = (timestamp) => {
// h... | lanetix/react-jwt-store | test/index.js | JavaScript | mit | 8,273 |