repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
KlishGroup/prose-pogs | pogs/W/WINWVHX/MOW/index.md | 2510 | ---
layout: page
title: Maddox - Oconnell Wedding
date: 2016-05-24
author: Emma Mcfarland
tags: weekly links, java
status: published
summary: Etiam eu accumsan lorem. Morbi faucibus velit nec.
banner: images/banner/meeting-01.jpg
booking:
startDate: 10/18/2017
endDate: 10/20/2017
ctyhocn: WINWVHX
groupCode: MOW... | mit |
DigDes/SoapCore | src/SoapCore.Tests/Wsdl/Services/INullableEnumService.cs | 355 | using System;
using System.ServiceModel;
namespace SoapCore.Tests.Wsdl.Services
{
[ServiceContract]
public interface INullableEnumService
{
[OperationContract]
NulEnum? GetEnum(string text);
}
public class NullableEnumService : INullableEnumService
{
public NulEnum? GetEnum(string text)
{
throw new N... | mit |
luin/Love-and-Peace | src/game.js | 508 | var Game = {
map: {
width: 980,
height: 62 * 12
},
tiles: {
size: 62,
count: [100, 12]
},
sprite: {
8: 'LAND_LEFT',
2: 'LAND_MID',
10: 'LAND_RIGHT',
9: 'LAND',
5: 'WATER_TOP',
12: 'WATER',
4: 'STONE_WITH_MONEY',
11: 'STONE',
6: 'CACTUS',
13: 'GRASS',
... | mit |
DriverCity/SPARK | src/smart_meter/doc/dev/demo_mode.md | 3474 | # Demo mode
Smart meter has a demo mode that is intended to make demonstrating the product and system-level testing easier.
Demo mode allows creating situations that would be hard to create otherwise (e.g. connection to cloud is lost between
price request and parking event registering). Demo mode is to be used in de... | mit |
giakki/uncss.io | dist/index.html | 5689 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | mit |
ddm/pcbmode | pcbmode/utils/excellon.py | 4661 | #!/usr/bin/python
import os
import re
from lxml import etree as et
import pcbmode.config as config
from . import messages as msg
# pcbmode modules
from . import utils
from .point import Point
def makeExcellon(manufacturer='default'):
"""
"""
ns = {'pcbmode':config.cfg['ns']['pcbmode'],
'svg... | mit |
mehmetbajin/gt-course-surveys | server/src/server/base/data/imports/imports.js | 635 | 'use strict';
import _ from 'lodash';
import bluebird from 'bluebird';
import fs from 'fs';
import requireDir from 'require-dir';
import Logger from '../../logger';
bluebird.promisifyAll(fs);
function main() {
const imports = _.chain(requireDir('./importers'))
.map('default')
.map((importer) => importer.ru... | mit |
bennidhamma/EmergeTk | server/Model/FriendlyNameAttribute.cs | 736 | // FriendlyNameAttribute.cs created with MonoDevelop
// User: ben at 1:31 P 19/03/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
namespace EmergeTk.Model
{
public class FriendlyNameAttribute : Attribute
{
string name;
public string Name {
get {
... | mit |
williamamed/Raptor.js | @raptorjs-production/troodon/Resources/category/js/app/view/GenericList.js | 1321 | Ext.define('Category.view.GenericList', {
extend: 'Ext.grid.Panel',
alias: 'widget.genericlist',
store: 'Generic',
title: Raptor.getTag('category_header'),
iconCls:'',
initComponent: function() {
this.columns = [{
header:Raptor.getTag('category_name'),
da... | mit |
slantstack/Slant | src/Slant/DataTypes/UnitsOfMeasure/VelocitySq.cs | 3292 | using System;
using static LanguageExt.Prelude;
namespace LanguageExt.UnitsOfMeasure
{
/// <summary>
/// Numeric VelocitySquared value
/// Handles unit conversions automatically
/// </summary>
public struct VelocitySq :
IComparable<VelocitySq>,
IEquatable<VelocitySq>
{
... | mit |
hexa2/lut-lang | src/Lexer.cpp | 4860 | //
// Lexer.cpp
// lut-lang
//
// Created by Mehdi Kitane on 13/03/2015.
// Copyright (c) 2015 H4314. All rights reserved.
//
#include "Lexer.h"
#include <string>
#include <regex>
#include <iostream>
#include "TokenType.h"
#include "ErrorHandler.h"
using std::cout;
using std::endl;
using std::smatch;
using std::st... | mit |
iLambda/chipguitar | firmware/inc/keycodes.h | 1058 | #define NC0_As 0x0E
#define NC0_B 0x0D
#define NC1_C 0x15
#define NC1_Cs 0x1E
#define NC1_D 0x1D
#define NC1_Ds 0x26
#define NC1_E 0x24
#define NC1_F 0x2D
#define NC1_Fs 0x2E
#define NC1_G 0x2C
#define NC1_Gs ... | mit |
rmhdev/redsys | tests/Redsys/Tests/Api/TitularTest.php | 866 | <?php
/**
* This file is part of the Redsys package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Redsys\Tests\Api;
use Redsys\Api\Titular;
class TitularTest extends \PHPUnit_Framework_TestCase... | mit |
Socres/KnowledgeCenter | src/Domain/KnowledgeCenter.Domain/Properties/AssemblyInfo.cs | 212 | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("KnowledgeCenter.Domain")]
[assembly: AssemblyDescription("")]
[assembly: Guid("34163851-767a-42f4-9f09-7d1c6af2bd11")] | mit |
alanmcgovern/repo_the_first | README.md | 30 | repo_the_first
==============
| mit |
KlishGroup/prose-pogs | pogs/S/SFOCCHX/CKTER/index.md | 2774 | ---
layout: page
title: Copeland King Trade Executive Retreat
date: 2016-05-24
author: Dennis David
tags: weekly links, java
status: published
summary: Vivamus facilisis sem a turpis volutpat.
banner: images/banner/leisure-05.jpg
booking:
startDate: 08/16/2017
endDate: 08/20/2017
ctyhocn: SFOCCHX
groupCode: CKT... | mit |
kuhlenh/port-to-core | Reports/ha/hazzik.owin.security.trademe.1.0.0/Hazzik.Owin.Security.TradeMe-net45.html | 27782 |
<!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>
... | mit |
sdkcarlos/artyom.js | README.md | 12659 | # Update for Chrome 71
Due to abuse of users with the Speech Synthesis API (ADS, Fake system warnings), Google decided to remove the usage of the API in the browser when it's not triggered by an user gesture (click, touch etc.). This means that calling for example <code>artyom.say("Hello")</code> if it's not wrapped i... | mit |
jdh8/metallic | test/native/math/float/log10f.c | 97 | #include "src/math/float/log10f.c"
#include "log.h"
int main(void)
{
test(log10f, log10);
}
| mit |
cosmic-beacon/xero-php | src/XeroPHP/Reports/AgedReceivablesByContact.php | 630 | <?php
namespace XeroPHP\Reports;
class AgedReceivablesByContact
{
/**
* @var string[]
*/
private $headers;
/**
* @var mixed[]
*/
private $rows;
/**
* @param string[] $headers
* @param mixed[] $rows
*/
public function __construct(array $headers, array $rows =... | mit |
rrreeeyyy/mrb_manager | README.md | 1328 | # mrb\_manager
[](https://gitter.im/rrreeeyyy/mrb_manager?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
mruby binary manager having a affinity for mgem
## Installation
Install it yourself as:
$ gem install mrb_manager
Afterwards y... | mit |
apwiede/nodemcu-firmware | docs/dwarfDbg/search/all_c.js | 5000 | var searchData=
[
['nalloc',['NALLOC',['../dwarfDbgInt_8h.html#a30e913ccf93d7ea095a144407af0f9a5',1,'dwarfDbgInt.h']]],
['name',['name',['../structattrValues.html#ac7cb0154aaced069f3b1d24a4b40bf26',1,'attrValues']]],
['nextcompileunitoffset',['nextCompileUnitOffset',['../structcompileUnit.html#a1f5c469b922f6fcfe3... | mit |
pablo28jg/ejemplosgraficas | src/Mastercel/ChartBundle/Entity/Solicitudespagos.php | 10419 | <?php
namespace Mastercel\ChartBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Solicitudespagos
*
* @ORM\Table(name="SolicitudesPagos", indexes={@ORM\Index(name="Indice_1", columns={"DteSolicitud", "TmeSolicitud"}), @ORM\Index(name="Indice_2", columns={"DteActualizacion"}), @ORM\Index(name="Indice_3", colum... | mit |
ministryofjustice/wmt-web | test/unit/services/test-get-reduction-export.js | 2361 | const moment = require('moment')
const expect = require('chai').expect
const sinon = require('sinon')
const proxyquire = require('proxyquire')
const breadcrumbHelper = require('../../helpers/breadcrumb-helper')
const orgUnitConstant = require('../../../app/constants/organisation-unit.js')
const activeStartDate = mome... | mit |
coojee2012/pm3 | SurveyDesign/JSDW/DesignDoc/Report.aspx.cs | 7357 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectData;
using Tools;
using ProjectBLL;
using System.Data;
using Approve.RuleCenter;
using System.Text;
using System.Collections;
using Approve.RuleApp;
public partial cl... | mit |
dotnet/roslyn-analyzers | src/NetAnalyzers/UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/EnumsShouldHaveZeroValueTests.Fixer.cs | 9759 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Test.Utilities;
using Xunit;
using VerifyCS = Test.Utilities.CSharpCodeFixVerifier<
Microsoft.CodeQuality.Analyzers.ApiDesignGuidelin... | mit |
inetfuture/gitlab-tweak | public/tweak.js | 7663 | /**
* Conversion:
* All dynamic tweaked dom id or class names are prefixed with 't-'.
*/
/**
* Config
*/
var PRIVATE_TOKEN = 'xYDh7cpVX8BS2unon1hp';
/**
* Globals.
*/
var autocompleteOpts,
projectOpts,
currentProjectID,
currentProjectPath;
$(function () {
initGlobals();
handleAll();
mapUrlHandle... | mit |
uktrade/data-hub-fe-beta2 | src/apps/my-pipeline/client/tasks.js | 2963 | import axios from 'axios'
import pipelineApi from './api'
import { addMessage } from '../../../client/utils/flash-messages'
import { transformValueForAPI } from '../../../client/utils/date'
function transformValuesForApi(values, oldValues = {}) {
const data = {
name: values.name,
status: values.category,
}... | mit |
indriHutabalian/dl-module | src/pdf/definitions/garment-intern-note.js | 21593 | var global = require('../../global');
module.exports = function (data, offset) {
var items = data.items.map(invoiceNote => {
var invoiceItem = invoiceNote.items.map(dataItem => {
var _items = dataItem.items.map(item => {
dueDate = new Date(dataItem.deliveryOrderSupplierDoDate);... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.1/coqffi/1.0.0~beta7.html | 7357 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqffi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1+2/bignums/8.7.0.html | 15814 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bignums: 3 m 34 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.1/persistent-union-find/8.10.0.html | 6977 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>persistent-union-find: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | mit |
Senspark/ee-x | src/cpp/ee/store/private/StoreAppleReceiptParser.hpp | 522 | //
// StoreAppleReceiptParser.hpp
// Pods
//
// Created by eps on 7/3/20.
//
#ifndef EE_X_STORE_APPLE_RECEIPT_PARSER_HPP
#define EE_X_STORE_APPLE_RECEIPT_PARSER_HPP
#include <string>
#include "ee/store/StoreFwd.hpp"
namespace ee {
namespace store {
class AppleReceiptParser {
public:
AppleReceiptParser();
... | mit |
Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/DdosProtectionPlanTests.java | 1570 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.network.models.DdosProtectionPlan;
import com.azure.resourcemanager.test.utils.TestUtilities;
import... | mit |
moradology/kmeans | tests/testkmeans.py | 1642 | """Run tests for the kmeans portion of the kmeans module"""
import kmeans.kmeans.kmeans as kmeans
import numpy as np
import random
def test_1dim_distance():
"""See if this contraption works in 1 dimension"""
num1 = random.random()
num2 = random.random()
assert kmeans.ndim_euclidean_distance(num1, num... | mit |
nlp-compromise/nlp_compromise | plugins/numbers/src/tagger/fractions.js | 2380 | const multiples =
'(hundred|thousand|million|billion|trillion|quadrillion|quintillion|sextillion|septillion)'
const here = 'fraction-tagger'
// plural-ordinals like 'hundredths' are already tagged as Fraction by compromise
const tagFractions = function (doc) {
// hundred
doc.match(multiples).tag('#Multiple', her... | mit |
akabob/ARIA_CA2_Code | js/sk1.js | 3079 | window._skel_config = {
prefix: 'css/style',
preloadStyleSheets: true,
resetCSS: true,
boxModel: 'border',
grid: { gutters: 30 },
breakpoints: {
wide: { range: '1200-', containers: 1140, grid: { gutters: 50 } },
narrow: { range: '481-1199', containers: 960 },
mobile: { r... | mit |
karanaditya993/phase-0-gps-1 | README.md | 50 | # phase-0-gps-1
GPS 1.1(pair with Tom Goldenberg)
| mit |
soudev/requirejs-steps | src/01/scripts/app.js | 867 | (function(app, undefined) {
'use strict';
if(!app) throw new Error('Application "app" namespace not found.');
//----------------------------------------------------------------------------
console.log( 'hello world' );
console.log( 'Application Running...' );
//------------------------------------------... | mit |
flipstone/orville | orville-postgresql/src/Database/Orville/PostgreSQL/Plan/Explanation.hs | 800 | {-# LANGUAGE CPP #-}
module Database.Orville.PostgreSQL.Plan.Explanation
( Explanation
, noExplanation
, explainStep
, explanationSteps
) where
newtype Explanation =
Explanation ([String] -> [String])
#if MIN_VERSION_base(4,11,0)
instance Semigroup Explanation where
(<>) = appendExplanation
#endif
inst... | mit |
TheKronks/KUI | KUI/Controls/FlatAccentButton.cs | 848 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KUI.Controls
{
public class FlatAccentButton : FlatButton
{
protected override void OnPaintBackground(PaintEventArgs pevent)
... | mit |
alisaifee/pycrm114 | include/crm114_config.h | 17035 | // crm114_config.h -- Configuration for CRM114 library.
// Copyright 2001-2010 William S. Yerazunis.
//
// This file is part of the CRM114 Library.
//
// The CRM114 Library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// ... | mit |
shanegray/mortgage-calc | Calculators/InterestOnlyScheduleBuilder.cs | 947 | using MortgageCalc.Models;
using System;
using System.Collections.Generic;
namespace MortgageCalc.Calculators
{
public class InterestOnlyScheduleBuilder
{
private RateCalc _calc = new RateCalc(6); // initialize with 6 decimal places
private decimal _monthlyPayment;
private decimal _pri... | mit |
grappendorf/grapp-core-ajax | test/index.html | 437 | <!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>grapp-core-ajax tests</title>
<script src="../lib/web-component-tester/browser.js"></script>
</head>
<body>
<script>
WCT.loadSuites([
... | mit |
CrshOverride/Semantic-UI-Ember | addon/components/ui-checkbox.js | 374 | import Ember from 'ember';
import CheckboxMixin from '../mixins/checkbox-mixin';
export default Ember.Component.extend(CheckboxMixin, {
type: 'checkbox',
checked: false,
onChange: function() {
this.set('checked', this.$('input').prop('checked'));
this.sendAction("action", {
checked: this.get('chec... | mit |
zalando/problem-spring-web | problem-spring-web/src/main/java/org/zalando/problem/spring/web/advice/package-info.java | 135 | @ParametersAreNonnullByDefault
package org.zalando.problem.spring.web.advice;
import javax.annotation.ParametersAreNonnullByDefault;
| mit |
jasonlam604/Stringizer | tests/DateTest.php | 705 | <?php
use Stringizer\Stringizer;
/**
* Date Unit Tests
*/
class DateTest extends PHPUnit_Framework_TestCase
{
public function testValidDate()
{
date_default_timezone_set('America/Vancouver');
$s = new Stringizer("January 1st");
$this->assertEquals(true, $s->isDate());
$s = ... | mit |
rossplt/ross-django-utils | ross/settings.py | 3090 | """
Django settings for ross project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | mit |
bajsko/VoxelEngine | Game/WorldGenerator.cs | 5364 | ////////////////////////////////////////////////////////////////////////////////
//worldgenerator.cs
//Created on: 2015-8-21, 18:18
//
//Project VoxelEngine
//Copyright C bajsko 2015. All rights Reserved.
////////////////////////////////////////////////////////////////////////////////
using Microsoft.Xna.Framework;
u... | mit |
Jugendhackt/wildmap | backend/index.js | 1488 | "use strict"
var express = require('express');
var app = express();
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});
var router = express.Router();
router.get('/accidents', function(req, res) {
var query = {
index: 'wildmap',
type: ... | mit |
ajlopez/AjGenesisNode-Sinatra | test/generate.js | 9507 |
var generatetask = require('../source/ajgenesis/tasks/generate'),
createtask = require('../create'),
path = require('path'),
fs = require('fs'),
ajgenesis = require('ajgenesis');
exports['generate'] = function (test) {
test.async();
var cwd = process.cwd();
process.ch... | mit |
arnaudoff/elsys | 2015-2016/operating-systems/threads_homework/main.c | 1476 | #include <math.h>
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#define THREAD_COUNT 4
typedef struct {
int start;
int end;
} range_t;
void *calculate_range(void* range) {
range_t* curr_range = (range_t*)range;
void* result = (void*)1;
for (int i = curr_range->start; i < curr_range... | mit |
uprm-gaming/virtual-factory | src/com/virtualfactory/screen/layer/components/FlowChartScreenController.java | 4455 | package com.virtualfactory.screen.layer.components;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.NiftyEventSubscriber;
import de.lessvoid.nifty.controls.ButtonClickedEvent;
import de.lessvoid.nifty.controls.Controller;
import de.lessvoid.nifty.controls.window.WindowControl;
import de.lessvoid.nifty.element... | mit |
ExpoSEJS/ExpoSE | tests/regex/cookies/t1.js | 332 | const S$ = require('S$');
function loadSrc(obj, src) {
throw src;
}
const cookies = S$.symbol('Cookie', '');
const world = {};
if (cookies) {
if (/iPhone/.exec(cookies)) {
loadSrc(world, '/resources/' + cookies);
}
loadSrc(world, '/resources/unknown');
} else {
loadSrc(world, '/resources... | mit |
patricknyu/patricknyu.github.io | _posts/AcceleratedC++/ch2/2015-09-25-problem-2_0.markdown | 1557 | ---
layout: post
title: "Problem 2_0"
modified:
categories: /AcceleratedC++/ch2
excerpt:
tags: []
image:
feature:
date: 2015-09-25T00:37:18-07:00
---
[Github Source](https://github.com/patricknyu/AcceleratedCPlusPlus/tree/master/ch2/Question2_0)
###Q:
Compile and run the program presented in this chapter.
###A:
`... | mit |
senecajs/seneca-dynamo-store | dynamo-store-doc.js | 68 | module.exports = function (seneca, util) {
//var Joi = util.Joi
}
| mit |
mp-pinheiro/DW2Digivolver | src/Digivolver/Digivolution.java | 580 | package Digivolver;
public class Digivolution{
private Digimon digimon;
private int minDp = 0;
private int maxDp = 0;
public boolean isWithinDp(int minDp, int maxDp){
return this.minDp<=maxDp && this.maxDp>=minDp;
}
public Digivolution(Digimon digimon, int minDp, int maxDp) {
this.digimon = digimon;
thi... | mit |
algorithmiaio/algorithmia-python | Algorithmia/util.py | 1473 | import re
import hashlib
FNAME_MATCH = re.compile(r'/([^/]+)$') # From the last slash to the end of the string
PREFIX = re.compile(r'([^:]+://)(/)?(.+)') # Check for a prefix like data://
def getParentAndBase(path):
match = PREFIX.match(path)
if match is None:
if path.endswith('/'):
st... | mit |
GrognardsFromHell/EvilTemple-GameMath | include/vector4.h | 5340 | #ifndef VECTOR4_H
#define VECTOR4_H
#include "gamemath_internal.h"
GAMEMATH_NAMESPACE_BEGIN
GAMEMATH_ALIGNEDTYPE_PRE class GAMEMATH_ALIGNEDTYPE_MID Vector4 : public AlignedAllocation
{
friend class Matrix4;
friend GAMEMATH_INLINE Vector4 operator +(const Vector4 &a, const Vector4 &b);
friend GAMEMATH_INLINE Vector4 ... | mit |
TileDB-Inc/TileDB | tiledb/sm/query/query.cc | 69785 | /**
* @file query.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2021 TileDB, Inc.
*
* 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 restri... | mit |
Klaital/abandonedforge.com | db/migrate/20160920213323_create_product_materials.rb | 269 | class CreateProductMaterials < ActiveRecord::Migration[5.0]
def change
create_table :product_materials do |t|
t.belongs_to :product, index: true
t.string :name
t.string :material
t.string :description
t.timestamps
end
end
end
| mit |
helpdotcom/strip-falsy | test.js | 433 | 'use strict'
var test = require('tap').test
var strip = require('./')
test('stripFalsy', function(t) {
t.plan(5)
t.deepEqual(strip(null), {})
t.deepEqual(strip('test'), {})
t.deepEqual(strip(13), {})
t.deepEqual(strip(), {})
var input = {
a: false
, b: 0
, c: null
, d: undefined
, e: ''
, f... | mit |
justzheng/test1 | web/source/site/article.ctrl.php | 9565 | <?php
/**
* [WeEngine System] Copyright (c) 2014 WE7.CC
* WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
*/
defined('IN_IA') or exit('Access Denied');
load()->func('file');
load()->model('article');
load()->model('account');
$dos = array('display', 'post', ... | mit |
koenreiniers/oauth-client | src/Credentials/Client.php | 1264 | <?php
namespace Kr\OAuthClient\Credentials;
class Client extends AbstractCredentials
{
protected $clientId, $clientSecret, $redirectUri;
/**
* Client constructor.
* @param string $clientId
* @param string $clientSecret
* @param string $redirectUri
*/
public function __construct($c... | mit |
Asvae/SleepingOwlAdmin | resources/assets/js/form/image/initMultiple.js | 2178 | $(function () {
$('.imageUploadMultiple').each(function (index, item) {
var $item = $(item);
var $group = $item.closest('.form-group');
var $innerGroup = $item.find('.form-group');
var $errors = $item.find('.errors');
var $input = $item.find('.imageValue');
var flow =... | mit |
toydestroyer/vk_wiki_manager | README.md | 32 | vk_wiki_manager
===============
| mit |
pavel-voinov/ghost-tools | check_file.sh | 693 | #!/bin/bash
f="$1"
d="$2"
CURRENT_DIR=$( pushd $(dirname $0) >/dev/null; pwd; popd >/dev/null )
if [ ! -d $d ]; then
echo "$d is not found"
exit 2
fi
F="$d/$f"
if [ -f "$F" ]; then
s1=`wc -c "$f" | cut -d ' ' -f 1`
s2=`wc -c "$F" | cut -d ' ' -f 1`
if [ $s1 -eq $s2 ]; then
cksum1=`md5sum -b "$f" | cut... | mit |
obsidian-btc/schema | lib/schema/schema.rb | 228 | module Schema
include Virtus.module(:constructor => false, :mass_assignment => false)
def initialize
set_default_attributes
end
def attributes
attribute_set.get(self)
end
def to_h
attributes
end
end
| mit |
Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/i386/2016/DSA-3663-1.sh | 1783 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3663-1
#
# Security announcement date: 2016-09-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:13 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - xen:4.4.1-9+deb8u7
# - libxen-4.4:4... | mit |
tsurantino/roadtrip | lib/kdTree.js | 13331 | /**
* k-d Tree JavaScript - V 1.01
*
* https://github.com/ubilabs/kd-tree-javascript
*
* @author Mircea Pricop <pricop@ubilabs.net>, 2012
* @author Martin Kleppe <kleppe@ubilabs.net>, 2012
* @author Ubilabs http://ubilabs.net, 2012
* @license MIT License <http://www.opensource.org/licenses/mit-license.p... | mit |
InekeScheffers/NYCDA-individual-assignments | 09-29-2016-Anonymous-Functions-Practice/Anonymous Functions Practice.js | 1060 | // function that finds the sum of two parameters
function findSum(firstnr, secondnr){
return firstnr + secondnr;
}
//function that finds the product of two parameters
function findProduct(firstnr, secondnr){
return firstnr * secondnr;
}
/* threeOperation calls the operation parameter as a function so it's able to r... | mit |
liaojinxing/LJURLRouter | LJURLRouter/LJRouterPath.h | 439 | //
// LJRouterPath.h
// LJControllerRouterExample
//
// Created by Jinxing Liao on 12/14/15.
// Copyright © 2015 Jinxing Liao. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LJRouterPath : NSObject
@property (nonatomic, strong) NSString *schema;
@property (nonatomic, strong) NSArray *compo... | mit |
uareurapid/balloonquest | Assets/Editor/Everyplay/XCodeEditor/XCConfigurationList.cs | 305 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Everyplay.XCodeEditor
{
public class XCConfigurationList : PBXObject
{
public XCConfigurationList(string guid, PBXDictionary dictionary) : base(guid, dictionary)
{
internalNewlines = true;
}
}
}
| mit |
openilabs/crypto | node_modules/openpgp/src/packet/sym_encrypted_session_key.js | 5248 | // GPG4Browsers - An OpenPGP implementation in javascript
// Copyright (C) 2011 Recurity Labs GmbH
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the Lice... | mit |
eifuentes/kaggle_whats_cooking | train_word2vec_rf.py | 1909 | """
train supervised classifier with what's cooking recipe data
objective - determine recipe type categorical value from 20
"""
import time
from features_bow import *
from features_word2vec import *
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifie... | mit |
inveniosoftware/invenio-search | invenio_search/config.py | 3755 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Configuration options for Invenio-Search.
The documentation for the configuration... | mit |
UnrulyNatives/helpers-for-laravel-projects | src/unstarter_models/Avatar.php | 408 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class SettingController
*
* @author The scaffold-interface created at 2016-08-25 01:07:35am
* @link https://github.com/amranidev/scaffold-interface
*/
class Setting extends Model
{
use So... | mit |
DaviesSouthJCL/DaviesSouthJCL.github.io | contact.html | 6256 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>DSJCL</title>
<!-- Bootstrap core CSS -->
<link href="... | mit |
robobalasko/DFA-Simulator | src/main/java/net/robobalasko/dfa/gui/MainFrame.java | 3007 | package net.robobalasko.dfa.gui;
import net.robobalasko.dfa.core.Automaton;
import net.robobalasko.dfa.core.exceptions.NodeConnectionMissingException;
import net.robobalasko.dfa.core.exceptions.StartNodeMissingException;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.DocumentEve... | mit |
JesseLeite/docs | content/collections/modifiers/to_spaces.md | 305 | ---
types:
- utility
id: d5ee1b1e-0ffa-45cd-b3aa-bfecb9a93325
---
Converts all tabs in a string to a given number of spaces, `4` by default. This is a boring modifier to output examples of. Here's just a few examples on how the syntax looks.
```
{{ string | to_spaces }}
{{ string | to_spaces:2 }}
```
| mit |
Omenia/RFHistory | ServerApp/apps.py | 134 | from __future__ import unicode_literals
from django.apps import AppConfig
class RfhistoryConfig(AppConfig):
name = 'RFHistory'
| mit |
frontibit/riestercoin | src/rpcmining.cpp | 21117 | // Copyright (c) 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 "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... | mit |
Phalanstere/interlude | index.html | 1138 | <!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Interlude</title>
</head>
<link href="css/interlude.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/l... | mit |
helgefmi/Toy | src/parser.hpp | 1288 | #ifndef _PARSER_HPP
#define _PARSER_HPP
#include <cassert>
#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include "toyobj.hpp"
#include "lexer.hpp"
#include "toy.hpp"
#include "ast.hpp"
class ParserContext {
public:
explicit ParserContext(LexerContext &lexer)
: lexer_(lexer)... | mit |
AgarFu/awspec | lib/awspec/type/base.rb | 1180 | require 'aws-sdk'
require 'awspec/resource_reader'
require 'awspec/helper/finder'
module Awspec::Type
class Base
include Awspec::Helper::Finder
include Awspec::BlackListForwardable
attr_accessor :account
def resource_via_client
raise 'this method must be override!'
end
def to_s
... | mit |
Havi4/eigen | docs/BETA_CHANGELOG.md | 838 | ## Next
* Improved Spotlight support for favorites. - alloy
## 2.3.0 (2015.09.18)
* Add support for Universal Links on iOS 9. - alloy
* Add support for Web-to-Native Handoff. - alloy
* Make CircleCI work again by adding the `build` action to the `test` task to ensure the simulator is running. - alloy
* Remove `?foo=... | mit |
EffectiveProgramming/PodcastTimer-iPad | PodcastTimer/PodcastTimer/EPTTimer.h | 382 | //
// EPTTimer.h
// PodcastTimer
//
// Created by Eric Jones on 6/7/14.
// Copyright (c) 2014 Effective Programming. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol EPTTimerDelegate <NSObject>
- (void)timerFired;
@end
@interface EPTTimer : NSObject
@property (nonatomic) id<EPTTimerDelegat... | mit |
KlishGroup/prose-pogs | pogs/B/BTVMVHX/FAS/index.md | 1641 | ---
layout: page
title: Floyd Aerospace Seminar
date: 2016-05-24
author: Jonathan Jarvis
tags: weekly links, java
status: published
summary: Etiam dictum facilisis massa, iaculis varius.
banner: images/banner/wedding.jpg
booking:
startDate: 09/21/2019
endDate: 09/24/2019
ctyhocn: BTVMVHX
groupCode: FAS
publishe... | mit |
sensorbee/sensorbee | core/node_test.go | 2068 | package core
import (
. "github.com/smartystreets/goconvey/convey"
"strings"
"testing"
)
func TestValidateSymbol(t *testing.T) {
Convey("Given a node name validation function", t, func() {
cases := []struct {
title string
name string
success bool
}{
{"an empty string", "", false},
{"one al... | mit |
heldtogether/train-scheduler | main.rb | 2290 | require './lib/graph'
require './lib/path_measurer'
require './lib/path_searcher'
require './lib/path_explorer'
require './lib/exact_path_length_checker'
require './lib/max_path_distance_checker'
require './lib/max_path_length_checker'
edges = []
$stdin.each_line do | line |
line.strip!
edges.concat line.split(/\s|... | mit |
danjac/photoshare | ui/actionTypes/tags.js | 251 | export default {
FETCH_TAGS_PENDING: Symbol("FETCH_TAGS_PENDING"),
FETCH_TAGS_SUCCESS: Symbol("FETCH_TAGS_SUCCESS"),
FETCH_TAGS_FAILURE: Symbol("FETCH_TAGS_FAILURE"),
FILTER_TAGS: Symbol("FILTER_TAGS"),
ORDER_TAGS: Symbol("ORDER_TAGS")
};
| mit |
mrthanhtan22/vemaybay | application/controllers/admin/Product.php | 11577 | <?php
/**
* summary
*/
class Product extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('product_model');
}
function index(){
$total = $this->product_model->get_total();
$this->data['total'] = $total;
//load t... | mit |
alimcharaniya/uniformlab-v3 | src/services/auth.service.ts | 1321 | import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import { Observable } from 'rxjs/Observable';
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
import * as firebase from 'firebase/app';
import {Ht... | mit |
adriancmiranda/describe-type | internal/eachValue.next.js | 568 | /**
*
* @function
* @param {Array|arraylike} value
* @param {Function} cmd
* @param {any} context
* @returns {?}
*/
export default function eachValue(value, cmd, context, keepReverse) {
if (value === undefined || value === null) return undefined;
const size = (0 | value.length) - 1;
for (let index = size; ind... | mit |
mvnural/scalation | src/main/scala/scalation/analytics/Centering.scala | 1112 |
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/** @author John Miller
* @version 1.2
* @date Sat Jan 31 20:59:02 EST 2015
* @see LICENSE (MIT style license file).
*/
package scalation.analytics
import scalation.linalgebra.{MatriD, MatrixD, VectorD}
//::::::::::::::::... | mit |
dbalders/Ghost | core/test/unit/services/routing/TaxonomyRouter_spec.js | 3184 | const should = require('should'),
sinon = require('sinon'),
_ = require('lodash'),
settingsCache = require('../../../../server/services/settings/cache'),
common = require('../../../../server/lib/common'),
controllers = require('../../../../server/services/routing/controllers'),
TaxonomyRouter = ... | mit |
snscripts/html-helper | Tests/HtmlTest.php | 9524 | <?php
use Snscripts\HtmlHelper\Html;
use Snscripts\HtmlHelper\Services;
use Snscripts\HtmlHelper\Helpers;
class HtmlTest extends \PHPUnit_Framework_TestCase
{
public function testCanCreateInstance()
{
$this->assertInstanceOf(
'Snscripts\HtmlHelper\Html',
new Html(
... | mit |
jkauflin/hoadb | adminValidate.php | 3993 | <?php
/*==============================================================================
* (C) Copyright 2016,2020 John J Kauflin, All rights reserved.
*----------------------------------------------------------------------------
* DESCRIPTION: Functions to validate Admin operations (i.e. check permissions
* par... | mit |
tonymarklove/wool | views/user/admin_denied.php | 147 | <h1>Access Denied</h1>
<p>You have logged in correctly, but you have tried to access a page without a high enough level of security clearance.</p> | mit |
yurikoma/PhysicsForGamesAIE_StudentWork | dependencies/glfw/docs/html/search/all_6.html | 1039 | <!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.11"/>
<link rel="stylesheet" type="text/css" href="se... | mit |