repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
nylnook/nylnook-website | src/documents/en/blog/krita-brushes-pack-v2.html.md | 7656 | ---
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
---

Time for update ! I'm happ... | mit |
thedavisproject/davis-web | src/middleware/initContext.js | 87 | module.exports = (req, res, next) => {
req.context = req.context || {};
next();
};
| mit |
achan/angular-previewer | app/scripts/services/imagePreviewService.js | 392 | '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... | mit |
gemvein/cooperative | spec/models/group_spec.rb | 768 | 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 { ... | mit |
Balise42/sattools | include/dimacsgenerator.h | 619 | #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;
... | mit |
samvartaka/keyak-python | utils.py | 1775 | # -*- 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... | mit |
jilse/jilse.github.io | _posts/2016/2016-07-27-random-2016-Lake-Superior-sailing-picutres.md | 953 | ---
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... | mit |
msavela/deliver | middleware_test.go | 2081 | 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... | mit |
plotly/plotly.py | packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py | 482 | 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,
... | mit |
datosgobar/portal-andino | Dockerfile | 1633 | # 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 ... | mit |
jakegough/jaytwo.CommonLib | CommonLib.Futures/Numbers/MathUtility.cs | 534 | 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... | mit |
AndreiMisiukevich/FFImageLoading | samples/ImageLoading.Forms.Sample/WinPhoneSL/FFImageLoading.Forms.Sample.WinPhoneSL/LocalizedStrings.cs | 407 | 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... | mit |
sethbusque/pizzaccio | src_custom/com/aws/global/dao/PizzaDAO.java | 1598 | 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... | mit |
howardhou/DataStatistic | Example/Pods/Target Support Files/DataStatistic/DataStatistic-umbrella.h | 248 | #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[];
| mit |
mafintosh/mongojs | test/test-expose-bson-types.js | 408 | 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)
... | mit |
coleww/twitter_bot_generator | such_streaming_bot/src/such_streaming_bot.rb | 115 | class SuchStreamingBot
class << self
def matches? text
!!(text =~ /hello world/)
end
end
end
| mit |
imco/nmx | frontend/README.md | 603 | # 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... | mit |
Monkios/ClientServerGame | ConsoleClient/Properties/AssemblyInfo.cs | 1546 | 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:... | mit |
instaclick/PDI-Plugin-Step-BloomFilter | ic-filter/src/main/java/com/instaclick/filter/DataFilter.java | 780 | 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 ... | mit |
sazid/codes | problem_solving/codeforces/676C.cpp | 881 | #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+... | mit |
stereocat/expectacle | README.md | 10236 | # Expectacle
[](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 ... | mit |
ryanburns23/font-image | test/font-image_test.html | 802 | <!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... | mit |
voltagex/b2-csharp | BaxterWorks.B2/Extensions/BucketExtensions.cs | 2003 | 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... | mit |
mdimitrov/oldcrafts | css/favorites.css | 808 | .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... | mit |
PtitNoony/FxTreeMap | src/main/java/com/github/ptitnoony/components/fxtreemap/MapData.java | 3281 | /*
* 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... | mit |
ianrumford/potrubi | lib/potrubi/potrubi.rb | 137 |
# Potrubi
gemName = 'potrubi'
#requireList = %w(mixin/bootstrap)
#requireList.each {|r| require_relative "#{gemName}/#{r}"}
__END__
| mit |
slundberg/shap | shap/explainers/_deep/deep_pytorch.py | 16170 | 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... | mit |
thesheps/lemonade | src/Lemonade.Data/Commands/IUpdateFeature.cs | 157 | using Lemonade.Data.Entities;
namespace Lemonade.Data.Commands
{
public interface IUpdateFeature
{
void Execute(Feature feature);
}
} | mit |
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 | 13890 | # 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... | mit |
jsguy/misojs-codemirror-component | codemirror.component.js | 2410 | /*
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 || ... | mit |
speedland/wcg | supports/github/api.go | 3000 | // 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... | mit |
orocrm/platform | src/Oro/Bundle/AttachmentBundle/Tests/Unit/Entity/FileTest.php | 3094 | <?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... | mit |
chrisvroberts/json_diff | lib/json_diff.rb | 2550 | 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... | mit |
timorleste/health-facility | att/health_facilities_dbf257.html | 5889 | <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"... | mit |
KlishGroup/prose-pogs | pogs/A/ATLNBHX/E5A/index.md | 2613 | ---
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... | mit |
nadimtuhin/facebook-activity-monitor | src/content/store/Story.js | 1020 | 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... | mit |
shaggytwodope/rtv | rtv/submission_page.py | 11574 | # -*- 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... | mit |
kasoki/project-zombye | src/source/zombye/gameplay/gameplay_system.cpp | 1741 | #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... | mit |
genediazjr/hapitodo | test/schemasTest.js | 1261 | '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)... | mit |
ngageoint/geopackage-android | geopackage-sdk/src/androidTest/java/mil/nga/geopackage/extension/rtree/RTreeIndexExtensionCreateTest.java | 690 | 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 {
/**
... | mit |
vorushin/moodbox_aka_risovaska | client/messagefile.h | 4309 | #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... | mit |
codingfriend1/Feathers-Vue | README.md | 4364 | # Feathers-Vue
> A Vue 2 and FeathersJS 2 fullstack app with authentication, email verification, and email support."
## 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... | mit |
dfcreative/popoff | overlay.js | 2294 | /**
* @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`.
*
* ... | mit |
timkrentz/SunTracker | IMU/VTK-6.2.0/IO/MINC/Testing/Python/TestMNITagPoints.py | 3826 | #!/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")
... | mit |
donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/28173.html | 1962 | <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 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.<... | mit |
liemqv/EventFlow | Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs | 3367 | // 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... | mit |
vicols92/linkify | resources/includes/TRASH/KANSKESPARA.php | 3055 | 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... | mit |
neurodrone/earthquake | lib/earthquake/ext.rb | 1538 | 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... | mit |
jordanwallwork/jello | src/Jello/Nodes/TerminalNode.cs | 197 | namespace Jello.Nodes
{
public abstract class TerminalNode<T> : Node<T> where T : class
{
public override INode GetSingleChild()
{
return null;
}
}
} | mit |
mattdbridges/dotify | lib/dotify/version/checker.rb | 622 | 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... | mit |
RandCoin/randcoin | src/irc.cpp | 10568 | // 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... | mit |
fyskam/FysKams-sangbok | FysKamsSangbok/app/src/main/java/fyskam/fyskamssngbok/NavigationDrawerFragment.java | 10600 | 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... | mit |
tomreyn/godot | scene/resources/surface_tool.h | 5483 | /*************************************************************************/
/* surface_tool.h */
/*************************************************************************/
/* This file is part of: */
/* ... | mit |
dawidd6/qtictactoe | include/Menu.h | 201 | #pragma once
class Menu : public QWidget
{
private:
QGridLayout layout;
QPushButton play_single;
QPushButton play_2v2;
QPushButton play_multi;
public:
Menu(Window *window, Game *game);
};
| mit |
Pulgama/supriya | supriya/patterns/EventPattern.py | 1545 | 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,... | mit |
crazyfacka/text2meo | data/lib/levenshtein.js | 1980 | /*
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... | mit |
SurgicalSteel/Competitive-Programming | Kattis-Solutions/Pervasive Heart Monitor.cs | 1202 | 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") |... | mit |
morkt/GARbro | ArcFormats/Ivory/ArcSG.cs | 2865 | //! \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... | mit |
Avarea/Programming-Fundamentals | Lists/02TrackDownloader/Program.cs | 1263 | 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 =... | mit |
logger-app/logger-app | src/containers/Group/Group.js | 545 | 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... | mit |
gravity00/SimplePersistence | Examples/SimplePersistence.Example.Console/SimplePersistence.Example.Console.UoW.EF/Migrations/Configuration.cs | 2232 | 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... | mit |
nyc-fiddler-crabs-2015/Velox | db/migrate/20150328200056_create_itineraries.rb | 176 | class CreateItineraries < ActiveRecord::Migration
def change
create_table :itineraries do |t|
t.references :user
t.timestamps null: false
end
end
end
| mit |
baranov1ch/node-vcdiff | src/vcdiff.h | 2632 | // 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... | mit |
reimagined/resolve | packages/runtime/adapters/eventstore-adapters/eventstore-base/src/cursor-operations.ts | 3122 | 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... | mit |
ibruton/ibruton.github.io | _posts/2015-8-30-Week-1-Review.md | 1577 | ---
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... | mit |
jade-press/jade-press.org | gulpfile.js | 2290 |
'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... | mit |
justarrived/just-match-frontend | src/app/common/templates/company-job.html | 3011 | <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... | mit |
drm343/MyWorld | docs/search/all_3.html | 1020 | <!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... | mit |
esimkowitz/Slide-Summarizer | web/public/views/oauth2callback.php | 998 | <?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)... | mit |
ymherklotz/YAGE | yage/physics/particlebody.cpp | 1426 | /** ---------------------------------------------------------------------------
* -*- c++ -*-
* @file: particlebody.cpp
*
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
* MIT License, see LICENSE file for more details.
* ----------------------------------------------------------------------------... | mit |
hustwyk/trainTicket | GeneratedFiles/ui_modifystationdlg.h | 3909 | /********************************************************************************
** 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!
**********************************... | mit |
chriske/nytimes_api_demo | app/src/main/java/hu/autsoft/nytimes/exception/OkHttpException.java | 172 | package hu.autsoft.nytimes.exception;
public class OkHttpException extends RuntimeException {
public OkHttpException(Throwable cause) {
super(cause);
}
}
| mit |
awto/effectfuljs | packages/serialization/test/main.js | 27905 | 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... | mit |
Gomdoree/Snake | src/main.cpp | 3451 | #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... | mit |
mjago/CW | test/test_dsl.rb | 2411 | 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... | mit |
Wadpam/lets-the-right-one-in | lroi-lib/src/main/java/se/leiflandia/lroi/utils/AuthUtils.java | 3349 | 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... | mit |
ossimlabs/ossim-plugins | potrace/src/backend_geojson.h | 360 | /* 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_... | mit |
chamunks/alpine-sickbeard-arm | run.sh | 171 | 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
| mit |
LazyTarget/Reportz | Reportz.Scripting/Commands/ExecuteScriptCommand.cs | 4213 | 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... | mit |
ravikumargh/Police | modules/crimes/client/config/crime.client.routes.js | 1154 | (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/>'
})
... | mit |
matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/GQDWPColumn.h | 492 | /*
* 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... | mit |
raokarthik74/Discovery | discovery/discovery/AppDelegate.h | 280 | //
// 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
| mit |
mhaddir/draco | apps/filters/filters-news.php | 1680 | <?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... | mit |
dplarson/gitlabhq | app/models/project_services/issue_tracker_service.rb | 3048 | 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... | mit |
timothytran/ngModular | grunt/compass.js | 192 | /**
* Compile sass files to css using compass
*/
module.exports = {
dev: {
options: {
config: 'config.rb',
environment: 'development'
}
},
};
| mit |
vc3/Cognito.Stripe | Cognito.Stripe/Classes/FileUpload.cs | 377 | 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... | mit |
anquinn/infrastructure_projects | db/migrate/20170513191438_change_integer_limits.rb | 214 | 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
| mit |
SibirCTF/2014-jury-system-fhq | php/fhq/test_mail.php | 568 | <?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... | mit |
F5Networks/f5-ansible-modules | ansible_collections/f5networks/f5_modules/plugins/modules/bigiq_regkey_license_assignment.py | 19962 | #!/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... | mit |
thiagorthomaz/design-patterns | abstractFactory/ConsoleFactory.class.php | 153 | <?php
/**
*
* @author thiago
*/
interface ConsoleFactory {
public function create_console_microsoft();
public function create_console_sony();
}
| mit |
mikeloll/mikeloll.github.io.jekyll | _site/tag/systemjs/index.html | 3998 | <!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... | mit |
timrourke/dotEnv | controllers/_ApplicationController.rb | 84 | class ApplicationController < Sinatra::Base
require 'bundler'
Bundler.require
end | mit |
una/heiroglyph | app/js/data/iconListInfo.js | 1423 | // 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... | mit |
Vilsepi/after | backend/tool.sh | 2234 | #!/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... | mit |
Catorpilor/LeetCode | 37_sudoku_solver/sudoku.go | 3258 | 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... | mit |
ngeor/nunitrunner-plugin | src/main/resources/net/ngeor/plugins/nunitrunner/MSBuildBuilder/help-assemblyVersion.html | 79 | <div>
The version string to use when patching assembly version files.
</div>
| mit |
Andre-LA/Ink | gui/components/rect_transform.lua | 432 | 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... | mit |
theDrake/opengl-experiments | Fractals/Fractals/Fractal.cpp | 2212 | #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_ = ... | mit |
MechanicalMen/Mechanical3 | source/Mechanical3.Portable/IO/FileSystems/SemiThreadSafeMemoryFileSystemReader.cs | 17319 | 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.
//... | mit |
LunneMarketingGroup/Grunt-Website-Template | config.rb | 323 | 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... | mit |