repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
banacer/door-wiz | src/identification/Identifier.py | 1449 | import numpy as np
import pandas as pd
from pandas import Series, DataFrame
from scipy.spatial import distance
import matplotlib.pyplot as plt
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
from s... | mit |
JoseGMaestre/Cupon_check | app/cache/dev/twig/9e/9e7ec4c116a05cf87d6dedc6906bdf1b530cafcee29ed870fee22e6360fa5e44.php | 8589 | <?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_034400bfb816a72b7b3da36dd2d8e07ee89621bac614688be25a4e8ff872b3ad extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | mit |
ng2-slavs/Sportsemblr | public/app/pipes/remainingTimePipe.js | 4775 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | mit |
ericgio/react-bootstrap-typeahead | example/src/examples/FilteringExample.js | 1572 | /* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */
import React, { useState } from 'react';
import { Form } from 'react-bootstrap';
import { Typeahead } from 'react-bootstrap-typeahead';
/* example-start */
const options = [
'Warsaw',
'Kraków',
'Łódź',
'Wrocław',
'Poznań',
'Gdańsk... | mit |
okyere/excel-data-collection | app/templates/add_tableinfo.html | 820 | {% extends "base.html" %}
{% block content %}
<div class="container">
<form action="" method="POST" enctype="multipart/form-data">
{{ form.hidden_tag() }}
<p>
Descriptive Name:
{{ form.descriptive_name(size = 50) }}
{% for error in form.descriptive_name.errors %}
<span st... | mit |
Veraticus/cryptolalia | test/unit/cipher/vigenere_test.rb | 552 | require 'test_helper'
class VigenereTest < MiniTest::Test
def setup
super
@cipher = Cryptolalia::Cipher::Vigenere.new
end
def test_encodes
@cipher.plaintext = 'This is a super secret message.'
@cipher.keyword = 'qwerty'
@cipher.encode!
assert_equal "jdmj bq q oygxp iagixr cawjteu", @ci... | mit |
ayoshoks/ncs | resources/views/search/specific_result.blade.php | 3877 | @extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="panel panel-default">
<div class="panel-heading" style="padding-bottom: 40px;">PREVIEW
<div class="col-xs-3 pull-right">
<a href="/ssearch">... | mit |
hasangilak/react-multilingual | example/locales/en.js | 37 | export default {
hello : "hello"
};
| mit |
hahamty/Dominoes | Game/Assets/Scripts/AI/GreedyAIController.cs | 14285 | using System.Collections.Generic;
using UnityEngine;
using System;
namespace AI
{
public class GreedyAIController : PlayerController
{
enum NextState
{
Wait, Draw, Play
}
private NextState nextState;
Dictionary<DominoController, List<DominoController>> place... | mit |
code-not-found/jaxws-cxf | jaxws-cxf-digital-signature/src/main/java/com/codenotfound/endpoint/TicketAgentImpl.java | 588 | package com.codenotfound.endpoint;
import java.math.BigInteger;
import org.example.ticketagent.ObjectFactory;
import org.example.ticketagent.TFlightsResponse;
import org.example.ticketagent.TListFlights;
import org.example.ticketagent_wsdl11.TicketAgent;
public class TicketAgentImpl implements TicketAgent {
@Over... | mit |
spartanbeg/OpenVPN-Event-Viewer | openvpn.api/openvpn.api/Controllers/UsersController.cs | 3668 | /*
The MIT License (MIT)
Copyright (c) 2014 Mehmetali Shaqiri (mehmetalishaqiri@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... | mit |
matthewsot/CocoaSharp | Headers/PrivateFrameworks/GeoServices/_GEORegionalResourceDownload.h | 816 | /*
* 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"
@class NSString, NSURL;
// Not exported
@interface _GEORegionalResourceDownload : NSObject
{
NSString *_name;
long long _type;
NSURL *_url;
... | mit |
GeBeater/gae-cookbook | metadata.rb | 325 | name 'google_app_engine'
description 'A cookbook to download and install the google app engine SDK on a Linux system.'
version '1.0.0'
maintainer 'Bernd Hoffmann'
maintainer_email 'info@gebeat.com'
license 'MIT'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.... | mit |
vlyahovich/Task-Manager | src/js/modules/content/list/listController.js | 499 | TaskManager.module('ContentModule.List', function (List, App, Backbone) {
'use strict';
List.Controller = Marionette.Controller.extend({
initialize: function (options) {
var tasksList = App.request('taskList'),
listView = this.getView(tasksList);
if (options.region) {
this.region = options.region;
... | mit |
kalinalazarova1/SharedWeekends | SharedWeekends.MVC/Areas/Administration/Controllers/AdminController.cs | 369 | namespace SharedWeekends.MVC.Areas.Administration.Controllers
{
using System.Web.Mvc;
using SharedWeekends.Data;
using SharedWeekends.MVC.Controllers;
[Authorize(Roles = "admin")]
public abstract class AdminController : BaseController
{
public AdminController(IWeekendsData data)
... | mit |
fluidmotion/visTools | README.md | 2930 | # VisMod
While the ultimate goal of VisMod is to assist in groundwater flow model visualization,
the current classes support the export of files that can be used in visualization software
such as [http://wci.llnl.gov/codes/visit/].
[;
function MockProject() {
var root = process.cwd();
var pkg = {};
Project.apply(this, [root, pkg]);
}
MockProject.prototype.require = function(file) {
if (file === './server') {
return function() {
return {
listen: functio... | mit |
GreenMelon/Angular-Notes | app/html/Form/checkbox-001.html | 2186 | <!DOCTYPE html>
<html lang="en" ng-app="App">
<head>
<meta charset="UTF-8">
<title>form</title>
<link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css">
<style>
.container {
margin-top: 30px;
}
</style>
</head>
<body ng-controller="MyCtrl">
<div class="container">
... | mit |
hiseni/trpl | adder/src/lib.rs | 823 | #[derive(Debug)]
pub struct Rectangle {
length: u32,
width: u32,
}
impl Rectangle {
pub fn can_hold(&self, other: &Rectangle) -> bool {
self.length > other.length && self.width > other.width
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn larger_can_hold_smaller() {
... | mit |
Rodrive/na-map | js/map.js | 15072 | 'use strict';
function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) {
this.canvas = document.getElementById(canvasId);
this.imageMap = new Image();
this.imageCompass = new Image();
this.config = config;
this.itemsLoaded = false;
this.nationsLoaded = false;
this.shopsLoaded = fal... | mit |
ascartabelli/lamb | src/privates/_keyToPairIn.js | 332 | import _curry2 from "./_curry2";
/**
* Accepts an object and build a function expecting a key to create a "pair" with the key
* and its value.
* @private
* @function
* @param {Object} obj
* @returns {Function}
*/
var _keyToPairIn = _curry2(function (obj, key) {
return [key, obj[key]];
});
export default _k... | mit |
mind0n/hive | Cache/Libs/net46/vb/language/shared/vbheapptr.h | 1561 | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// CHeapPtr for VB
//
//-------------------------------------------------------------------------------------------------
#pragma once
template <typ... | mit |
skerit/alchemy | lib/init/requirements.js | 2142 | 'use strict';
/**
* The basic http module, used to create the server.
*
* @link http://nodejs.org/api/http.html
*/
alchemy.use('http', 'http');
/**
* This module contains utilities for handling and transforming file paths.
* Almost all these methods perform only string transformations.
* The file system is n... | mit |
EaW1805/data | src/main/java/com/eaw1805/data/model/map/Region.java | 7717 | package com.eaw1805.data.model.map;
import com.eaw1805.data.constants.RegionConstants;
import com.eaw1805.data.model.Game;
import java.io.Serializable;
/**
* Represents a region of the world.
*/
public class Region implements Serializable {
/**
* Required by Serializable interface.
*/
static fin... | mit |
i-den/SoftwareUniversity | Front End Courses/03. CSS - Def Guide/07. Basic Visual Formatting/01. Basic Visual Formatting.css | 529 | h1 {
/* inline || block || */
display: inline;
/* padding-box || border-box */
box-sizing: content-box;
padding: 0;
margin: 0;
}
/* Important Auto */
.auto-parent {
width: 500px;
}
.auto-child {
/* With Auto Width - it will fill up to take all the remaining space - 400 px */
margi... | mit |
dagware/DanThomas | JXA/PlistUtils.md | 3298 |
```js
var PlistUtils = (function() {
function readTextFile(strPath) {
var error;
var str = ObjC.unwrap(
$.NSString.stringWithContentsOfFileEncodingError(
$(strPath).stringByStandardizingPath,
$.NSUTF8StringEncoding,
error
)
);
if (error)
throw Error('Could not read file "' + strPath + '"'... | mit |
velour/ui | gok.sh | 502 | #!/bin/sh
#
# Verifies that go code passes go fmt, go vet, golint, and go test.
#
lintignore=golintignore
o=$(tempfile)
fail() {
echo Failed
cat $o
exit 1
}
echo Formatting
gofmt -l $(find . -name '*.go') 2>&1 > $o
test $(wc -l $o | awk '{ print $1 }') = "0" || fail
echo Vetting
go vet ./... 2>&1 > $o || fail
... | mit |
Need4Speed402/tessellator | src/model/modules/DrawObject.js | 1391 | /**
* Copyright (c) 2015, Alexander Orzechowski.
*
* 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, ... | mit |
wanghuafeng/spider_tools | decorator.py | 1524 | #!-*- coding:utf-8 -*-
import time
def retries(times=3, timeout=1):
"""对未捕获异常进行重试"""
def decorator(func):
def _wrapper(*args, **kw):
att, retry = 0, 0
while retry < times:
retry += 1
try:
return func(*args, **kw)
... | mit |
bkoc/BKAsciiImage | README.md | 4737 | # BKAsciiImage
[](http://cocoapods.org/pods/BKAsciiImage)
[](http://cocoapods.org/pods/BKAsciiImage)
[ on Wed Aug 11 07:27:53 PDT 2004 -->
<TITLE>
Binding (Java 2 Platform SE 5.0)
</TITLE>
<META NAME="keyword... | mit |
v8-dox/v8-dox.github.io | 2a2c881/html/functions_f.html | 8002 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | mit |
ShevaDas/exhibitor-management | src/components/Loading/Loading.css | 6573 | .loading {
margin: 0 auto;
width: 100px;
padding-top: 50px;
}
/*!
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
* Licensed under MIT
*/
.la-ball-fussion,
.la-ball-fussion > div {
position: relative;
-webkit-box-sizing: border-b... | mit |
XVimProject/XVim2 | XVim2/Helper/rd_route.c | 3016 | // rd_route.c
// Copyright (c) 2014-2015 Dmitry Rodionov
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include <stdlib.h> // realloc()
#include <libgen.h> // basename()
#include <assert.h> // assert()
#include <std... | mit |
HotcakesCommerce/core | Libraries/Hotcakes.Commerce.Dnn/DnnConfigurationManager.cs | 2605 | #region License
// Distributed under the MIT License
// ============================================================
// Copyright (c) 2019 Hotcakes Commerce, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software")... | mit |
stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/safe/CWE_79__backticks__func_preg_replace2__Use_untrusted_data_script-side_Quoted_Expr.php | 1351 | <!--
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
SANITIZE : use of preg_replace with another regex
File : use of untrusted data in one side of a quoted expression in a script
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royal... | mit |
enzor/jror-example | doc/jruby-openssl-0.7/rdoc/classes/Buffering.src/M000045.html | 1249 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>readlines (Buffering)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel=... | mit |
telehash/telehash-js | lib/util/handshake.js | 4311 | var crypto = require('crypto');
var lob = require('lob-enc')
var hashname = require('hashname');
var log = require("./log")("Handshake")
module.exports = {
bootstrap : handshake_bootstrap,
validate : handshake_validate,
from : handshake_from,
types : handshake_types,
collect : handshake_collect
}... | mit |
poliastro/poliastro | contrib/CR3BP/test_run_CR3BP.py | 6277 | """
********************************************************************
Test file for implementation check of CR3BP library.
********************************************************************
Last update: 21/01/2022
Description
-----------
Contains a few sample orbit propagations to test the CR3BP l... | mit |
akonoupakis/gitflow-publisher-bower | README.md | 1558 | # gitflow-publisher-bower
> a bower publish processor for gitflow-publisher


[](https://... | mit |
lmaxim/cc_oauthplugin | lib/routing/sfOauthServerRouting.class.php | 1169 | <?php
/*
* This file is part of the sfOauthServerPlugin package.
* (c) Jean-Baptiste Cayrou <lordartis@gmail.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
/**
* sfOauthServerRouting configuration.
*
* @package sfOauthSer... | mit |
Mschmidt19/MarekSchmidt.com | e2e-tests/scenarios.js | 927 | 'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
browser.get('index.html');
it('should automatically redirect to /home when location hash/fragment is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/home");
});
describe... | mit |
tzpBingo/github-trending | codespace/python/tencentcloud/scf/v20180416/errorcodes.py | 27390 | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# 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/licenses... | mit |
samozm/samozm.github.io | _talks/2021-juliacon.md | 592 | ---
title: "Bayesian network regression with applications to microbiome data"
collection: talks
type: "Talk"
permalink: /talks/2021_juliacon
venue: "JuliaCon"
date: 2021-07-30
location: "Online"
---
Bayesian network regression with applications to microbiome data, **Samuel Ozminkowski** & Claudia Solís-Lemus,
*JuliaCo... | mit |
kbreidenbach/akka-emailer | src/main/scala/me/breidenbach/asyncmailer/MailerException.scala | 190 | package me.breidenbach.asyncmailer
/**
* Copyright © Kevin E. Breidenbach, 5/26/15.
*/
case class MailerException(message: String, cause: Throwable = null) extends Error(message, cause)
| mit |
IgorPelevanyuk/CatClicker-Knockout | deploy.sh | 77 | #!/bin/bash
cp index.html /var/www/
cp -r js /var/www
cp -r img /var/www/img
| mit |
vupeter/posdaJS | lib/json/book/part11/table_E.3-3.js | 378 | datab = [{},{"Attribute":{"colspan":"1","rowspan":"1","text":"Modality"},"Tag":{"colspan":"1","rowspan":"1","text":"(0008,0060)"},"Value":{"colspan":"1","rowspan":"1","text":"CT"}},{"Attribute":{"colspan":"1","rowspan":"1","text":"Photometric Interpretation"},"Tag":{"colspan":"1","rowspan":"1","text":"(0028,0004)"},"Va... | mit |
fschwiet/letscodejavascript | node_modules/npm/html/api/commands.html | 1813 | <!doctype html>
<html>
<title>commands</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../static/style.css">
<body>
<div id="wrapper">
<h1><a href="../api/commands.html">commands</a></h1> <p>npm commands</p>
<h2 id="SYNOPSIS">SYNOPSIS</h2>
<pr... | mit |
bohdan7/python_koans | python3/koans/about_iteration.py | 3923 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutIteration(Koan):
def test_iterators_are_a_type(self):
it = iter(range(1,6))
total = 0
for num in it:
total += num
self.assertEqual(15 , total)
def test_iterating_with_next(self):... | mit |
theapricot/oppapp2 | templates/admin.html | 2480 | {% extends "layout.html" %}
{% block body %}
<title>All Events - Media Services</title>
<form id="adminForm" action="" method=post>
<div class="container">
<table class="table">
<thead>
<td>
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Upcoming... | mit |
THLabs/ghostdown | styles/ghostdown.css | 2150 | html,
body {
font-family: 'Roboto', 'Helvetica', sans-serif;
}
strong,
b {
font-weight: 700;
}
h1,
h2,
h3 {
font-family: "Roboto Slab", "Helvetica", "Arial", sans-serif;
}
pre, code {
font-family: "Roboto mono", monospace;
}
.ghostdown-edit-content {
position: absolute;
top: 50px;
bottom... | mit |
RuggeroVisintin/SparkPreviewer | src/js/core/Renderer/RenderPassManager.js | 426 | function RenderPassManager(renderer)
{
// not implemented yet
throw "Not implemented";
var mRenderPasses = [];
return this;
}
RenderPassManager.prototype.addRenderPass = function(renderPass)
{
mRenderPasses.push(renderPass);
};
RenderPassManager.prototype.render = function()
{
for(var renderPass i... | mit |
wangyu892449346/wangyu892449346.github.io | _posts/2017-11-10-IT业编程四大魔道天王.md | 439 | ---
layout: post
title: "IT业编程四大魔道天王"
date: 2017-11-10 16:09:16 +0800
tag: [博客]
---
IT业编程四大魔道天王的博客地址。
胡正 - [辟支佛胡正 · 阿罗汉尊者 · 功德藏闯菩萨](http://www.huzheng.org/myapps.php)
田春 - [Chun Tian (binghe)](http://tianchunbinghe.blog.163.com/)
李杀 - [Xah Lee Web 李杀网](http://xahlee.org/)
王垠 - [当然我在扯淡](http://www.yinwang.org/) | mit |
malaonline/Android | app/src/main/java/com/malalaoshi/android/ui/dialogs/CommentDialog.java | 10909 | package com.malalaoshi.android.ui.dialogs;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.widg... | mit |
kunklejr/node-encext | cli.js | 1910 | #!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var optimist = require('optimist');
var prompt = require('prompt');
var efs = require('efs');
var encext = require('./index');
var defaultAlgorithm = 'aes-128-cbc';
var argv = optimist
.usage('usage: encext [-r] [-a algorithm] [file ...]')
.d... | mit |
sdaza/sdaza.github.com | blog/2016/acsr/index.html | 45371 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
Sebastian Daza
| R package to compute statistics from the American Community Survey (ACS) and Decennia... | mit |
corymurphy/CertificateManager | CertificateManager.Logic/Interfaces/IAuditLogic.cs | 919 | using CertificateManager.Entities;
using CertificateManager.Entities.Interfaces;
using System.Collections.Generic;
using System.Security.Claims;
namespace CertificateManager.Logic.Interfaces
{
public interface IAuditLogic
{
IEnumerable<AuditEvent> GetAllEvents();
void LogSecurityAuditSuccess(C... | mit |
fintech-fab/bank-emulator | src/views/layouts/authorization.php | 398 | <?php
if (empty($content)) {
return;
}
$title = 'Bank Emulator Authorization Center';
?>
<html lang="ru">
<?=
View::make('ff-bank-em::layouts.head', array(
'title' => $title,
)); ?>
<body>
<div class="navbar navbar-default">
<?=
View::make('ff-bank-em::layouts.navbar-header', array(
'title' => $title,
)); ?>... | mit |
geometryzen/davinci-newton | build/module/lib/math/wedge3.js | 204 | export function wedgeYZ(a, b) {
return a.y * b.z - a.z * b.y;
}
export function wedgeZX(a, b) {
return a.z * b.x - a.x * b.z;
}
export function wedgeXY(a, b) {
return a.x * b.y - a.y * b.x;
}
| mit |
DevMpl/mlblog | lib/mlblog/version.rb | 38 | module Mlblog
VERSION = "0.0.1"
end
| mit |
minutelab/mless | vendor/github.com/awslabs/goformation/cloudformation/aws-ecs-service_deploymentconfiguration.go | 1159 | package cloudformation
// AWSECSService_DeploymentConfiguration AWS CloudFormation Resource (AWS::ECS::Service.DeploymentConfiguration)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html
type AWSECSService_DeploymentConfiguration struct {
// ... | mit |
seratch/skinny-framework | factory-girl/src/test/scala/sysadmin/SystemAdminSpec.scala | 942 | package sysadmin
import org.scalatest._
import scalikejdbc._
import scalikejdbc.scalatest.AutoRollback
import skinny.logging.Logging
import skinny.test.FactoryGirl
class userAdminSpec
extends fixture.FunSpec
with Matchers
with Connection
with CreateTables
with AutoRollback
with Logging {
ov... | mit |
iambumblehead/bttnsys | test/testrun.js | 654 | var scroungejs = require('scroungejs'),
startutils = require('./startutil');
startutils.createFileIfNotExist({
pathSrc : './test/indexSrc.html',
pathFin : './test/index.html'
}, function (err, res) {
if (err) return console.log(err);
scroungejs.build({
inputPath : [
'./test/testbuildSrc',
... | mit |
stephenbunch/type | src/Struct.js | 3084 | var Struct = ( function()
{
return function ( members )
{
var mode = "default";
var ctor = function( values )
{
if ( mode === "new" )
{
mode = "void";
return new Struct();
}
if ( mode === "void" )
... | mit |
xdamman/blogdown | core/server/lib/contributors.js | 1262 | var utils = require('./utils')
, request = require('request')
;
module.exports = {
fetchGithubInfo: function(email, cb) {
var githubProfile = {};
var api_call = "https://api.github.com/search/users?q="+email+"%20in:email";
var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } };
... | mit |
socialize/loopy-ios | Loopy/STShareActivityUI.h | 954 | //
// STShare.h
// Loopy
//
// Created by David Jedeikin on 10/23/13.
// Copyright (c) 2013 ShareThis. All rights reserved.
//
#import "STAPIClient.h"
#import <Foundation/Foundation.h>
#import <Social/Social.h>
@interface STShareActivityUI : NSObject
@property (nonatomic, strong) UIViewController *parentControll... | mit |
RadicalFx/Radical.Windows | src/Radical.Windows/PropertyInfoExtensions.cs | 801 | using Radical.Reflection;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace Radical.Windows
{
static class PropertyInfoExtensions
{
public static string GetDisplayName(this PropertyInfo propertyInfo)
{
if (propertyInfo != ... | mit |
slavitnas/SimpleCiphers | SimpleCiphers/Models/ArrayOperations.cs | 1318 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleCiphers.Models
{
public static class ArrayOperations
{
// Содержится ли text в encAbc. Если да, то возвращаются индексы в encAbc
// a b text = 1
// ... | mit |
pegurnee/2013-03-211 | workspace/Lecture 09_18_13/src/ManageAccounts.java | 1595 | import java.text.NumberFormat;
// ****************************************************************
// ManageAccounts.java
// Use Account class to create and manage Sally and Joe's bank accounts
public class ManageAccounts
{
public static void main(String[] args)
{
Account acct1, acct2;
NumberFormat us... | mit |
appflower/appflower_engine | modules/appFlower/templates/layout.php | 357 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
</head>
<body id="body" lang="en">
<?php ... | mit |
2Checkout/2checkout-python | twocheckout/sale.py | 3388 | from api_request import Api
from util import Util
from twocheckout import Twocheckout
class Sale(Twocheckout):
def __init__(self, dict_):
super(self.__class__, self).__init__(dict_)
@classmethod
def find(cls, params=None):
if params is None:
params = dict()
response = ... | mit |
callicore/library | lib/lib/wm.class.php | 4546 | <?php
/**
* wm.class.php - window manager
*
* handles window groups and multiple gtkwindow object easily
*
* This is released under the GPL, see docs/gpl.txt for details
*
* @author Leon Pegg <leon.pegg@gmail.com>
* @author Elizabeth M Smith <emsmith@callicore.net>
* @copyright Leon Pe... | mit |
zazujs/mufasa | app/src/utils/formButtons.directive.js | 687 | module.exports = FormButtonsDirective;
function FormButtonsDirective () {
return {
restrict: 'AE',
replace: true,
scope: {
submitClick: '&submitClick',
cancelClick: '&cancelClick'
},
templateUrl: '/src/utils/views/formButtons.tmpl.html',
link:... | mit |
elseano/intervention | test/config/routes.rb | 1991 | ActionController::Routing::Routes.draw do |map|
map.resources :projects
map.resources :priorities
map.resources :tasks
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'... | mit |
friendsofdigital/structure-symfony | src/Master/AdvertBundle/Controller/DefaultController.php | 2725 | <?php
namespace Master\AdvertBundle\Controller;
use Elastica\Filter\GeoDistance;
use Elastica\Query\Filtered;
use Elastica\Query\MatchAll;
use Master\AdvertBundle\Document\Advert;
use Master\AdvertBundle\Document\Localization;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundat... | mit |
Eernie/ASConfigCreator | Readme.md | 1517 | # ASConfigCreator
[](https://travis-ci.org/Eernie/ASConfigCreator)
[](https://coveralls.io/github/Eernie/ASConfigCreator?branch=dev... | mit |
eliace/ergojs-site | samples/core/widget/data/index.js | 1056 |
$context.section('Простое связывание', 'Иерархическое связывание с данными с использованием простых и составных ключей');
//= require data-basic
$context.section('Форматирование', 'Механизм одностороннего связывания (one-way-binding)');
//= require data-format
$context.section('Настройка', 'Управление изменением видж... | mit |
hammadirshad/dvare | src/main/java/org/dvare/annotations/Type.java | 1450 | /*The MIT License (MIT)
Copyright (c) 2016 Muhammad Hammad
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... | mit |
CenterForOpenScience/scinet | scinet/views.py | 4696 | import json
import os
from flask import request, g, render_template, make_response, jsonify, Response
from helpers.raw_endpoint import get_id, store_json_to_file
from helpers.groups import get_groups
from json_controller import JSONController
from main import app
from pymongo import MongoClient, errors
HERE = os.pat... | mit |
Arrekusu/datamover | components/datamover-core/src/main/java/com/arekusu/datamover/model/jaxb/ModelType.java | 2303 |
package com.arekusu.datamover.model.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlT... | mit |
antonioribeiro/sdk | src/Services/Accounts/Exceptions/InvalidPassword.php | 218 | <?php
namespace PragmaRX\Sdk\Services\Accounts\Exceptions;
use PragmaRX\Sdk\Core\HttpResponseException;
class InvalidPassword extends HttpResponseException {
protected $message = 'paragraphs.invalid-password';
}
| mit |
musicbender/my-portfolio | src/components/skills/skills.js | 851 | import React from 'react';
import './skills.scss';
export default () => {
return (
<section className="skills-section">
<svg className="bigTriangleColor separator-skills" width="100%" height="100" viewBox="0 0 100 102" preserveAspectRatio="none">
<path d="M0 0 L0 100 L70 0 L100 100 L100 0 Z" />
... | mit |
FrederikS/das-blog-frontend | app/http/client.js | 102 | import axios from 'axios';
export default axios.create({
baseURL: 'http://localhost:9000/v1/'
}); | mit |
mattbierner/parse-ecma | dist/lex/lexer.js | 4873 | /*
* THIS FILE IS AUTO GENERATED FROM 'lib/lex/lexer.kep'
* DO NOT EDIT
*/
define(["require", "exports", "bennu/parse", "bennu/lang", "nu-stream/stream", "ecma-ast/token", "ecma-ast/position",
"./boolean_lexer", "./comment_lexer", "./identifier_lexer", "./line_terminator_lexer", "./null_lexer",
"./number_lexe... | mit |
johnkors/IdentityServer3.Contrib.ElasticSearchEventService | source/Unittests/DefaultLogEventMapperTests.cs | 4525 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using IdentityServer3.Core.Events;
using IdentityServer3.ElasticSearchEventService.Extensions;
using IdentityServer3.ElasticSearchEventService.Mapping;
using IdentityServer3.ElasticSearchEventService.Mapping.Configuration... | mit |
nuvalis/GMAQ | app/view/users/list-all.tpl.php | 587 | <h1><?=$title?></h1>
<h5>Ordered by Points</h5>
<?php foreach ($users as $user) : ?>
<div class="mini-profile left">
<img class="gravatar left" src="<?= $this->mzHelpers->get_gravatar($user->email, 128); ?>" alt="">
<div class="info">
... | mit |
techno/xv6-mist32 | mp.c | 333 | // Multiprocessor support
// mist32 is not supported multiprocessor
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
struct cpu cpus[NCPU];
int ismp;
int ncpu;
void
mpinit(void)
{
ismp = 0;
ncpu = 1;
lapic = 0;
cpus[ncpu].id = ncpu;
ncpu++;
... | mit |
kmx/mirror-cd | src/intcgm/cgm_types.h | 6161 | #include <stdio.h>
#include "cgm_play.h"
#include "cgm_list.h"
#ifndef _CGM_TYPES_H_
#define _CGM_TYPES_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef int(*CGM_FUNC)(tCGM* cgm);
typedef struct {
double xmin;
double xmax;
double ymin;
double ymax;
} tLimit;
typedef struct {
unsigned long red;
u... | mit |
polyfox/moon-packages | spec/moon/packages/serializables/vector3_spec.rb | 274 | require 'spec_helper'
require 'serializables/vector3'
describe Moon::Vector3 do
context 'Serialization' do
it 'serializes' do
src = described_class.new(12, 8, 4)
result = described_class.load(src.export)
expect(result).to eq(src)
end
end
end
| mit |
liquidizer/liquidizer | src/main/scala/org/liquidizer/snippet/Markup.scala | 7634 | package org.liquidizer.snippet
import scala.xml._
import scala.xml.parsing._
import net.liftweb.util._
import net.liftweb.http._
import net.liftweb.http.js._
import net.liftweb.http.js.JsCmds._
import net.liftweb.common._
import org.liquidizer.model._
object Markup {
val URL1= "(https?:/[^\\s\"]*[^\\s!?&.<>])"
... | mit |
sgricci/sqllaboratory | includes/types.php | 1775 | <?php
/*
SQL Laboratory - Web based MySQL administration
http://projects.deepcode.net/sqllaboratory/
types.php
- list of data types
MIT-style license
2008 Calvin Lough <http://calv.in>, 2010 Steve Gricci <http://deepcode.net>
*/
$typeList[] = "varchar";
$typeList[] = "char";
$typeList[] = "text";
$typeList[] = "t... | mit |
joelpurra/bespoke-secondary | demo/style.css | 2264 | body {
font-family: helvetica, arial, sans-serif;
font-size: 24px;
line-height: 36px;
background: url("3264857348_0cfd8d7e4f_b-lowquality.jpg");
background-position: top center;
background-size: cover;
background-repeat: none;
overflow: hidden;
}
* {
box-sizing: border-box;
-moz-... | mit |
jaredthirsk/LionFire.Behaviors | LionFire.Behaviors/Dependencies/Coroutines.cs | 208 | #if false
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LionFire.Behaviors
{
public class Coroutine
{
}
}
#endif | mit |
lmarinov/Exercise-repo | Java_OOP_2021/src/SOLID/Exercise/Logger/model/appenders/FileAppender.java | 670 | package SOLID.Exercise.Logger.model.appenders;
import SOLID.Exercise.Logger.api.File;
import SOLID.Exercise.Logger.api.Layout;
import SOLID.Exercise.Logger.model.files.LogFile;
public class FileAppender extends BaseAppender {
private File file;
public FileAppender(Layout layout) {
super(layout);
... | mit |
compute-io/log10 | test/test.array.js | 1348 | /* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
log10 = require( './../lib/array.js' );
// VARIABLES //
var expect = chai.expect,
assert = chai.a... | mit |
wcjohnson/babylon-lightscript | test/fixtures/safe-call-expression/lightscript/match-test/actual.js | 25 | match x:
| it?(): true
| mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.0~camlp4/circuits/8.10.0.html | 7038 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>circuits: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+1/zchinese/8.9.0.html | 6988 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zchinese: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | mit |