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
--- title: "Krita Brushes Presets Pack v2" date: 2016-09-16 14:00 thumb: '/img/blog/brush-pack-v2/icon-nylnook-brush-pack-v2-art-pen.jpg' lang_fr: '/fr/blog/pack-brosses-krita-v2' tags: - download - graphic novel - making of - tutorials --- ![Krita icon](/website-img/icon-krita.svg) Time for update ! I'm happ...
nylnook/nylnook-website
src/documents/en/blog/krita-brushes-pack-v2.html.md
Markdown
mit
7,656
module.exports = (req, res, next) => { req.context = req.context || {}; next(); };
thedavisproject/davis-web
src/middleware/initContext.js
JavaScript
mit
87
'use strict'; angular.module('achan.previewer').service('imagePreviewService', function () { var source; var ImagePreviewService = { render: function (scope, element) { element.html('<img src="' + source + '" class="img-responsive" />'); }, forSource: function (src) { source = src; re...
achan/angular-previewer
app/scripts/services/imagePreviewService.js
JavaScript
mit
392
require 'spec_helper' describe Group do # Check that gems are installed # Acts as Taggable on gem it { should have_many(:base_tags).through(:taggings) } # Check that appropriate fields are accessible it { should allow_mass_assignment_of(:name) } it { should allow_mass_assignment_of(:description) } it { ...
gemvein/cooperative
spec/models/group_spec.rb
Ruby
mit
768
#ifndef DIMACSGENERATOR_H #define DIMACSGENERATOR_H 1 #include <vector> #include <fstream> #include "cnfclause.h" #include "cnfformula.h" #include "satgenerator.h" /** A very very basic DIMACS parser. Only parses for cnf formulas. */ class DimacsGenerator : public SatGenerator{ private: std::string filename; ...
Balise42/sattools
include/dimacsgenerator.h
C
mit
619
# -*- coding: utf-8 -*- # Keyak v2 implementation by Jos Wetzels and Wouter Bokslag # hereby denoted as "the implementer". # Based on Keccak Python and Keyak v2 C++ implementations # by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, # Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer # # Fo...
samvartaka/keyak-python
utils.py
Python
mit
1,775
--- layout: post title: Summer Sailing excerpt: Random photos of summer sailing and favorite anchorages. categories: 2016-LakeSuperior date: 2016-07-27 published: true image: ogimage: "2016/DSCF3171.jpg" images-array: - path: 2016/DSCF3080.jpg label: - path: 2016/DSCF3095.jpg label: - path: 2016/DSCF3096...
jilse/jilse.github.io
_posts/2016/2016-07-27-random-2016-Lake-Superior-sailing-picutres.md
Markdown
mit
953
package deliver import ( "testing" "net/http" "net/http/httptest" "reflect" ) func TestMiddlewareBasic(t *testing.T) { d := New() d.Use(MiddlewareHandlerFunc(func(res Response, req *Request, next func()) { res.Send("Hello") })) response, body := testMiddleware(t, d) expect(t, body, "Hello") expect(t, r...
msavela/deliver
middleware_test.go
GO
mit
2,081
import _plotly_utils.basevalidators class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bordercolor", parent_name="sankey.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, ...
plotly/plotly.py
packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py
Python
mit
482
# Si se lleva a cabo un docker build de portal-andino sin el parámetro "--build-arg IMAGE_VERSION={versión de portal-base}, se usa el ARG IMAGE_VERSION por default ARG IMAGE_VERSION=release-0.11.3 FROM datosgobar/portal-base:$IMAGE_VERSION MAINTAINER Leandro Gomez<lgomez@devartis.com> ARG PORTAL_VERSION ENV CKAN_HOME ...
datosgobar/portal-andino
Dockerfile
Dockerfile
mit
1,633
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace jaytwo.Common.Futures.Numbers { public static class MathUtility { public static double StandardDeviation(IEnumerable<double> data) { var average = data.Average(); var individualDeviations = data.Select(x => Math...
jakegough/jaytwo.CommonLib
CommonLib.Futures/Numbers/MathUtility.cs
C#
mit
534
using FFImageLoading.Forms.Sample.WinPhoneSL.Resources; namespace FFImageLoading.Forms.Sample.WinPhoneSL { /// <summary> /// Provides access to string resources. /// </summary> public class LocalizedStrings { private static AppResources _localizedResources = new AppResources(); pu...
AndreiMisiukevich/FFImageLoading
samples/ImageLoading.Forms.Sample/WinPhoneSL/FFImageLoading.Forms.Sample.WinPhoneSL/LocalizedStrings.cs
C#
mit
407
package com.aws.global.dao; import java.util.ArrayList; import com.aws.global.classes.Pizza; import com.aws.global.common.base.BaseDAO; import com.aws.global.mapper.PizzaRowMapper; public class PizzaDAO extends BaseDAO{ //SQL Statement when user adds a pizza to his inventory public void addPizza(String pizzaName...
sethbusque/pizzaccio
src_custom/com/aws/global/dao/PizzaDAO.java
Java
mit
1,598
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "DataStatistic.h" #import "TalkingData.h" #import "TalkingDataSMS.h" FOUNDATION_EXPORT double DataStatisticVersionNumber; FOUNDATION_EXPORT const unsigned char DataStatisticVersionString[];
howardhou/DataStatistic
Example/Pods/Target Support Files/DataStatistic/DataStatistic-umbrella.h
C
mit
248
var test = require('./tape') var mongojs = require('../index') test('should export bson types', function (t) { t.ok(mongojs.Binary) t.ok(mongojs.Code) t.ok(mongojs.DBRef) t.ok(mongojs.Double) t.ok(mongojs.Long) t.ok(mongojs.MinKey) t.ok(mongojs.MaxKey) t.ok(mongojs.ObjectID) t.ok(mongojs.ObjectId) ...
mafintosh/mongojs
test/test-expose-bson-types.js
JavaScript
mit
408
class SuchStreamingBot class << self def matches? text !!(text =~ /hello world/) end end end
coleww/twitter_bot_generator
such_streaming_bot/src/such_streaming_bot.rb
Ruby
mit
115
# Frontend de NOMS/NMX/Normas Los tres frontend se encuentran en ramas distintas de desarrollo: * master ---> http://noms.imco.org.mx * nmx ---> http://nmx.imco.org.mx * normas ---> http://normas.imco.org.mx Para cambiar de ramas utilice el comando de GIT `git checkout ${BRANCH}` La construcción del siti...
imco/nmx
frontend/README.md
Markdown
mit
603
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations // associées à un assembly. [assembly:...
Monkios/ClientServerGame
ConsoleClient/Properties/AssemblyInfo.cs
C#
mit
1,546
package com.instaclick.filter; /** * Defines a behavior that should be implement by all filter * * @author Fabio B. Silva <fabio.bat.silva@gmail.com> */ public interface DataFilter { /** * Adds the given {@link Data} if it does not exists * * @param data * * @return <b>TRUE</b> if the ...
instaclick/PDI-Plugin-Step-BloomFilter
ic-filter/src/main/java/com/instaclick/filter/DataFilter.java
Java
mit
780
#include <bits/stdc++.h> using namespace std; int count_consecutive(string &s, int n, int k, char x) { int mx_count = 0; int x_count = 0; int curr_count = 0; int l = 0; int r = 0; while (r < n) { if (x_count <= k) { if (s[r] == x) x_count++; r+...
sazid/codes
problem_solving/codeforces/676C.cpp
C++
mit
881
# Expectacle [![Gem Version](https://badge.fury.io/rb/expectacle.svg)](https://badge.fury.io/rb/expectacle) Expectacle ("expect + spectacle") is a small wrapper of `pty`/`expect`. It can send commands (command-list) to hosts (including network devices etc) using telnet/ssh session. Expectacle is portable (instead of ...
stereocat/expectacle
README.md
Markdown
mit
10,236
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <title>font-image test</title> <script src="../../webcomponentsjs/webcomponents-lite.js"></script> <script src="../../web-compon...
ryanburns23/font-image
test/font-image_test.html
HTML
mit
802
using BaxterWorks.B2.Exceptions; using BaxterWorks.B2.Types; namespace BaxterWorks.B2.Extensions { public static class BucketExtensions { public static Bucket GetOrCreateBucket(this ServiceStackB2Api client, CreateBucketRequest request) { try { return c...
voltagex/b2-csharp
BaxterWorks.B2/Extensions/BucketExtensions.cs
C#
mit
2,003
.favorites-container{ margin-top: 16px; min-height: 350px; padding-bottom: 30px; font-family: Helvetica, Verdana; border-radius: 2px; background: rgba(255,255,255,0.8); border: solid 2px rgba(255,255,255,0.3); -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.2); -moz-box-shadow: 2px...
mdimitrov/oldcrafts
css/favorites.css
CSS
mit
808
/* * The MIT License * * Copyright 2017 Arnaud Hamon * * 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...
PtitNoony/FxTreeMap
src/main/java/com/github/ptitnoony/components/fxtreemap/MapData.java
Java
mit
3,281
# Potrubi gemName = 'potrubi' #requireList = %w(mixin/bootstrap) #requireList.each {|r| require_relative "#{gemName}/#{r}"} __END__
ianrumford/potrubi
lib/potrubi/potrubi.rb
Ruby
mit
137
import numpy as np import warnings from .._explainer import Explainer from packaging import version torch = None class PyTorchDeep(Explainer): def __init__(self, model, data): # try and import pytorch global torch if torch is None: import torch if version.parse(tor...
slundberg/shap
shap/explainers/_deep/deep_pytorch.py
Python
mit
16,170
using Lemonade.Data.Entities; namespace Lemonade.Data.Commands { public interface IUpdateFeature { void Execute(Feature feature); } }
thesheps/lemonade
src/Lemonade.Data/Commands/IUpdateFeature.cs
C#
mit
157
# We borrow heavily from the kernel build setup, though we are simpler since # we don't have Kconfig tweaking settings on us. # The implicit make rules have it looking for RCS files, among other things. # We instead explicitly write all the rules we care about. # It's even quicker (saves ~200ms) to pass -r on the comm...
eric-dowty/eric-dowty.github.io
apps/rails-pub-sub-node-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build/Makefile
Makefile
mit
13,890
/* Misojs Codemirror component */ var m = require('mithril'), basePath = "external/codemirror/", pjson = require("./package.json"); // Here we have a few fixes to make CM work in node - we only setup each, // if they don't already exist, otherwise we would override the browser global.document = global.document || ...
jsguy/misojs-codemirror-component
codemirror.component.js
JavaScript
mit
2,410
// github package provides an API client for github.com // // Copyright (C) 2014 Yohei Sasaki // // Licensed under the Apache License, Version 2.0 (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.apache.org/l...
speedland/wcg
supports/github/api.go
GO
mit
3,000
<?php namespace Oro\Bundle\AttachmentBundle\Tests\Unit\Entity; use Oro\Bundle\AttachmentBundle\Entity\File; use Oro\Bundle\UserBundle\Entity\User; use Oro\Component\Testing\Unit\EntityTestCaseTrait; use Oro\Component\Testing\Unit\EntityTrait; use Symfony\Component\HttpFoundation\File\File as ComponentFile; class Fil...
orocrm/platform
src/Oro/Bundle/AttachmentBundle/Tests/Unit/Entity/FileTest.php
PHP
mit
3,094
require 'json_diff/version' # Provides helper methods to compare object trees (like those generated by JSON.parse) # and generate a list of their differences. module JSONDiff # Generates an Array of differences between the two supplied object trees with Hash roots. # # @param a [Hash] the left hand side of the c...
chrisvroberts/json_diff
lib/json_diff.rb
Ruby
mit
2,550
<html> <head> <meta http-equiv="Page-Enter" content="revealTrans(Duration=4,Transition=12)"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="language" content="en" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <meta name="viewport" content="width=device-width"...
timorleste/health-facility
att/health_facilities_dbf257.html
HTML
mit
5,889
--- layout: page title: Erickson 50th Anniversary date: 2016-05-24 author: Kyle Fitzpatrick tags: weekly links, java status: published summary: Ut porta eleifend purus, vitae semper nunc blandit. banner: images/banner/office-01.jpg booking: startDate: 09/28/2017 endDate: 09/29/2017 ctyhocn: ATLNBHX groupCode: E...
KlishGroup/prose-pogs
pogs/A/ATLNBHX/E5A/index.md
Markdown
mit
2,613
import { observable, action } from 'mobx'; import Fuse from 'fuse.js'; import Activity from './../utils/Activity'; import noop from 'lodash/noop'; import uniqBy from 'lodash/uniqBy'; const inactive = Activity(500); export default class Story { @observable keyword = ''; @observable allStories = []; @observable s...
nadimtuhin/facebook-activity-monitor
src/content/store/Story.js
JavaScript
mit
1,020
# -*- coding: utf-8 -*- from __future__ import unicode_literals import time import curses from . import docs from .content import SubmissionContent, SubredditContent from .page import Page, PageController, logged_in from .objects import Navigator, Color, Command from .exceptions import TemporaryFileError class Subm...
shaggytwodope/rtv
rtv/submission_page.py
Python
mit
11,574
#include <zombye/core/game.hpp> #include <zombye/gameplay/camera_follow_component.hpp> #include <zombye/gameplay/game_states.hpp> #include <zombye/gameplay/gameplay_system.hpp> #include <zombye/gameplay/states/menu_state.hpp> #include <zombye/gameplay/states/play_state.hpp> #include <zombye/gameplay/state_component.hpp...
kasoki/project-zombye
src/source/zombye/gameplay/gameplay_system.cpp
C++
mit
1,741
'use strict'; const Schemas = require('../server/schemas'); const Code = require('code'); const Lab = require('lab'); const expect = Code.expect; const lab = exports.lab = Lab.script(); const describe = lab.describe; const it = lab.it; describe('server/schemas.todoSchema', () => { it('validates object', (done)...
genediazjr/hapitodo
test/schemasTest.js
JavaScript
mit
1,261
package mil.nga.geopackage.extension.rtree; import org.junit.Test; import java.sql.SQLException; import mil.nga.geopackage.CreateGeoPackageTestCase; /** * Test RTree Extension from a created database * * @author osbornb */ public class RTreeIndexExtensionCreateTest extends CreateGeoPackageTestCase { /** ...
ngageoint/geopackage-android
geopackage-sdk/src/androidTest/java/mil/nga/geopackage/extension/rtree/RTreeIndexExtensionCreateTest.java
Java
mit
690
#ifndef MESSAGEFILE_H #define MESSAGEFILE_H #include "xmlserializable.h" #include <QList> #include <QByteArray> #include <QImage> #include "messagekey.h" #include "messagetypemix.h" namespace Velasquez { class DrawingElement; } namespace MoodBox { #define MESSAGE_FILE_EXTENSION ".mbm" #de...
vorushin/moodbox_aka_risovaska
client/messagefile.h
C
mit
4,309
# Feathers-Vue > A Vue 2 and FeathersJS 2 fullstack app with authentication, email verification, and email support.&#34; ## About This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications and Vue 2 with Server Side Rendering. This project is not fin...
codingfriend1/Feathers-Vue
README.md
Markdown
mit
4,364
/** * @module popoff/overlay * * Because overlay-component is hopelessly out of date. * This is modern rewrite. */ const Emitter = require('events').EventEmitter; const inherits = require('inherits'); const extend = require('xtend/mutable'); module.exports = Overlay; /** * Initialize a new `Overlay`. * * ...
dfcreative/popoff
overlay.js
JavaScript
mit
2,294
#!/usr/bin/env python import os import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Test label reading from an MNI tag file # # The current directory must be writeable. # try: fname = "mni-tagtest.tag" channel = open(fname, "wb") ...
timkrentz/SunTracker
IMU/VTK-6.2.0/IO/MINC/Testing/Python/TestMNITagPoints.py
Python
mit
3,826
<div class="commune_descr limited"> <p> Gasville-Oisème est une commune localisée dans le département de l'Eure-et-Loir en Centre. Elle totalisait 1&nbsp;176 habitants en 2008.</p> <p>La commune propose quelques équipements sportifs, elle propose entre autres un centre d'équitation et une boucle de randonnée.<...
donaldinou/frontend
src/Viteloge/CoreBundle/Resources/descriptions/28173.html
HTML
mit
1,962
// The MIT License (MIT) // // Copyright (c) 2015 Rasmus Mikkelsen // https://github.com/rasmus/EventFlow // // 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...
liemqv/EventFlow
Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs
C#
mit
3,367
if (isset($_POST['upload'])) { $target = "../img".basename($_FILES['image']['name']); $image = $_FILES['image']['name']; $msg = ""; $sql = "UPDATE user SET avatar='$image' WHERE id='$id'"; mysqli_query($conn, $sql); if (move_uploaded_file($_FILES['image']['tmp_name'], $target)) { $msg = "Uploaded file...
vicols92/linkify
resources/includes/TRASH/KANSKESPARA.php
PHP
mit
3,055
module Twitter class JSONStream protected def reconnect_after timeout @reconnect_callback.call(timeout, @reconnect_retries) if @reconnect_callback if timeout == 0 reconnect @options[:host], @options[:port] start_tls if @options[:ssl] else EventMachine.add_timer(timeo...
neurodrone/earthquake
lib/earthquake/ext.rb
Ruby
mit
1,538
namespace Jello.Nodes { public abstract class TerminalNode<T> : Node<T> where T : class { public override INode GetSingleChild() { return null; } } }
jordanwallwork/jello
src/Jello/Nodes/TerminalNode.cs
C#
mit
197
module Dotify class Version # The Checkup class is responsible for # reaching out to Rubygems.org and retrieving # the latest gem version. class Checker class << self attr_reader :result, :resp end def self.check_latest_release! @result = (latest == Version.build.le...
mattdbridges/dotify
lib/dotify/version/checker.rb
Ruby
mit
622
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 Fastcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license...
RandCoin/randcoin
src/irc.cpp
C++
mit
10,568
package fyskam.fyskamssngbok; import android.app.Activity; import android.app.ActionBar; import android.app.Fragment; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.content.SharedPreferences; import andro...
fyskam/FysKams-sangbok
FysKamsSangbok/app/src/main/java/fyskam/fyskamssngbok/NavigationDrawerFragment.java
Java
mit
10,600
/*************************************************************************/ /* surface_tool.h */ /*************************************************************************/ /* This file is part of: */ /* ...
tomreyn/godot
scene/resources/surface_tool.h
C
mit
5,483
#pragma once class Menu : public QWidget { private: QGridLayout layout; QPushButton play_single; QPushButton play_2v2; QPushButton play_multi; public: Menu(Window *window, Game *game); };
dawidd6/qtictactoe
include/Menu.h
C
mit
201
import uuid from uqbar.objects import new from supriya.patterns.Pattern import Pattern class EventPattern(Pattern): ### CLASS VARIABLES ### __slots__ = () ### SPECIAL METHODS ### def _coerce_iterator_output(self, expr, state=None): import supriya.patterns if not isinstance(expr,...
Pulgama/supriya
supriya/patterns/EventPattern.py
Python
mit
1,545
/* Copyright (c) 2011 Andrei Mackenzie 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...
crazyfacka/text2meo
data/lib/levenshtein.js
JavaScript
mit
1,980
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pervasive_Heart_Monitor { class Program { static bool checknum(string s) { return (s.Contains("1") || s.Contains("2") || s.Contains("3") || s.Contains("4") |...
SurgicalSteel/Competitive-Programming
Kattis-Solutions/Pervasive Heart Monitor.cs
C#
mit
1,202
//! \file ArcSG.cs //! \date 2018 Feb 01 //! \brief 'fSGX' multi-frame image container. // // Copyright (C) 2018 by morkt // // 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 Softwar...
morkt/GARbro
ArcFormats/Ivory/ArcSG.cs
C#
mit
2,865
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace track_downloader { class Program { static void Main(string[] args) { string[] blacklisted = Console.ReadLine().Split(); List<string> filenames =...
Avarea/Programming-Fundamentals
Lists/02TrackDownloader/Program.cs
C#
mit
1,263
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import GroupPage from './GroupPage.js'; import GroupNotFoundPage from './GroupNotFoundPage.js'; const Group = ({ isValid, groupId }) => (isValid ? <GroupPage groupId={groupId} /> : <GroupNotFoundPage groupId={groupId} />); Group.propTy...
logger-app/logger-app
src/containers/Group/Group.js
JavaScript
mit
545
using System; using System.Data.Entity; using System.Data.Entity.Migrations; using SimplePersistence.Example.Console.Models.Logging; using SimplePersistence.Example.Console.UoW.EF.Mapping; namespace SimplePersistence.Example.Console.UoW.EF.Migrations { public sealed class Configuration : DropCreateDatabaseIfModelC...
gravity00/SimplePersistence
Examples/SimplePersistence.Example.Console/SimplePersistence.Example.Console.UoW.EF/Migrations/Configuration.cs
C#
mit
2,232
class CreateItineraries < ActiveRecord::Migration def change create_table :itineraries do |t| t.references :user t.timestamps null: false end end end
nyc-fiddler-crabs-2015/Velox
db/migrate/20150328200056_create_itineraries.rb
Ruby
mit
176
// node-vcdiff // https://github.com/baranov1ch/node-vcdiff // // Copyright 2014 Alexey Baranov <me@kotiki.cc> // Released under the MIT license #ifndef VCDIFF_H_ #define VCDIFF_H_ #include <memory> #include <string> #include <node.h> #include <node_object_wrap.h> #include <uv.h> #include <v8.h> namespace open_vcdi...
baranov1ch/node-vcdiff
src/vcdiff.h
C
mit
2,632
import assert from 'assert' import { THREAD_COUNT, CURSOR_BUFFER_SIZE, THREAD_COUNTER_BYTE_LENGTH, } from './constants' import { InputCursor, StoredEventBatchPointer, StoredEventPointer, } from './types' const checkThreadArrayLength = (threadArray: Array<number>): void => { assert.strictEqual( thread...
reimagined/resolve
packages/runtime/adapters/eventstore-adapters/eventstore-base/src/cursor-operations.ts
TypeScript
mit
3,122
--- layout: post title: Week 1 Review --- ## Weekly Review (8/30/15) It's Sunday afternoon on the 30th of August, and I've finally managed to set this Jekyll thing up, which means I can now talk about my time in the class this past week! Hooray! Besides being the only class I have on Mondays, Wednesdays, and Fridays...
ibruton/ibruton.github.io
_posts/2015-8-30-Week-1-Review.md
Markdown
mit
1,577
'use strict' let ugly = require('gulp-uglify') ,gulp = require('gulp') ,watch = require('gulp-watch') ,plumber = require('gulp-plumber') ,newer = require('gulp-newer') ,stylus = require('gulp-stylus') ,jade = require('gulp-jade') ,concat = require('gulp-concat') ,rename = require('gulp-rename') ,runSequence = require...
jade-press/jade-press.org
gulpfile.js
JavaScript
mit
2,290
<section class="user-job-wrapper"> <user-job-header></user-job-header> <div class="main-title primary" ng-show="!ctrl.hasInvoice && ctrl.showStatus"> <div class="job-owner-header"> <!-- Choose candidate --> <div ng-show="!ctrl.accepted && !ctrl.will_perform"> <h2...
justarrived/just-match-frontend
src/app/common/templates/company-job.html
HTML
mit
3,011
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="generator" content="Doxygen 1.8.13"/> <link rel="stylesheet" type="text/css" href="search...
drm343/MyWorld
docs/search/all_3.html
HTML
mit
1,020
<?php require_once __DIR__.'/../../../vendor/autoload.php'; require 'templates/base.php'; session_start(); $client = new Google_Client(); $client->setApplicationName("Slide-Summarizer"); if ($credentials_file = getOAuthCredentialsFile()) { // set the location manually $client->setAuthConfig($credentials_file)...
esimkowitz/Slide-Summarizer
web/public/views/oauth2callback.php
PHP
mit
998
/** --------------------------------------------------------------------------- * -*- c++ -*- * @file: particlebody.cpp * * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> * MIT License, see LICENSE file for more details. * ----------------------------------------------------------------------------...
ymherklotz/YAGE
yage/physics/particlebody.cpp
C++
mit
1,426
/******************************************************************************** ** Form generated from reading UI file 'modifystationdlg.ui' ** ** Created by: Qt User Interface Compiler version 5.7.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! **********************************...
hustwyk/trainTicket
GeneratedFiles/ui_modifystationdlg.h
C
mit
3,909
package hu.autsoft.nytimes.exception; public class OkHttpException extends RuntimeException { public OkHttpException(Throwable cause) { super(cause); } }
chriske/nytimes_api_demo
app/src/main/java/hu/autsoft/nytimes/exception/OkHttpException.java
Java
mit
172
const Lib = require("../src/main"); const assert = require("assert"); describe("plain object output", function () { context("for `JSON.stringify` serializable objects", function () { it("should have resembling structure", function () { const obj1 = { a: 1, b: "b", c: true }; const res = Lib.write(obj...
awto/effectfuljs
packages/serialization/test/main.js
JavaScript
mit
27,905
#include "GameCtrl.h" char title[16][30]= { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,1,1,1,1,1,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,1,0}, {0,1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0}, {0,1,1,1,1,1,0,1,0...
Gomdoree/Snake
src/main.cpp
C++
mit
3,451
require 'simplecov' $VERBOSE = nil #FIXME SimpleCov.start require 'minitest/autorun' require 'minitest/pride' require_relative '../lib/cw' class TestNumbers < MiniTest::Test ROOT = File.expand_path File.dirname(__FILE__) + '/../' def setup @dsl = CW::Dsl.new end def teardown @dsl = nil end def...
mjago/CW
test/test_dsl.rb
Ruby
mit
2,411
package se.leiflandia.lroi.utils; import android.accounts.Account; import android.accounts.AccountManager; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import se.leiflandia.lroi.auth.model.AccessToken; import se.leiflandia.lroi.auth.model.UserCredentials; p...
Wadpam/lets-the-right-one-in
lroi-lib/src/main/java/se/leiflandia/lroi/utils/AuthUtils.java
Java
mit
3,349
/* Copyright (C) 2001-2015 Peter Selinger. This file is part of Potrace. It is free software and it is covered by the GNU General Public License. See the file COPYING for details. */ #ifndef BACKEND_GEO_H #define BACKEND_GEO_H #include "potracelib.h" int page_geojson(FILE *fout, potrace_path_t *plist, int as_...
ossimlabs/ossim-plugins
potrace/src/backend_geojson.h
C
mit
360
docker run -d \ --name=sickbeard \ -v $(pwd)/data:/data \ -v $(pwd)/config/config.ini:/app/config.ini \ -p 8081:8081 \ chamunks/alpine-sickbeard-arm:latest
chamunks/alpine-sickbeard-arm
run.sh
Shell
mit
171
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Xml.Linq; using Reportz.Scripting.Attributes; using Reportz.Scripting.Classes; using Reportz.Scripting.Interfaces; namespace Reportz.Scripting.Commands { [ScriptElementAlias("execute-script")] public class...
LazyTarget/Reportz
Reportz.Scripting/Commands/ExecuteScriptCommand.cs
C#
mit
4,213
(function () { 'use strict'; angular .module('crimes.routes') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('crimes', { abstract: true, url: '/crimes', template: '<ui-view/>' }) ...
ravikumargh/Police
modules/crimes/client/config/crime.client.routes.js
JavaScript
mit
1,154
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" // Not exported @interface GQDWPColumn : NSObject { long long mIndex; float mWidth; float mSpacing; _Bool mHasSpacing; } + (const struct St...
matthewsot/CocoaSharp
Headers/PrivateFrameworks/iWorkImport/GQDWPColumn.h
C
mit
492
// // AppDelegate.h // discovery // // Created by Karthik Rao on 1/20/17. // Copyright © 2017 Karthik Rao. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
raokarthik74/Discovery
discovery/discovery/AppDelegate.h
C
mit
280
<?php if( $kind = ic_get_post( 'kind' ) ) { if( $kind == 'c' || $kind == 'cod' ) { $sym = '#'; $kind = 'cod'; } else if( $kind == 'l' || $kind == 'loc' ) { $sym = '@'; $kind = 'loc'; } else if( $kind == 's' || $kind == 'str' ) { $sym = '*'; $kind = 'str'; } else if( $kind == 'u' || $kind == 'usr' ) { $sym = '+'; $k...
mhaddir/draco
apps/filters/filters-news.php
PHP
mit
1,680
class IssueTrackerService < Service validate :one_issue_tracker, if: :activated?, on: :manual_change default_value_for :category, 'issue_tracker' # Pattern used to extract links from comments # Override this method on services that uses different patterns # This pattern does not support cross-project refere...
dplarson/gitlabhq
app/models/project_services/issue_tracker_service.rb
Ruby
mit
3,048
/** * Compile sass files to css using compass */ module.exports = { dev: { options: { config: 'config.rb', environment: 'development' } }, };
timothytran/ngModular
grunt/compass.js
JavaScript
mit
192
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cognito.Stripe.Classes { public class FileUpload : BaseObject { public override string Object { get { return "file_upload"; } } public string Purpose { get; set; } public int Size { get; set; } public string Typ...
vc3/Cognito.Stripe
Cognito.Stripe/Classes/FileUpload.cs
C#
mit
377
class ChangeIntegerLimits < ActiveRecord::Migration def change change_column :projects, :federal_contribution, :integer, limit: 8 change_column :projects, :total_eligible_cost, :integer, limit: 8 end end
anquinn/infrastructure_projects
db/migrate/20170513191438_change_integer_limits.rb
Ruby
mit
214
<?php exit; include_once "config/config.php"; include_once "engine/fhq_class_security.php"; include_once "engine/fhq_class_database.php"; include_once "engine/fhq_class_mail.php"; if(!isset($_GET['email'])) { echo "not found parametr ?email="; exit; }; $email = $_GET['email']; echo "send to mail: ".$email."<br...
SibirCTF/2014-jury-system-fhq
php/fhq/test_mail.php
PHP
mit
568
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigiq_regkey_license_as...
F5Networks/f5-ansible-modules
ansible_collections/f5networks/f5_modules/plugins/modules/bigiq_regkey_license_assignment.py
Python
mit
19,962
<?php /** * * @author thiago */ interface ConsoleFactory { public function create_console_microsoft(); public function create_console_sony(); }
thiagorthomaz/design-patterns
abstractFactory/ConsoleFactory.class.php
PHP
mit
153
<!DOCTYPE html> <html lang="en-us"> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=devic...
mikeloll/mikeloll.github.io.jekyll
_site/tag/systemjs/index.html
HTML
mit
3,998
class ApplicationController < Sinatra::Base require 'bundler' Bundler.require end
timrourke/dotEnv
controllers/_ApplicationController.rb
Ruby
mit
84
// JSON Object of all of the icons and their tags export default { apple : { name : 'apple', color: '#be0000', image : 'apple67.svg', tags: ['apple', 'fruit', 'food'], categories: ['food', 'supermarket'] }, bread : { name : 'bread', color: '#c26b24', image : 'bread14.svg', tag...
una/heiroglyph
app/js/data/iconListInfo.js
JavaScript
mit
1,423
#!/bin/bash # # bash strict mode set -euo pipefail IFS=$'\n\t' USAGE="Usage:\n Requires AWS CLI tools and credentials configured.\n ./tool.sh install mySourceDirectory\n ./tool.sh create mySourceDirectory myAWSLambdaFunctionName myIAMRoleARN\n ./tool.sh update mySourceDirectory myAWSLambdaFunctionName\n ./tool.sh invo...
Vilsepi/after
backend/tool.sh
Shell
mit
2,234
package sudoku import "fmt" const ( n = 3 N = 3 * 3 ) var ( resolved bool ) func solveSudoku(board [][]byte) [][]byte { // box size 3 row := make([][]int, N) columns := make([][]int, N) box := make([][]int, N) res := make([][]byte, N) for i := 0; i < N; i++ { row[i] = make([]int, N+1) columns[i] = make...
Catorpilor/LeetCode
37_sudoku_solver/sudoku.go
GO
mit
3,258
<div> The version string to use when patching assembly version files. </div>
ngeor/nunitrunner-plugin
src/main/resources/net/ngeor/plugins/nunitrunner/MSBuildBuilder/help-assemblyVersion.html
HTML
mit
79
return function(parameters) return { position = parameters.position or {x = 0, y = 0, z = 0}, scale = parameters.scale or {x = 0, y = 0}, anchors = parameters.anchors or {up = 1, left = 1, right = 1, down = 1}, offset = parameters.offset or {up = 0, left = 0, right = 0, d...
Andre-LA/Ink
gui/components/rect_transform.lua
Lua
mit
432
#include "Fractal.h" Color::Color() : r(0.0), g(0.0), b(0.0) {} Color::Color(double rin, double gin, double bin) : r(rin), g(gin), b(bin) {} Fractal::Fractal(int width, int height) : width_(width), height_(height), center_x_(0.0), center_y_(0.0), max_distance_sqr_(4.0), max_iteration_(32) { pixel_size_ = ...
theDrake/opengl-experiments
Fractals/Fractals/Fractal.cpp
C++
mit
2,212
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using Mechanical3.Core; namespace Mechanical3.IO.FileSystems { //// NOTE: For still more speed, you could ditch abstract file systems, file paths and streams alltogether, and just use byte arrays directly. //...
MechanicalMen/Mechanical3
source/Mechanical3.Portable/IO/FileSystems/SemiThreadSafeMemoryFileSystemReader.cs
C#
mit
17,319
http_path = "/" css_dir = "assets/css/src" sass_dir = "assets/sass" images_dir = "assets/img" javascripts_dir = "assets/js" fonts_dir = "assets/font" http_fonts_path = "assets/font" http_images_path = "assets/img" output_style = :nested relative_assets = false line_comments = fal...
LunneMarketingGroup/Grunt-Website-Template
config.rb
Ruby
mit
323