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 |
|---|---|---|---|---|---|
<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<!-- <meta http-equiv="refresh" content="0; url=https://matcornic.github.io/hugo-learn-doc/basics/what-is-this-hugo-theme/"/> -->
<!-- <meta http-equiv="refresh" content="0; url=http://localhost:1313/basics/what-is-... | apalazzin/conself-docs | layouts/index.html | HTML | mit | 395 |
<html lang="en">
<head>
<title>Symbol Type - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Symbol-Attributes.html#Symbol-Attribute... | ChangsoonKim/STM32F7DiscTutor | toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/as.html/Symbol-Type.html | HTML | mit | 2,440 |
require 'spec_helper'
describe OandaApiV20::Api do
describe '#initialize' do
let!(:client) { OandaApiV20::Client.new(access_token: 'my_access_token') }
it 'sets the client attribute when supplied' do
api = OandaApiV20::Api.new(client: client)
expect(api.client).to eq(client)
end
it 'rai... | kobusjoubert/oanda_api_v20 | spec/oanda_api_v20/api_spec.rb | Ruby | mit | 22,861 |
+++
title = "Note on Aug 13 EDT 2015 at 18:6"
publishdate = 2015-08-13T22:06:07+00:00
draft = false
syndicated = [ 'https://twitter.com/chrisjohndeluca/status/631949881716920300?s=20' ]
+++
Love this http://t.co/nChJHeUHru
| bronzehedwick/chrisdeluca | content/note/1439503567000.md | Markdown | mit | 224 |
package com.zavitz.fml.data;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Timer;
import java.util.TimerTask;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import com.zavitz.fm... | gzavitz/blackberry-apps | FML/src/com/zavitz/fml/data/FMLPostComment.java | Java | mit | 1,930 |
ReArms
======
small addon for wildstar to put an icon on your weapon when you're disarm/subdue.
| vayan/ReArms | README.md | Markdown | mit | 99 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include "sync.h"
#include "strlcpy.h"
#include "version.h"
#inc... | hashprofit/profitcoin | src/util.cpp | C++ | mit | 37,873 |
package pl.java.scalatech.domain;
import static com.mysema.query.types.PathMetadataFactory.*;
import com.mysema.query.types.path.*;
import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;
/**
* QRole is a Querydsl query type for Role
*/
@Generated("com.m... | przodownikR1/springSecurityKata | src/main/generated/pl/java/scalatech/domain/QRole.java | Java | mit | 1,264 |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/TSKAVPlayerController.h>
@class NSArray;
// Not exported
@interface TSKAVQueuePlayerController : TSKAVPlayerController
{
NSArray *mAssets;
}
- (void)p... | matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/TSKAVQueuePlayerController.h | C | mit | 684 |
function cs() {
cd $1 && ls .
}
# renames tmux pane to cwd
# this executes on every tmux commands
precmd () {
tmux set -qg status-left "#S #P $(pwd)"
}
| willhs/dotfiles | zsh/functions.zsh | Shell | mit | 160 |
require 'rubygems' unless ENV['NO_RUBYGEMS']
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'riakrest'
include RiakRest
SERVER_URI = 'http://localhost:8002/jiak'
| wcpr/riakrest | examples/example_helper.rb | Ruby | mit | 173 |
number-game
===========
This is a refactoring project: I'm taking one of my oldest projects and I'll fix it. The project is a simple numbers game and it was probably a simple programming course assignment during my engineering studies.
To build:
* scons
To run:
* ./bin/release/numbergame
| denarced/number-game | README.md | Markdown | mit | 295 |
import random
rand = random.SystemRandom()
def rabinMiller(num):
if num % 2 == 0:
return False
s = num - 1
t = 0
while s % 2 == 0:
s = s // 2
t += 1
for trials in range(64):
a = rand.randrange(2, num - 1)
v = pow(a, s, num)
if v != 1:
i = 0... | Fitzgibbons/Cryptograpy | rabinmiller.py | Python | mit | 526 |
#include "input.h"
#include <unistd.h>
typedef enum KEY_CODE {
ASCII_NULL = 0x00,
ASCII_LOWER_Q = 0x71,
ASCII_LOWER_P = 0x70,
ASCII_LOWER_R = 0x72,
ASCII_LOWER_G = 0x67,
ASCII_UPPER_A = 0x41,
ASCII_UPPER_B ... | lite-plate/CTetris | input.c | C | mit | 1,888 |
require 'chef/knife/cloud/server/delete_command'
require 'chef/knife/oraclepaas_helpers'
require 'chef/knife/cloud/oraclepaas_storage_service'
class Chef
class Knife
class Cloud
class OraclepaasStorageDelete < ServerDeleteCommand
include OraclepaasHelpers
banner "knife oraclepaas storage d... | Joelith/knife-oraclepaas-0.1.0 | lib/chef/knife/oraclepaas_storage_delete.rb | Ruby | mit | 1,061 |
package subscription
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regene... | Azure/azure-sdk-for-go | services/preview/subscription/mgmt/2019-10-01-preview/subscription/operation.go | GO | mit | 3,784 |
package hudson.plugins.dry.parser.simian;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Random;
import hudson.plugins.analysis.util.PackageDetectors;
import hudson.plugins.analysis.util.SecureDigester;
import hudson.plugins.dry.parser.AbstractDigesterParser;
import h... | jenkinsci/dry-plugin | src/main/java/hudson/plugins/dry/parser/simian/SimianParser.java | Java | mit | 2,831 |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Outracks.Simulator.Protocol.Uno\0.1.0\Common\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_OUTRACKS_SIMULATOR_I_EQUATABLE__OUTRACKS_SIMULATOR_BYTECODE_OPTI_68E3A32D_H__
#define __APP_OUTRACKS_SIMULATOR_I_EQUATABL... | blyk/BlackCode-Fuse | AndroidUI/.build/Simulator/Android/include/app/Outracks.Simulator.IEquatable__Outracks_Simulator_Bytecode_Opti-68e3a32d.h | C | mit | 716 |
module ProducedItemWarehousex
VERSION = "3.2.12.01"
end
| emclab/produced_item_warehousex | lib/produced_item_warehousex/version.rb | Ruby | mit | 58 |
<?php
/*
*
*
*
*/
namespace pfp\components {
require_once 'CaptchaException.php';
require_once 'SimpleCaptcha/SimpleCaptcha.php';
/**
* Description of Captcha
*
* @author Zeakis George <zeageorge@gmail.com>
*/
class Captcha extends Captcha\SimpleCaptcha {
... | zeageorge/phpFrameworkProject | pfp/framework/components/Captcha/Captcha.php | PHP | mit | 457 |
<?php
namespace AppBundle\Tests;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;
class CategoryEntityTest extends WebTestCase
{
public function testListViewPageTitle()
{
$client = static::createClient();
$crawler = $client->request('GET', '/... | ogizanagi/easy-admin-demo | src/AppBundle/Tests/CategoryEntityTest.php | PHP | mit | 5,599 |
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "GADBannerViewDelegate.h"
#import "GADInterstitialDelegate.h"
#import "GADBannerView.h"
#import "GADInterstitial.h"
#import "GADAdMobExtras.h"
#import "GADAdSize.h"
#define OPT_BANNER_ID @"bannerId"
#define OPT_... | floatinghotpot/cordova-admob-xdk | src/ios/AdMobAds.framework/Headers/AdMobAds.h | C | mit | 1,762 |
using System;
using CompositeC1Contrib.Email.GoogleAnalytics;
namespace CompositeC1Contrib.Email
{
public static class BootstrapperConfigurationExtensions
{
private static GoogleAnalyticsEventsProcessor _processor;
public static void UseGoogleAnalytics(this IBootstrapperConfigurati... | burningice2866/CompositeC1Contrib.Email | Email.GoogleAnalytics/BootstrapperConfigurationExtensions.cs | C# | mit | 648 |
const concat = require('concat-stream')
const test = require('tape')
const fs = require('fs')
const gherkin = require('../')
test('should assert input types', function (t) {
t.plan(3)
const rs = fs.createReadStream(__dirname + '/file.feature')
const ts = gherkin()
const ws = concat({ object: true }, function ... | yoshuawuyts/gherkin-parser | test/index.js | JavaScript | mit | 916 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kroki.app.action.style;
import java.awt.Font;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
import kroki.app.KrokiMockupToolApp;
import kroki.app.model.Selec... | VladimirRadojcic/Master | KrokiMockupTool/src/kroki/app/action/style/FontBoldAction.java | Java | mit | 1,769 |
"""Tests exceptions and DB-API exception wrapping."""
from sqlalchemy import exc as sa_exceptions
from sqlalchemy.test import TestBase
# Py3K
#StandardError = BaseException
# Py2K
from exceptions import StandardError, KeyboardInterrupt, SystemExit
# end Py2K
class Error(StandardError):
"""This class will be old-s... | obeattie/sqlalchemy | test/base/test_except.py | Python | mit | 5,046 |
/* DASHBOARDS */
Router.route('/', {
name: 'sitesIndex',
controller: SitesController,
action: 'index',
});
/* EOF DASHBOARDS */ | ShawnSantiago/BlogApp | packages/meteoris-core/client/routers/sites.js | JavaScript | mit | 139 |
//
// file : pipeline_multisample_state.hpp
// in : file:///home/tim/projects/hydra/hydra/vulkan/pipeline_multisample_state.hpp
//
// created by : Timothée Feuillet
// date: Sat Aug 13 2016 13:55:53 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any ... | tim42/hydra | hydra/vulkan/pipeline_multisample_state.hpp | C++ | mit | 5,076 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tydeus.Data;
using System.Data;
using System.Data.SqlClient;
namespace Tydeus.Test
{
class Program
{
static void Main(string[] args)
{
Import import = new Impor... | robertzml/Tydeus | Tydeus.Test/Program.cs | C# | mit | 435 |
/*
* 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, publish, distribute, sublicense, and/or sell... | jruby/jcodings | src/org/jcodings/specific/NonStrictSJISEncoding.java | Java | mit | 1,456 |
<?php
namespace buycraft;
use buycraft\commands\BuyCommand;
use buycraft\commands\BuyCraftCommand;
use buycraft\packages\PackageManager;
use buycraft\task\AuthenticateTask;
use buycraft\task\CommandDeleteTask;
use buycraft\task\CommandExecuteTask;
use buycraft\task\PendingPlayerCheckerTask;
use buycraft\util\BuycraftC... | Falkirks/BuyCraft | src/buycraft/BuyCraft.php | PHP | mit | 4,109 |
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("In... | davidlubomirov/Black-Russian | InsuranceApp/InsuranceApp.Core/Properties/AssemblyInfo.cs | C# | mit | 1,410 |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source c... | doo/Tesseract-OCR-iOS | TesseractOCR/Leptonica/leptonica-sources/prog/sharptest.c | C | mit | 2,476 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Quick Templates 2 module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding... | kecho/Pegasus | Lib/Qt/5.8/include/QtQuickTemplates2/5.8.0/QtQuickTemplates2/private/qquickroundbutton_p.h | C | mit | 2,824 |
namespace AuthenticodeLint.Core
{
public enum SignatureAlgorithm
{
Rsa,
Ecc
}
} | vcsjones/AuthenticodeLint.Core | src/AuthenticodeLint.Core/SignatureAlgorithm.cs | C# | mit | 107 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/tc/tcd.commerce.0.0.4/TCD.Commerce-netcore45.html | HTML | mit | 14,734 |
/// <reference path="../../dependencies.ts" />
/**
* Business layer for tags
*/
interface ITagBusiness {
isValueValid(value : string) : boolean;
// compare(newLabel : string, exisitingLabel : string) : boolean;
add(tag : Tag, callback? : Action<Tag>, errorHandler? : Action<string>) : void;
/**
* Adds a list... | acadet/yimello | app/models/business/ITagBusiness.ts | TypeScript | mit | 1,464 |
logparser-php-elasticsearch
============================
Trying to make a log parser to push data to Elasticsearch
| franckbrunet/logparser-php-elasticsearch | README.md | Markdown | mit | 116 |
//this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class LuaFramework_PanelManagerWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(LuaFramework.PanelManager), typeof(Manager));
L.RegFunction("CreatePanel", CreatePanel);
L.Re... | amostalong/SSFS | Assets/LuaFramework/ToLua/Source/Generate/LuaFramework_PanelManagerWrap.cs | C# | mit | 1,838 |
export interface CubeTextureLoader {
load(
urls: string[],
onLoad?: (texture?: THREE.Texture) => any,
onProgress?: LoaderProgressHandler,
onError?: (error?: any) => any,
): THREE.Texture;
}
| pchen66/panolens.js | src/loaders/CubeTextureLoader.d.ts | TypeScript | mit | 210 |
import re
from collections import OrderedDict
import compiler.lang as lang
doc_next = None
doc_prev_component = None
doc_root_component = None
class CustomParser(object):
def match(self, next):
raise Exception("Expression should implement match method")
escape_re = re.compile(r"[\0\n\r\v\t\b\f]")
escape_map = {
... | pureqml/qmlcore | compiler/grammar2.py | Python | mit | 21,146 |
package util.crypto;
/**
* This class provides a RuntimeException (tagged to indicate exceptions stem from use of this library).
* It's intended to provide a wrapper around the checked exception prevelant to the JCA Architecture.
* I.e. The judicious NoSuchAlgorithm typically shouldn't be occurring outside of testi... | a2800276/javautils | crypto/src/util/crypto/WrappedException.java | Java | mit | 995 |
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Cr... | willhs/dotfiles | git/aliases.zsh | Shell | mit | 818 |
<?php
namespace ZfcUserForgotPassword\Model;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterAwareTrait;
use Zend\Stdlib\Parameters;
class ForgotPassword implements InputFilterAwareInterface {
use InputFilterAwareTrait;
/**
* @var string
*/
protected $email;
... | dillchuk/ZfcUserForgotPassword | src/Model/ForgotPassword.php | PHP | mit | 1,099 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_18) on Thu Dec 18 17:18:35 PST 2014 -->
<title>Uses of Class java.nio.LongBuffer (Java Platform SE 7 )</title>
<meta name="date" conten... | fbiville/annotation-processing-ftw | doc/java/jdk7/java/nio/class-use/LongBuffer.html | HTML | mit | 15,767 |
using System.IO;
using System.Text.RegularExpressions;
namespace Advent_of_code.Day_4
{
public class Runner
{
public void Run()
{
Part1();
Part2();
}
private void Part1()
{
var sum = 0;
using (var sr = new StreamReader("e... | Lameorc/advent-of-code-2016 | Advent of code/Advent of code/Day 4/Runner.cs | C# | mit | 1,391 |
import baseController from '../../shared/baseController';
export default class ngbGenomeAnnotationsController extends baseController{
static get UID() {
return 'ngbGenomeAnnotationsController';
}
projectContext;
scope;
showTrackOriginalName = true;
constructor($scope, dispatcher, proj... | epam/NGB | client/client/app/components/ngbGenomeAnnotations/ngbGenomeAnnotations.controller.js | JavaScript | mit | 5,287 |
<!DOCTYPE html>
<html>
<head lang="ru">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Template</title>
<link href="http://themesanytime.com/startui/demo/img/favicon.144x144.png" rel="apple-... | racerx2000/ne_stenka | application/demo/documentation.html | HTML | mit | 90,630 |
using System;
using NetMining.Data;
namespace NetMining.SOM
{
public class SOMNeuron
{
public KPoint position; // This is a map to the
public KPoint weights;
public int id;
//Initialize tyhe weights with a randon between min and max
public SOMNeuron(KPoint min, KPoint ... | JeffBorwey/GraphClustering | NetMining/SOM/SOMNeuron.cs | C# | mit | 820 |
<p id=a><b><p id=b></b>TEST
| robashton/zombify | src/node_modules/zombie/node_modules/html5/data/tree-construction/tests1.dat-52/input.html | HTML | mit | 29 |
/**
* Usage: 程序配置项
* Author: Spikef < Spikef@Foxmail.com >
* Copyright: Envirs Team < http://envirs.com >
*/
var fs = require('fs');
var program = require('commander');
var prompts = require('inquirer').prompt;
program
.command('config <option>')
.description('修改配置')
.action(function(option) {
... | Spikef/justshow | bin/commands/config.js | JavaScript | mit | 3,870 |
NetJoint UI is based on [Bootstrap3](http://getbootstrap.com).
## Quick start
Three quick start options are available:
- Clone the repo: `git clone https://github.com/NetJoint/NetJoint-UI.git`.
Run `npm install` to install dependencies.
Examples:
### What's included
Within the download you'll find the following... | NetJoint/NetJoint-UI | README.md | Markdown | mit | 1,108 |
Strength validation
===================
The PasswordStrength constraint computes a password strength based on the following rules:
* Does the password contain an alpha character?
* Does the password contain both lowercase and uppercase alpha characters?
* Does the password contain a digit?
* Does the password contai... | rollerworks/PasswordStrengthValidator | docs/strength-validation.md | Markdown | mit | 2,425 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('app', '0008_playlistitem_network'),
]
operations = [
migrations.AddField(
model_name='playlistit... | m-vdb/ourplaylists | ourplaylists/app/migrations/0009_playlistitem_created_at.py | Python | mit | 527 |
;( function( d3 ) {
/**
* Get parent of dom element with
* given class
*
* @param {Object} el element
* @param {String} className className
* @return {Object} parent element with given class
*/
function getParent( el, className ) {
var parent = null;
var p = el.p... | 3rd-party-bouncer/bouncer-www | assets/scripts/results.js | JavaScript | mit | 9,905 |
package au.com.acegi.hashbench.hashers;
import java.nio.ByteBuffer;
import java.util.Map;
import net.jpountz.xxhash.XXHash64;
import net.jpountz.xxhash.XXHashFactory;
public class Jp64Hasher implements Hasher {
public static final String XXH64_JNI = "xxh64-jpountz-jni";
public static final String XXH64_SAFE = "x... | benalexau/hash-bench | src/main/java/au/com/acegi/hashbench/hashers/Jp64Hasher.java | Java | mit | 1,203 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pts: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.13.1-2.0.10/released/8.15.0/pts/8.7.0.html | HTML | mit | 7,417 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>plouffe: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.2/plouffe/1.3.0.html | HTML | mit | 6,331 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.9.1/metacoq-template/1.0~alpha+8.8.html | HTML | mit | 8,023 |
<?php
/**
* Released under the MIT License.
*
* Copyright (c) 2017 Miha Vrhovnik <miha.vrhovnik@gmail.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, includ... | mvrhov/mvrhovPhinxBundle | Command/RollbackCommand.php | PHP | mit | 3,894 |
require "priam/command/cql/create"
module Priam::Command
module Cql
def self.run(argv, input_stream=$stdin, output_stream=$stdout)
command = argv.shift
case command
when "create"
exit_code = Priam::Command::Cql::Create.run(argv) || 0
else
STDERR.puts "Invalid cql command: ... | haracane/priam | lib/priam/command/cql.rb | Ruby | mit | 406 |
package cc.ferreira.gcal2slack.rules
import java.time.LocalDateTime
import java.time.LocalDateTime.now
import java.time.ZoneOffset.UTC
import cc.ferreira.gcal2slack.calendar.CalendarEvent
import cc.ferreira.gcal2slack.messaging.MessagingStatus
object StatusCalculator {
def chooseStatus(events: Seq[CalendarEvent], ... | hugocf/gcal-slack-update | src/main/scala/cc/ferreira/gcal2slack/rules/StatusCalculator.scala | Scala | mit | 775 |
#!/usr/bin/env python
from math import pi, sin, log, exp, atan
DEG_TO_RAD = pi / 180
RAD_TO_DEG = 180 / pi
def minmax (a,b,c):
a = max(a,b)
a = min(a,c)
return a
class GoogleProjection:
"""
Google projection transformations. Sourced from the OSM.
Have not taken the time to figure out how thi... | onyxfish/invar | invar/projections.py | Python | mit | 1,202 |
module.exports = function (Clase) {
Clase.saluda = function (msg, cb) {
cb(null, 'Hola pos... ' + msg);
};
Clase.remoteMethod(
'saluda', {
accepts: {
arg: 'msg',
type: 'string'
},
returns: {
arg: 'greeting',
type: 'string'
}
}
);
Clase.getcomuna = function (idcomuna, callback) {... | amenadiel/craack | common/models/clase.js | JavaScript | mit | 750 |
using System.Data;
using VentaElectrodomesticos.Core.Model.Entities;
namespace VentaElectrodomesticos.Core.Repositories
{
/// <summary>
/// Define metodos para el repositorio de categorias de productos.
/// </summary>
internal interface ICategoriasRepository
{
/// <summary>
/// Ret... | navarroaxel/VentaElectrodomesticos | VentaElectrodomesticosCore/Repositories/ICategoriasRepository.cs | C# | mit | 820 |
<html>
<head>
<style>
#pubcloud{
position: relative;
border: 2pt solid gray;
margin-left: auto;
margin-right: auto;
border-collapse: collapse;
}
#pubcloud tr{
height: 5px;
}
#pubcloud td{
border: 1pt solid gray;
/*border: none;*/
max-width: 10px;
margin: 0px;
padding: 0px;
width: 5px;
height: 5px;
fo... | andymeneely/pubcloud | eg/example4.html | HTML | mit | 16,439 |
package madgik.exareme.master.gateway.async.handler;
import com.google.gson.Gson;
import madgik.exareme.master.gateway.ExaremeGatewayUtils;
import madgik.exareme.master.gateway.OptiqueStreamQueryMetadata.StreamRegisterQuery;
import madgik.exareme.master.registry.Registry;
import org.apache.http.*;
import org.apache.ht... | madgik/exareme | Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/gateway/async/handler/HttpAsyncTablesMetadataHandler.java | Java | mit | 3,187 |
<!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">
<title>Konichiwa - Blog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4... | konichiwa1200/konichiwa1200.github.io | blog/enumerable-methods.html | HTML | mit | 5,864 |
<?php
/** @noinspection PhpDocSignatureInspection */
namespace App\Tests\Functional\Services\TaskExaminer\WebPageTask;
use App\Entity\Task\Output;
use App\Entity\Task\Task;
use App\Event\TaskEvent;
use App\Model\Source;
use App\Services\SourceFactory;
use App\Services\TaskExaminer\WebPageTask\InvalidSourceExaminer;
u... | webignition/worker.simplytestable.com | tests/Functional/Services/TaskExaminer/WebPageTask/WebPageTaskInvalidSourceExaminerTest.php | PHP | mit | 7,779 |
var util = require('util');
var path = require('path');
var chalk = require('chalk');
var BaseReporter = require('./base');
var Match = require('../match');
/**
* A PMD CPD XML reporter, which tries to fit jsinspect's output to something
* CI tools might expect from PMD.
*
* @construc... | beni55/jsinspect | lib/reporters/pmd.js | JavaScript | mit | 3,451 |
import pytest
import pandas as pd
from lcdblib.pandas import utils
@pytest.fixture(scope='session')
def sample_table():
metadata = {
'sample': ['one', 'two'],
'tissue': ['ovary', 'testis']
}
return pd.DataFrame(metadata)
def test_cartesian_df(sample_table):
df2 = pd.DataFrame({'num... | lcdb/lcdblib | tests/test_pandas_utils.py | Python | mit | 1,376 |
import io
import tempfile
import unittest
from zipencrypt import ZipFile, ZipInfo, ZIP_DEFLATED
from zipencrypt.zipencrypt2 import _ZipEncrypter, _ZipDecrypter
class TestEncryption(unittest.TestCase):
def setUp(self):
self.plain = "plaintext" * 3
self.pwd = b"password"
def test_roundtrip(sel... | devthat/zipencrypt | tests/python2/test_encryption.py | Python | mit | 3,249 |
<!--
Unsafe sample
input : get the $_GET['userData'] in an array
SANITIZE : use of mysql_real_escape string
File : use of untrusted data in a div tag
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software a... | stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/unsafe/CWE_79__array-GET__func_mysql_real_escape_string__Use_untrusted_data-div.php | PHP | mit | 1,348 |
package guard
import (
"time"
"gopkg.in/workanator/go-floc.v2"
"gopkg.in/workanator/go-floc.v2/errors"
)
// TimeoutTrigger triggers when the execution of the job timed out.
type TimeoutTrigger func(ctx floc.Context, ctrl floc.Control, id interface{})
// Timeout protects the job from taking too much time on execu... | workanator/go-floc | guard/timeout.go | GO | mit | 1,797 |
<?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\XMPDex;
use JMS\Serializer\Annotation\ExclusionPolicy;
... | romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/XMPDex/CRC32.php | PHP | mit | 764 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>TqBitTorrentWebUI.Password</title>
<link rel="stylesheet" href="../fpdoc.css" type="text/css">
</head>
<body>
<table class="bar... | gcarreno/laz-qBitTorrent-WebUI | docs/html/qbittorrentwebui/tqbittorrentwebui.password.html | HTML | mit | 1,563 |
/*
* @(#)Move.java 2005/11/01
*
* Part of the strategy game framework.
* Copyright (c) Michael Patricios, lurgee.net.
*
*/
package net.lurgee.sgf;
/**
* Marker interface that a class representing a move in the game must implement. A marker interface is used to
* convey <b>intention</b> throughout... | mpatric/lurgee | sgf/src/net/lurgee/sgf/Move.java | Java | mit | 471 |
Pattern: Model does not explicitly define `__unicode__`
Issue: -
## Description
Django models should implement a `__unicode__` method for string representation. A parent class of this model does, but ideally all models should be explicit. | Adroiti/docs-for-code-review-tools | Pylint/model-no-explicit-unicode.md | Markdown | mit | 247 |
@extends((isset($package) ? $package . '::' : '') . 'layouts.master')
@section('content')
<div class="col-sm-12 translation-manager">
<div class="row">
<div class="col-sm-8">
<div class="row">
<div class="col-sm-12">
<h1>@lang(... | isbkch/laravel5-translator | resources/views/index.blade.php | PHP | mit | 63,677 |
package com.stuffwithstuff.lark;
public enum ExprType {
BOOL,
CALL,
FUNCTION,
LIST,
NAME,
NUMBER,
STRING
}
| munificent/lark | src/com/stuffwithstuff/lark/ExprType.java | Java | mit | 136 |
AsyncImageView
version 1.6, June 21st, 2016
Copyright (C) 2011 Charcoal Design
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any p... | ITSVision/Neodius | Pods/AsyncImageView/LICENCE.md | Markdown | mit | 907 |
import React from 'react'
import './blocks.scss'
export default class Block extends React.Component {
render() {
let {title, secondary, content, additional, style} = this.props;
return(
<div className={"amazo-tile " + (style ? style : 'default')}>
<div className="tile-heading">
<... | WapGeaR/react-redux-boilerplate-auth | src/skeletons/firstIter/components/blocks/Block.js | JavaScript | mit | 778 |
{
jestExpect(value).toBe(false);
}
| stas-vilchik/bdd-ml | data/4649.js | JavaScript | mit | 37 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | portchris/NaturalRemedyCompany | src/dev/tests/functional/tests/app/Mage/Catalog/Test/TestStep/CreateProductStep.php | PHP | mit | 2,403 |
import * as React from "react";
import {Hand} from "../models/Hand";
export interface HandPickProps { hands: Hand []; onPick: (hand: Hand) => void; };
export class HandPick extends React.Component<HandPickProps, {}> {
render() {
return (
<ul className="HandPick">
{
... | felicienfrancois/PFCLS | src/components/HandPick.tsx | TypeScript | mit | 621 |
Oxford Flood Network Sensor Code
=================================
Version 3.1.4 - Codename: Bulstake
Features:
* Variable Node ID with jumpers
* Variable wake timer with jumpers
* Variable poling during startup phase to test device is working
* Dallas DS18B20 Temperature sensor for speed of sound compensation
* Com... | OxFloodNet/sensor-device | OxFloodNet_Sensor/README.md | Markdown | mit | 3,263 |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var DelegateFolderPermissionLevel_1 = requ... | guderkar/MExInt | mexint@karel.gudera/server/node_modules/ews-javascript-api/js/ComplexProperties/DelegatePermissions.js | JavaScript | mit | 11,141 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112-google-v7) on Thu Feb 08 16:33:18 PST 2018 -->
<title>ShadowTextUtils</title>
<meta name="date" content="2018-02-08">
<link rel="stylesheet... | robolectric/robolectric.github.io | javadoc/3.7/org/robolectric/shadows/ShadowTextUtils.html | HTML | mit | 10,297 |
# frozen_string_literal: true
require 'simplecov'
require 'active_support/core_ext/numeric/time'
require_relative '../lib/gitlab/utils'
module SimpleCovEnv
extend self
def start!
return unless ENV['SIMPLECOV']
configure_profile
configure_job
SimpleCov.start
end
def configure_job
Simple... | stoplightio/gitlabhq | spec/simplecov_env.rb | Ruby | mit | 1,746 |
package info.histei.monitor;
import org.apache.commons.vfs2.FileChangeEvent;
import org.apache.commons.vfs2.FileListener;
/**
* Created by mike on 2/1/14.
*/
public class FileListenerAdaptor implements FileListener {
/**
* Called when a file is created.
*
* @param event The FileChangeEvent.
... | odaata/HisTEI | src/info/histei/monitor/FileListenerAdaptor.java | Java | mit | 1,049 |
import Element from './Element'
import Text from './Text'
import RunFormat from './RunFormat'
import Run from './Run'
import ParagraphFormat from './ParagraphFormat'
import Paragraph from './Paragraph'
import TableFormat from './TableFormat'
import Table from './Table'
import Section from './Section'
import File from '... | zuck/jsdocx | src/index.js | JavaScript | mit | 552 |
"""
Abstract base for a specific IP transports (TCP or UDP).
* It starts and stops a socket
* It handles callbacks for incoming frame service types
"""
from __future__ import annotations
from abc import ABC, abstractmethod
import asyncio
import logging
from typing import Callable, cast
from xknx.exceptions import Co... | XKNX/xknx | xknx/io/transport/ip_transport.py | Python | mit | 3,449 |
//
// CCJsonBodyEncoder.h
// CCURLConnection
//
// Created by Kondratyev, Pavel on 3/19/14.
//
//
#import <Foundation/Foundation.h>
#import "CCBodyEncoder.h"
@interface CCJsonBodyEncoder : NSObject <CCBodyEncoder>
+ (instancetype)sharedEncoder;
@end
| KondratyevPavel/CCURLConnection | CCURLConnection/Encoders/CCJsonBodyEncoder.h | C | mit | 257 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../openssl/ssl/struct.SslAcceptor.html">
</head>
<body>
<p>Redirecting to <a href="../../../openssl/ssl/struct.SslAcceptor.html">../../../openssl/ssl/struct.SslAcceptor.html</a>...</p>
<script>location.replace("../../../... | malept/guardhaus | main/openssl/ssl/connector/struct.SslAcceptor.html | HTML | mit | 417 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSocialsTable extends Migration {
public function up()
{
Schema::create('socials', function(Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('type'... | jwaver/hhoCebu | database/migrations/2015_05_11_091112_create_socials_table.php | PHP | mit | 592 |
---
header: cache
example: ModelStore.cache
---
An object of models that stores data in memory to reduce the number of round trips to the API. Overriding data or modifying the cache is not recommended, but it is helpful for inspecting the data.
| rendrjs/rendrjs.github.io | _model-store/cache.md | Markdown | mit | 248 |
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Dim 04 Août 2013 à 11:11
-- Version du serveur: 5.5.24-log
-- Version de PHP: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ... | guillaume-sainthillier/malp | mots_a_la_pelle.sql | SQL | mit | 7,364 |
class Base:
def meth(self):
print("in Base meth")
class Sub(Base):
def meth(self):
print("in Sub meth")
return super().meth()
a = Sub()
a.meth()
| aitjcize/micropython | tests/basics/class-super.py | Python | mit | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Sautom.Domain.Entities;
using Sautom.Services.Dto;
using Sautom.Services.Repositories;
using Sautom.Services.UnitOfWork;
namespace Sautom.Services
{
public sealed class ProposalService
{
#region Constructors
... | nikaburu/sautom-wpf | src/Sautom.Services/ProposalService.cs | C# | mit | 7,141 |
/*
* This file is part of NucleusFramework for Bukkit, licensed under the MIT License (MIT).
*
* Copyright (c) JCThePants (www.jcwhatever.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 ... | JCThePants/NucleusFramework | src/com/jcwhatever/nucleus/managed/astar/nodes/IAStarNode.java | Java | mit | 3,238 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.