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 |
|---|---|---|---|---|---|
@import url(http://fonts.googleapis.com/css?family=Luckiest+Guy);
body {
margin: 0;
padding: 0;
background-color: #ffffff;
font-family: "Luckiest Guy", "Arial";
} | jotson/ld29 | assets/css/styles.css | CSS | mit | 179 |
// fetch() polyfill for making API calls.
import 'whatwg-fetch';
// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
import objectAssign from 'object-assign';
Object.assign = objectAssign;
| ZachMayer35/Radioscope | API/tests/config/polyfills.js | JavaScript | mit | 261 |
///<reference path="./move.ts" />
module GobangOnline {
export enum Color { Empty, Black, White };
export function getOpponentColor(color: Color): Color {
return color == Color.Black ? Color.White : Color.Black;
}
export function buildSquareMatrix(size:number, defaultValue:any) {
var matrix = [];
... | go717franciswang/gobang | board.ts | TypeScript | mit | 4,943 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#inc... | zzh8829/CompetitiveProgramming | Codeforces/544/C.cpp | C++ | mit | 1,315 |
# -*- coding: utf-8 -*-
from .record import (
Metadata,
Record,
)
__all__ = ['Parser']
class Parser:
def __init__(self, store):
self.store = store
def parse_record(self, metadata, line):
factors = line.split('|')
if len(factors) < 7:
return
registry, cc... | yosida95/ip2country | ip2country/parser.py | Python | mit | 1,079 |
!function e(n,r,t){function o(a,u){if(!r[a]){if(!n[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var f=r[a]={exports:{}};n[a][0].call(f.exports,function(e){var r=n[a][1][e];return o(r?r:e)},f,f.exports,e,n,r,t)}return r[a].exports... | jer-keel/jkeeler-net-static | public/js/ga.js | JavaScript | mit | 799 |
---
layout: page
title: About the Theme
tags: [about, Jekyll, theme, moon]
date: 2017-04-06
comments: false
---
<center><a href="http://lolzwalls.github.io/lukewalls"><b>Luke Walls</b></a> about page.</center>
## Work
* Job #1
* Job #2
* Job #3
* Syntax highlighting
* Optional post image
* Social icons
* Page for... | lolzwalls/lukewalls | about/index.md | Markdown | mit | 1,052 |
<?php
namespace Wallabag\CoreBundle\Event\Subscriber;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Wallabag\CoreBundle\Entity\Entry;
/**
* SQLite doesn't care about cascading remove, so we need to manually remove associated stuf for... | wallabag/wallabag | src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php | PHP | mit | 1,862 |
<?php
namespace Fnetwork\TPL\Templates;
use Fnetwork\TPL\Template;
class TemplatePhp extends Template {
protected $language = 'php';
}
| tpl42/tpl | templates/TemplatePhp.php | PHP | mit | 140 |
#avatarPhoto{
background-color: rgba(10, 14, 47, 0.8509803921568627);
box-shadow: 4px 4px var(--box-shadow-color);
--box-shadow-color:darkgray;
border-radius: 5px;
}
#userLetter{
font-size: 13px;
font-weight: 1000;
}
.lwhite{
color:white;
}
.roleContent{
margin: 10px;
margin-l... | helogargon/TFG | CyberCube/FrontEnd/src/app/navbar/navbar.component.css | CSS | mit | 697 |
//
// ZYMusic.h
// ZY的音乐
//
// Created by 张亚超 on 15/10/31.
// Copyright © 2015年 zhaoyan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZYMusic : NSObject
/**<dict>
<key>name</key>
<string>月半小夜曲</string>
<key>filename</key>
<string>1201111234.mp3</string>
<key>lrcname</key>
<string>月半小夜曲.lrc... | Niubaobao/NeteaseNews | ZY的音乐/ZY的音乐/Classes/Model/ZYMusic.h | C | mit | 894 |
class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
if not s:
return True
start = 0
end = len(s)-1
s = s.lower()
while start < end:
while start < end and not s[start].isalnum():
... | tedye/leetcode | Python/leetcode.125.valid-palindrome.py | Python | mit | 594 |
export const sampleIds = ["bass", "snare", "cymbal", "hihat"];
import { Direction, SliderOptions } from "../../../lib/slider/Slider";
export function RowConfig(rowIndex: number): Array<number> {
switch (rowIndex) {
case 0: //bass
return [0, 10];
case 1: //snare
return [4, 12]... | dakom/sodium-typescript-playground | src/app/modules/drum_machine/DrumMachine_Config.ts | TypeScript | mit | 1,205 |
// getPostsParameters gives an object containing the appropriate find and options arguments for the subscriptions's Posts.find()
getPostsParameters = function (terms) {
var maxLimit = 200;
// console.log(terms)
// note: using jquery's extend() with "deep" parameter set to true instead of shallow _.ext... | haribabuthilakar/fh | lib/parameters.js | JavaScript | mit | 2,548 |
//
// PictureCell.h
// SDWebImageLoadImageAnimation
//
// Created by YouXianMing on 15/4/30.
// Copyright (c) 2015年 YouXianMing. All rights reserved.
//
#import "CustomAdapterTypeCell.h"
@interface PictureCell : CustomAdapterTypeCell
@end
| VolleyZ/Animations | Animations/PictureCell.h | C | mit | 248 |
#include <boost\math\special_functions.hpp>
#include "common.h"
#include "cusolverOperations.h"
namespace matCUDA
{
template< typename TElement>
cusolverStatus_t cusolverOperations<TElement>::ls( Array<TElement> *A, Array<TElement> *x, Array<TElement> *C )
{
cusolverDnHandle_t handle;
CUSOLVER_CALL( cusolverD... | leomiquelutti/matCUDA | matCUDA lib/src/cusolverOperations.cpp | C++ | mit | 37,887 |
// ==UserScript==
// @name Kiss Simple Infobox hider
// @description Hides the infobox on kissanime.com, kisscartoon.me and kissasian.com player sites
// @include https://kissanime.ru/Anime/*/*
// @include https://kimcartoon.to/Cartoon/*/*
// @include https://k... | Playacem/KissScripts | kiss-simple-infobox-hider/kiss-simple-infobox-hider.user.js | JavaScript | mit | 1,191 |
'use strict';
const fs = require('fs');
const Q = require('q');
const exec = require('child_process').exec;
const searchpaths = ["/bin/xset"];
class XSetDriver {
constructor(props) {
this.name = "Backlight Control";
this.devicePath = "xset";
this.description = "Screensaver control via Xwi... | flyingeinstein/tread-station | nodejs/drivers/output/screensaver/xset.js | JavaScript | mit | 3,736 |
<?php
/* FOSUserBundle:Registration:register.html.twig */
class __TwigTemplate_b2e8a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->par... | kkuga/sfweb | app/cache/dev/twig/b2/e8/a5a7d2f16905904154af2ea8a628b3260186e3b1e28bf7f63c56eb0b951d.php | PHP | mit | 1,481 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.Communication.Models
{
public partial class LinkNotificationHubOptions : IUtf8JsonSerializable
{
... | Azure/azure-sdk-for-net | sdk/communication/Azure.ResourceManager.Communication/src/Generated/Models/LinkNotificationHubOptions.Serialization.cs | C# | mit | 700 |
#include <bits/stdc++.h>
using namespace std;
#ifndef int64
#define int64 long long
#endif
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
int64 h1, h2, a, b;
cin >> h1 >> h2 >> a >> b;
h1 += a * 8;
if (a <= b && h1 < h2) {
puts("-1");
} else if (h1 >= h2) ... | bolatov/contests | codeforces.ru/contest652/a.cpp | C++ | mit | 514 |
<div class="jumbotron">
<div class="row">
<!--Navigation == left side bar-->
<div class="col-md-2">
<div ng-include="'templates/partials/navigation-side-bar.html'"></div>
</div>
<!--Ads - prerequisites-->
<div class="col-md-7">
<!--loading warning-->
... | yavor2000/YavAdsProject | app/templates/home.html | HTML | mit | 5,340 |
## v0.6.4 [unreleased]
### Bugfixes
## v0.6.3 [2014-05-13]
### Features
- [Issue #505](https://github.com/influxdb/influxdb/issues/505). Return a version header with http the response (Thanks, @majst01)
- [Issue #520](https://github.com/influxdb/influxdb/issues/520). Print the version to the log file
### Bugfixes
... | peekeri/influxdb | CHANGELOG.md | Markdown | mit | 27,412 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis;
using System.Collections.Immutable;
using System.T... | tastott/AnalyzeThis | src/AnalyzeThis/ReadonlyField/ReadonlyFieldRule.cs | C# | mit | 7,557 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>葡萄藤PPT</title>
<link rel="stylesheet" href="../css/reveal/reveal.css">
<!-- PPT主题,可以在/css/reveal/theme/中选择其他主题,目前暂时只能使用该模板 -->
<link rel=... | ptteng/PPT | PPT/js-10-.ANGULAR-$RESOURCE-$HTTP.html | HTML | mit | 7,570 |
# coding: utf-8
"""
ORCID Member
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: Latest
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import si... | Royal-Society-of-New-Zealand/NZ-ORCID-Hub | orcid_api_v3/models/work_title_v30_rc2.py | Python | mit | 4,930 |
var fs = require("fs");
var longStr = (new Array(10000)).join("welefen");
while(true){
fs.writeFileSync("1.txt", longStr);
} | welefen/node-test | file/a.js | JavaScript | mit | 125 |
<!doctype html>
<html>
<head>
<style>
.reddish {
color: red;
}
</style>
<script>
window.onload = function () {
var h = document.getElementById("header");
h.classList.add("reddish");
};
</script>
</head>
<body>
<h1 id="header">This is a header</... | clarissalittler/websites-for-beginners | classModify.html | HTML | mit | 342 |
# $mol_book
Component for lazy add and/or remove pages depending on the container size. Supports pop left of front page that hides when it blurs.
## [Online demo](http://eigenmethod.github.io/mol/#demo=mol_book_demo)
## Usage example
```
$my_app $mol_book
pages /
<= Nav_bar $side_menu
minimal_width 100
<= M... | nin-jin/mol | book/readme.md | Markdown | mit | 563 |
package commenttemplate.expressions.exceptions;
/**
*
* @author thiago
*/
// @TODO: RuntimeException?
public class FunctionWithSameNameAlreadyExistsException extends RuntimeException {
/**
* Justa a custom mensage.
*
* @param msg A custom mensage.
*/
public FunctionWithSameNameAlreadyExistsException(St... | thiagorabelo/CommentTemplate | src/commenttemplate/expressions/exceptions/FunctionWithSameNameAlreadyExistsException.java | Java | mit | 351 |
<?php
include ('conexion/conexion.php');
if (empty($_REQUEST["nombreActividad"]) or empty($_REQUEST["idMateria"]) or empty($_REQUEST["evidencia"])or empty($_REQUEST["unidad"])){
echo "sin datos";
} else{
$idMateria = $_REQUEST["idMateria"];
$nombreActividad = $_REQUEST["nombreActividad"];
$evidencia = $_REQ... | UniversidadPolitecnicaBacalar/web | SISCA_V1/modulos/guardarActividad.php | PHP | mit | 655 |
/**
* Copyright (c) 2011 Bruno Jouhier <bruno.jouhier@sage.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 the rights to use,
... | doowb/grunttest | node_modules/azure/node_modules/streamline/lib/compiler/register.js | JavaScript | mit | 2,722 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Curt Binder
*
* 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, ... | curtbinder/AndroidStatus | app/src/main/java/info/curtbinder/reefangel/phone/MainActivity.java | Java | mit | 17,315 |
using CoreTweet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TweetArea.NETFramework.Core.Structures
{
public class MediaInfo
{
public string OriginalURL { get; internal set; }
}
public class Tweet
{
... | joy1192/TweetAreas | source/TweetAreas/TweetArea.NETFramework.Core/Structures/Tweet.cs | C# | mit | 839 |
<section id="{{ post.name }}" class="clip grid-cell">
<a href="{{ post.url }}">
{% if post.thumb-ext %}<div class="img"><img src="img/portfolio/{{ post.name }}/thumb.{{ post.thumb-ext }}" alt="{{ post.title }} thumbnail"></div>{% endif %}
<div class="meta" style="background-color: #{{ post.color-dark }}">
... | mapleandpine/nicmarson-website | bak/flexbox version/_includes/section-portfolio.html | HTML | mit | 513 |
/**
******************************************************************************
* File Name : main.h
* Description : This file contains the common defines of the application
******************************************************************************
*
* Copyright (c) 2017 STMicro... | janhieber/WaterCtrl | firmware/WaterCtrl_v1/Inc/main.h | C | mit | 6,896 |
/*
* Copyright 2016 Joyent, Inc., All rights reserved.
*
* 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, mod... | joyent/node-smartdc-auth | lib/keypair.js | JavaScript | mit | 7,717 |
//
// UIViewController+Sliding.h
// whitewolfdemo
//
// This App has been generated using IBM Mobile UI Builder
//
#import <UIKit/UIKit.h>
@import ECSlidingViewController;
@interface UIViewController (Sliding)
/**
It's added left button on navigation bar to show left view controller.
*/
- (void)ro_addLeftSlidi... | genterist/whiteWolf | Matt_UI_Code/All_Code/whitewolfdemo-ObjC/whitewolfdemo/Core/Sliding/UIViewController+Sliding.h | C | mit | 510 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DropdownMenuItemType;
(function (DropdownMenuItemType) {
DropdownMenuItemType[DropdownMenuItemType["Normal"] = 0] = "Normal";
DropdownMenuItemType[DropdownMenuItemType["Divider"] = 1] = "Divider";
DropdownMenuItemType[DropdownM... | SpatialMap/SpatialMapDev | node_modules/office-ui-fabric-react/lib/components/Dropdown/Dropdown.Props.js | JavaScript | mit | 499 |
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( "H... | HellBrick/HellBrick.Refactorings | HellBrick.Refactorings.Vsix/Properties/AssemblyInfo.cs | C# | mit | 1,291 |
module WinFFI
module User32
# Windowstation creation flags.
# https://msdn.microsoft.com/en-us/library/windows/desktop/ms682496
CreateWindowStationFlag = enum :create_window_station_flag, [:CREATE_ONLY, 0x00000001]
define_prefix(:CWF, CreateWindowStationFlag)
end
end | P3t3rU5/win-ffi-user32 | lib/win-ffi/user32/enum/window_station/create_window_station_flag.rb | Ruby | mit | 288 |
/*!
* jQuery Mobile 1.4.5
* Git HEAD hash: 68e55e78b292634d3991c795f06f5e37a512decc <> Date: Fri Oct 31 2014 17:33:30 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and othercontributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
/* Globals */
/* Font
----------... | samadengan/mtech | themes/mtech.css | CSS | mit | 25,783 |
/**
* Export exceptions
* @type {Object}
*/
module.exports = {
Schema: require('./Schema'),
Value: require('./Value')
}
| specla/validator | lib/exceptions/index.js | JavaScript | mit | 127 |
import collections
import json
import unittest
import responses
from requests import HTTPError
from mock import patch
from batfish import Client
from batfish.__about__ import __version__
class TestClientAuthorize(unittest.TestCase):
def setUp(self):
with patch('batfish.client.read_token_from_conf',
... | kura/batfish | tests/test_client_authorize.py | Python | mit | 1,645 |
package org.workcraft.plugins.policy.commands;
import org.workcraft.commands.AbstractConversionCommand;
import org.workcraft.plugins.petri.Petri;
import org.workcraft.plugins.petri.VisualPetri;
import org.workcraft.plugins.policy.Policy;
import org.workcraft.plugins.policy.PolicyDescriptor;
import org.workcraft.plugin... | tuura/workcraft | workcraft/PolicyPlugin/src/org/workcraft/plugins/policy/commands/PetriToPolicyConversionCommand.java | Java | mit | 1,471 |
// flow-typed signature: da1b0a6922881fd3985864661b7297ce
// flow-typed version: <<STUB>>/babel-eslint_v^10.0.3/flow_v0.113.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work wit... | pCloud/pcloud-sdk-js | flow-typed/npm/babel-eslint_vx.x.x.js | JavaScript | mit | 3,903 |
// Copyright 2013-2015, The Rust-GNOME Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
#![allow(non_camel_case_types)]
extern crate libc;
use libc::{c_void, c_int, c_uint, c_... | nicokoch/glib | glib-sys/src/lib.rs | Rust | mit | 32,860 |
using Xunit;
namespace ZabbixApiTests.Integration
{
public class EventServiceIntegrationTest : IntegrationTestBase
{
[Fact]
public void MustGetAny()
{
var result = context.Events.Get();
Assert.NotNull(result);
}
}
}
| HenriqueCaires/ZabbixApi | ZabbixApiTests/Integration/EventServiceIntegrationTest.cs | C# | mit | 288 |
/*
* See LICENSE file in distribution for copyright and licensing information.
*/
package seph.lang;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a>
*/
public class TextTest {
@Test
public void is_a_seph_object() {
assertTrue(... | seph-lang/seph | src/test/seph/lang/TextTest.java | Java | mit | 412 |
/*
* Copyright 2017 Thomas Sterrenburg
*
* Licensed under the MIT License (the License); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <curl/curl.h>
#include <string.h>
#include "fin... | thomas-sterrenburg/fingerprinting-poc | src/main.c | C | mit | 9,349 |
var express = require('express');
var userRouter = express.Router();
var passport = require('passport');
var Model = require('../models/user');
var authenticate = require('./auth');
/* GET all the users */
exports.getAll = function(req, res, next) {
Model.Users.forge()
.fetch({ columns: ['_id', 'username', '... | TheKiqGit/TimeTracker | src/server/routes/userController.js | JavaScript | mit | 2,707 |
!=====================================================================!
!
!=====================================================================!
! http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Hashtable.java#Hashtable
module hashtable_class
use iso_fortran_env, only : dp =... | komahanb/collections | hashtable_class.f90 | FORTRAN | mit | 2,402 |
import Float from 'ember-advanced-form/components/float';
export default Float;
| jakkor/ember-advanced-form | app/components/advanced-form/float.js | JavaScript | mit | 81 |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... | vikerman/angular | packages/common/locales/ccp-IN.ts | TypeScript | mit | 3,581 |
document.getElementsByTagName('body')[0].style.overflow = 'hidden';
window.scrollTo(70, 95); | nash716/SandanshikiKanpan | src2/inject/scroll.js | JavaScript | mit | 92 |
package main
import (
"github.com/emicklei/go-restful"
"io"
"net/http"
)
// This example shows how to create a (Route) Filter that performs Basic Authentication on the Http request.
//
// GET http://localhost:8080/secret
// and use admin,admin for the credentials
func main() {
ws := new(restful.WebSe... | spacexnice/ctlplane | Godeps/_workspace/src/github.com/emicklei/go-restful/examples/restful-basic-authentication.go | GO | mit | 1,025 |
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
z3_solver_params.h
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2007-06-11.
Revision History:
--*/
#ifndef _Z3_SOLVER_PARAMS_H_
#define _Z3_SOLVER_PARAMS_H_
#include"ini_file.h"
struct z3_solver_params {
bool m_ast_ll_... | sukwon0709/byterun | byterun/z3str2/z3/lib/z3_solver_params.h | C | mit | 798 |
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* Auditore
*
* @author sanik90
* @copyright Copyright (c) 2017 sanik90
* @license https://github.com/sanik90/auditore/blob/master/LICENSE.txt
* @link https://github.com/sanik90/auditore
*/
/**
* Class Custom_Fields
*/
class Custom... | sanik90/auditore | application/modules/custom_fields/controllers/Custom_fields.php | PHP | mit | 2,385 |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\XMPCrs;
use JMS\Serializer\Annotation\ExclusionPolicy;
... | romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/XMPCrs/PerspectiveHorizontal.php | PHP | mit | 829 |
#ifndef SC2TM_GAMEGENERATOR_H
#define SC2TM_GAMEGENERATOR_H
#include "common/file_operations.h"
#include "common/Game.h"
#include "common/sha256.h"
namespace sc2tm {
// TODO TEST THE SHIT OUT OF THIS THING
// Client has same maps/bots as us
// Client has a subset of our maps/bots
// Client has a superset of our maps/... | kuzi117/sc2tm | include/server/GameGenerator.h | C | mit | 9,577 |
var url = args.url;
var limit = args.limitl;
var defaultWaitTime = Number(args.wait_time_for_polling)
uuid = executeCommand('urlscan-submit-url-command', {'url': url})[0].Contents;
uri = executeCommand('urlscan-get-result-page', {'uuid': uuid})[0].Contents;
var resStatusCode = 404
var waitedTime = 0
while(resStatusCo... | demisto/content | Packs/UrlScan/Scripts/UrlscanGetHttpTransactions/UrlscanGetHttpTransactions.js | JavaScript | mit | 963 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Nucleo.Services
{
public class WebStaticInstanceManager : IStaticInstanceManager
{
private HttpContextBase _context = null;
#region " Properties "
private HttpContextBase Context
{
get
{
if (_conte... | brianmains/Nucleo.NET | src_wip/Nucleo.ApplicationServices.Web/Services/WebStaticInstanceManager.cs | C# | mit | 4,777 |
# START tmux completion
# This file is in the public domain
# See: http://www.debian-administration.org/articles/317 for how to write more.
# Usage: Put "source bash_completion_tmux.sh" into your .bashrc
_tmux()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_... | akrehl/dotfiles | assets/tmux-completion.bash | Shell | mit | 2,005 |
<?php
/*
* This file is part of BardisCMS.
*
* (c) George Bardis <george@bardis.info>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace BardisCMS\ContentBlockBundle\Admin;
use BardisCMS\ContentBlockBundle\Admin\Form\EventListener\AddCo... | bardius/BardisCMS | src/BardisCMS/ContentBlockBundle/Admin/ContentBlockAdmin.php | PHP | mit | 5,957 |
import User from '../models/user.model';
import Post from '../models/post.model';
import UserPost from '../models/users_posts.model';
import fs from 'fs';
import path from 'path';
/**
* Load user and append to req.
*/
function load(req, res, next, id) {
User.get(id)
.then((user) => {
req.user = user; // eslint-... | kenectin215/kenectin | server/controllers/user.controller.js | JavaScript | mit | 8,464 |
import { formValueSelector, getFormValues } from 'redux-form';
import { createSelector } from 'reselect';
import { BookingProps } from '@waldur/booking/types';
import { getOfferingComponentsFilter } from '@waldur/marketplace/common/registry';
import { OfferingComponent } from '@waldur/marketplace/types';
import { Root... | opennode/waldur-homeport | src/marketplace/offerings/store/selectors.ts | TypeScript | mit | 3,938 |
namespace SharpCompress.Common.Zip.Headers
{
using System;
using System.Runtime.CompilerServices;
internal class ExtraData
{
[CompilerGenerated]
private byte[] _DataBytes_k__BackingField;
[CompilerGenerated]
private ushort _Length_k__BackingField;
[CompilerGenera... | RainsSoft/sharpcompress | SharpCompressForUnity3D/SharpCompress/Common/Zip/Headers/ExtraData.cs | C# | mit | 1,330 |
//package org.grain.mongo;
//
//import static org.junit.Assert.assertEquals;
//
//import java.util.ArrayList;
//import java.util.List;
//import java.util.UUID;
//
//import org.bson.conversions.Bson;
//import org.junit.BeforeClass;
//import org.junit.Test;
//
//import com.mongodb.client.model.Filters;
//
//public class ... | dianbaer/grain | mongodb/src/test/java/org/grain/mongo/MongodbManagerTest.java | Java | mit | 2,935 |
// SharpMath - C# Mathematical Library
// Copyright (c) 2016 Morten Bakkedal
// This code is published under the MIT License.
using System;
using System.IO;
using System.Text;
namespace SharpMath.Samples
{
public static class ImportIpopt
{
public static void Import()
{
// Rename 32/64-bit files... | mortenbakkedal/SharpMath | SharpMath.Samples/ImportIpopt.cs | C# | mit | 2,274 |
# encoding: utf-8
require "aws-sdk"
# require "aws_ec2_config"
class Amazon::SesAdapter < Amazon::AwsAdapter
def verify_email_identity(email_address)
Rails.logger.debug "do verify_email_identity params=#{email_address}"
create_client.verify_email_identity({email_address: email_address})
end
def delet... | yasuhisa1984/jins_common_rails | app/adapters/amazon/ses_adapter.rb | Ruby | mit | 2,878 |
/**
* The MIT License
*
* Copyright (C) 2012 KK.Kon
*
* 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, mo... | kkkon/job-strongauth-simple-plugin | src/main/java/org/jenkinsci/plugins/job_strongauth_simple/JobStrongAuthSimpleBuilder.java | Java | mit | 31,334 |
/*
* The MIT License
*
* Copyright 2016 Matthias.
*
* 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... | lutana-de/easyflickrbackup | src/main/java/de/lutana/easyflickrbackup/ImageSizes.java | Java | mit | 2,063 |
# -
每天学到的代码,记录之
| a1pussib/- | README.md | Markdown | mit | 38 |
/**
* Copyright (c) 2011 Prashant Dighe
*
* 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, ... | pdd/mongoj | test/src/java/custom/com/example/demo/model/impl/RegisteredDriverImpl.java | Java | mit | 2,066 |
<?php
return array(
'friends:all' => 'Wszyscy znajomi',
'notifications:subscriptions:personal:description' => '',
'notifications:subscriptions:personal:title' => 'Powiadomienia osobiste',
'notifications:subscriptions:friends:title' => 'Znajomi',
'notifications:subscriptions:friends:description' => '',
'notifi... | Srokap/polish_translation | mod/notifications/languages/pl.php | PHP | mit | 866 |
package nl.astraeus.jdbc;
import org.junit.Assert;
import org.junit.Test;
/**
* User: rnentjes
* Date: 4/13/12
* Time: 10:55 PM
*/
public class JdbcStatisticTest {
@Test
public void test() {
Assert.assertTrue(true);
}
}
| rnentjes/Simple-jdbc-statistics | test/nl/astraeus/jdbc/JdbcStatisticTest.java | Java | mit | 246 |
require 'test_helper'
class MaterisControllerTest < ActionController::TestCase
setup do
@materi = materis(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:materis)
end
test "should get new" do
get :new
assert_response :success
end
... | rorogarcete/FacuSisWeb | test/functional/materis_controller_test.rb | Ruby | mit | 1,287 |
namespace _03EmployeeData
{
using System;
public class Program
{
public static void Main()
{
var name = Console.ReadLine();
var age = int.Parse(Console.ReadLine());
var employeeID = int.Parse(Console.ReadLine());
var monthlySalary = double.P... | DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017 | ExerciseIntroAndBasicSyntax/03EmployeeData/03EmployeeData.cs | C# | mit | 588 |
define(function (require) {
require('plugins/timelion/directives/expression_directive');
const module = require('ui/modules').get('kibana/timelion_vis', ['kibana']);
module.controller('TimelionVisParamsController', function ($scope, $rootScope) {
$scope.vis.params.expression = $scope.vis.params.expression ||... | istresearch/PulseTheme | kibana/src/core_plugins/timelion/public/vis/timelion_vis_params_controller.js | JavaScript | mit | 507 |
using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using SData.Internal;
namespace SData.Compiler
{
internal static class CSEX
{
internal static readonly string[] SchemaNames... | knat/SData | Src/SData.Compiler/CSEX.cs | C# | mit | 22,229 |
#include <bits/stdc++.h>
using namespace std;
void solve() {
string s; cin >> s;
reverse(s.begin(), s.end());
vector<string> pre = {"dream", "dreamer", "erase", "eraser"};
for (auto& x: pre) {
reverse(x.begin(), x.end());
}
int i = 0, n = s.size();
while (i < n) {
if (s.su... | sogapalag/problems | atcoder/arc065c.cpp | C++ | mit | 706 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ask My Doctors | Pasien</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="<?php echo base_url('assets/admin/css/boots... | meliafitriawati/askmydoctors | application/views/admin/pertanyaan.php | PHP | mit | 8,869 |
from .. import console, fields
from ..exceptions import ConsoleError
from . import mock
import pytest
console.raw_input=mock.raw_input
def test_prompt():
field=fields.Field("test_field", "test field", fields.Field.TYPE_TEXT_ONELINE, "this is a test field")
assert console.prompt(field)=="999"
def test_input_p... | gorbinphilip/PyRegistrar | pyregistrar/test/test_console.py | Python | mit | 577 |
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("12... | ReniGetskova/CSharp-Part-2 | Arrays/12IndexOfletters/Properties/AssemblyInfo.cs | C# | mit | 1,408 |
using System;
using System.Drawing;
using System.Linq;
using System.Threading;
using Emgu.CV.Structure;
using System.Threading.Tasks;
namespace Pentacorn
{
static class IObservableEx
{
public static async Task<T> TakeNext<T>(this IObservable<T> observable)
{
return (await observabl... | JaapSuter/Pentacorn | Backup/Pentacorn/IObservableEx.cs | C# | mit | 2,968 |
require 'active_support/core_ext/class/attribute'
module Travis
module Github
module Sync
# Fetches all repositories from Github which are in /user/repos or any of the user's
# orgs/[name]/repos. Creates or updates existing repositories on our side and adds
# it to the user's permissions. Also ... | travis-repos/travis-core | lib/travis/github/sync/repositories.rb | Ruby | mit | 2,707 |
import sys
import petsc4py
petsc4py.init(sys.argv)
from ecoli_in_pipe import head_tail
# import numpy as np
# from scipy.interpolate import interp1d
# from petsc4py import PETSc
# from ecoli_in_pipe import single_ecoli, ecoliInPipe, head_tail, ecoli_U
# from codeStore import ecoli_common
#
#
# def call_head_tial(uz_f... | pcmagic/stokes_flow | ecoli_in_pipe/wrapper_head_tail.py | Python | mit | 1,450 |
/**
******************************************************************************
* @file stm32f4xx_hal_conf_template.h
* @author MCD Application Team
* @brief HAL configuration template file.
* This file should be copied to the application folder and renamed
* to stm32f4xx_hal_con... | ObKo/stm32-cmake | examples/freertos/stm32f4xx_hal_conf.h | C | mit | 20,039 |
<!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... | drptbl/Blackbone | doc/lib/html/_m_map_8h_source.html | HTML | mit | 32,228 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MP... | purdy/cachestatus-firefox | chrome/content/cachestatus.js | JavaScript | mit | 15,267 |
#include <cstdio>
int main(int argc, char** argv) {
printf ("Hello World");
for (int i=0; i < 10; ++i) {
j = i && i;
}
return 0;
}
| PatrickTrentin88/intro_cpp_qt | examples/xml/domwalker/testhello.cpp | C++ | mit | 155 |
<?php
class Controller
{
}
| ejacky/honji | framework/Controller.php | PHP | mit | 28 |
#pragma once
#include "saiga/core/camera/camera.h"
#include "saiga/opengl/shader/basic_shaders.h"
#include "saiga/opengl/vertex.h"
#include "saiga/opengl/vertexBuffer.h"
#include "LinearMath/btIDebugDraw.h"
#include "btBulletDynamicsCommon.h"
namespace Saiga
{
class GLDebugDrawer : public btIDebugDraw
{
private... | darglein/saiga | samples/opengl/simpleBullet/bulletDebugDrawer.h | C | mit | 1,542 |
/**
* CoreUI - Open Source Bootstrap Admin Template
* @version v1.0.0
* @link http://coreui.io
* Copyright (c) 2017 creativeLabs Łukasz Holeczek
* @license MIT
*/
/*!
* Bootstrap v4.0.0-beta (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed u... | Kantnathan/pursaPortal | assets/css/style.css | CSS | mit | 234,900 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/3000-3999/3012-32.html | HTML | mit | 1,960 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="fmt0table"><tr><th class="zt1"><... | BuzzAcademy/idioms-moe-unformatted-data | all-data/3000-3999/3926-33.html | HTML | mit | 571 |
<p>
test-button works!
</p>
| luolisave/starters | angular/angular6/my-ng4-to-6/src/app/test/test-button/test-button.component.html | HTML | mit | 30 |
/*
CrossNet - Copyright (c) 2007 Olivier Nallet
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... | KonajuGames/CrossNet | includes/CrossNetRuntime/System/IComparable__G1.h | C | mit | 1,538 |
require 'spec_helper'
describe Compose do
it 'should compose multiple procs/symbols' do
expect(Compose[[:upcase,:reverse,:*.(2)]].('hello')).to eq("OLLEHOLLEH")
expect(Compose[[:*.(2), :**.(3), :+.(10)]].(4)).to eq(522)
end
it 'should compose fns' do
init_prime = Compose2[Compose2[Reverse,Tail], Rev... | jweissman/functionalism | spec/compose_spec.rb | Ruby | mit | 656 |
/// @file aStarNode.hpp
/// @brief Contains the class of nodes use by the astar pathfinder.
/// @author Enrico Fraccaroli
/// @date Nov 11 2016
/// @copyright
/// Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com>
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy ... | Galfurian/RadMud | src/structure/algorithms/AStar/aStarNode.hpp | C++ | mit | 3,686 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.