code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
# -*- coding: utf8 -*-
import subprocess
import os
from pathlib import Path
cwd = os.getcwd()
try:
print(os.getcwd())
subprocess.call(['make'])
# res = subprocess.check_output('uname -a',shell=True)
res = subprocess.check_output(
r"./darknet detector test cfg/coco.data cfg/yolo.cfg yolo.weight... | umyuu/Sample | src/Python3/Q113190/exsample.py | Python | mit | 512 |
---
layout: post
title: "Altium Designer Design Tipps"
date: 2017-03-06 08:00
categories: Altium-designer
permalink: /posts/altium-designer
---

# CAD Systeme - Altium Designer Design Tipps
*Einführung und Designtips*
<!--... | hakandilek/layout-pcb.de | _posts/2017-03-06-CAD-Systeme-Altium-Designer.md | Markdown | mit | 8,041 |
package main
import "strings"
//CreateCommand is a factory method that returns the command that
//is infered from the passed command line arguments.
func CreateCommand(args []string, translator Translator) Command {
if args == nil || len(args) == 0 {
return new(OverviewCommand)
}
count := len(args)
command :=... | jamesmillerio/goboom | commandfactory.go | GO | mit | 1,321 |
// var knexConfig = require('../knexfile')
// var knex = require('knex')(knexConfig[process.env.NODE_ENV || "development"])
var knex = require('./knexOrigin')
module.exports = {
createEvent: (eventObj, cb) => {
knex('events').insert(eventObj)
.then( (data) => cb(null, data[0]) )
.catch( (err) => cb(... | James-Sangalli/DishOut | db/events.js | JavaScript | mit | 1,179 |
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.admin.commands.gamemode;
import io.github.nucleuspowered.nucleus.modules.admin.AdminPermissions;
import io.github.nucl... | NucleusPowered/Nucleus | nucleus-modules/src/main/java/io/github/nucleuspowered/nucleus/modules/admin/commands/gamemode/GamemodeToggleCommand.java | Java | mit | 2,542 |
#ifdef _WIN32
#define PATH_SEP ';'
#else
#define PATH_SEP ':'
#endif
#include <string>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <sstream>
#include <iostream>
#include "ast.hpp"
#include "util.hpp"
#include "sass.h"
#include "context.hpp"
#include "plugins.hpp"
#include "constants.hpp"
#includ... | go-gonzo/scss | internal/libsass/libsass/src/context.cpp | C++ | mit | 20,845 |
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>[爆卦] 鴻池也需要溫暖,靠發不實簡訊給選民取暖 - 看板 Gossiping - 批踢踢實業坊</title>
<meta name="robots" content="all">
<meta name="keywords" content="Ptt BBS 批踢踢">
<meta name="description" content="
https://www.facebook.com/Append... | iultimatez/PTTScraper | result/M.1419005416.A.F32.html | HTML | mit | 44,250 |
#include "class_5.h"
#include "class_2.h"
#include "class_0.h"
#include "class_9.h"
#include "class_6.h"
#include "class_3.h"
#include <lib_26/class_0.h>
#include <lib_21/class_6.h>
#include <lib_27/class_5.h>
#include <lib_19/class_7.h>
#include <lib_6/class_8.h>
class_5::class_5() {}
class_5::~class_5() {}
| menify/sandbox | aql/benchmark/lib_31/class_5.cpp | C++ | mit | 311 |
//
// HDRouter.h
// Pods
//
// Created by mrdaios on 15/8/17.
//
//
#import <Foundation/Foundation.h>
@protocol HDViewProtocol;
@protocol HDViewModelProtocol;
@interface HDRouter : NSObject
/**
* ViewModel <=> ViewController
*/
@property (nonatomic, strong, readonly) NSMutableDictionary *viewModelViewMappings;... | Haidora/HaidoraBrick | Pod/Classes/Extension/Navigation/Utils/HDRouter.h | C | mit | 445 |
<?php /** @var \xltxlm\h5skin\component\Power $this */
if(!defined(__FILE__))
{
$vueid=md5(get_class($this));
define(__FILE__,true);
?>
<script src="https://<?=$this->getSsoThrift()->getHosturl()?>:<?=$this->getSsoThrift()->getPort()?>/Vue/iPower/iPower.js?t=<?=date('Ymd')?>" ></script>
<?php } if($this->isI... | xltxlm/H5skin | src/Component/Power.tpl.php | PHP | mit | 476 |
# Introduction to DHCP basics and Terminology
[source][1]
## DHCP introduction
DHCP (Dynamic Host Configuration Protocol) is a standardized networking protocol used on IP networks that dynamically configures IP addresses and other information that is needed for Internet communication.
DHCP allows computers and other... | team-avesta/wiki | engineering/sysops/dhcp/README.md | Markdown | mit | 6,739 |
<!DOCTYPE HTML>
<html>
<head>
<title>ractive-transitions-velocity test suite</title>
<link rel='stylesheet' href='lib/qunit.css'>
</head>
<body>
<div id='qunit'></div>
<div id='qunit-fixture'></div>
<script src='lib/qunit.js'></script>
<script src='lib/qunit-assert-html.js'></script>
<script src='../vendor/ract... | cfenzo/ractive-transitions-velocity | test/index.html | HTML | mit | 684 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | 634894289/item_check | application/config/config.php | PHP | mit | 18,667 |
<!DOCTYPE html>
<html>
<head>
<title>A URL Shortener MicroService</title>
<link href="/public/css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<br />
<p class="clementine-text">A URL Shortener MicroService</p>
<div class="container">
<blockqu... | christoph-phillips/URLShortenerAPI | public/index.html | HTML | mit | 1,466 |
namespace Chushka.Models.Enums
{
public enum RoleType
{
User = 0,
Admin = 1
}
} | stoyanov7/SoftwareUniversity | C#Development/C#Web/C#WebDevelopmentBasics/Exams/Chushka/Chushka.Models/Enums/RoleType.cs | C# | mit | 117 |
using PsISEProjectExplorer.Services;
using PsISEProjectExplorer.UI.Helpers;
using PsISEProjectExplorer.UI.IseIntegration;
using PsISEProjectExplorer.UI.ViewModel;
using System;
using System.IO;
using System.Linq;
namespace PsISEProjectExplorer.Commands
{
[Component]
public class DeleteItemCommand :... | mgr32/PsISEProjectExplorer | PsISEProjectExplorer/Commands/DeleteItemCommand.cs | C# | mit | 2,902 |
package jwe
import (
"crypto"
"crypto/aes"
"crypto/cipher"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/sha256"
"crypto/subtle"
"encoding/binary"
"fmt"
"hash"
"github.com/lestrrat/go-jwx/internal/concatkdf"
"github.com/lestrrat/go-jwx/internal/debug"
"github.com/lestrrat/go-jwx/jwa"
... | lestrrat/go-jwx | jwe/key_encrypt.go | GO | mit | 12,484 |
(function ($) {
"use strict";
Dropzone.options.myDropzone = {
// Prevents Dropzone from uploading dropped files immediately
autoProcessQueue: false
, init: function () {
var submitButton = document.querySelector("#submit... | witoldlitwin/CoreQuiz | src/CoreQuiz/wwwroot/js/pages/file-upload.js | JavaScript | mit | 907 |
// @flow
/* eslint-disable */
import {
periodic,
now,
merge,
never,
newStream,
propagateEventTask
} from '@most/core'
import {disposeBoth, disposeWith} from '@most/disposable'
import {newDefaultScheduler, asap} from '@most/scheduler'
import M from '../m'
import tree from './element'
import type {Pith} from ... | Antares007/sakhe | src/vtree/test-vnode0.js | JavaScript | mit | 2,682 |
/*
* The MIT License
*
* Copyright 2015 Adam Kowalewski.
*
* 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,... | OtwartaPlatformaWyborcza/opw-ws-obwodowa | opw-ws-obwodowa/src/main/java/pl/otwartapw/opw/ws/obwodowa/bean/LinkBean.java | Java | mit | 2,149 |
var socket; //socket.io (live engine)
//Variable is set by server later on
var position = {
x: 1,
y: 1
};
var heading; // direction of player
var nameSize = 18; // size of the name label
//Variable is set by server later on
var worldDimensions = {
x: 1,
y: 1
};
var inPlay = false; //whether you hav... | raphy1234/The-Game-Of-Things | public/sketch.js | JavaScript | mit | 5,019 |
{{<govuk_template}}
{{$head}}
{{>includes/head}}
{{/head}}
{{$propositionHeader}}
{{>includes/propositional_navigation}}
{{/propositionHeader}}
{{$headerClass}}with-proposition{{/headerClass}}
{{$content}}
<main id="content" role="main">
{{>includes/phase_banner}}
<div class="grid-row">
<div class="colu... | gup-dwp/pip-prototype | app/views/pip14a/gettingOn.html | HTML | mit | 8,053 |
// Minitest (c) 2011 Jamie Webb
// MIT License
package cc.jwebb.minitest
import org.junit.Assert._
/** Used as an implicit parameter to control the margin for error allowed in
* floating point equality tests. */
class Epsilon(val v : Double) {
/** Default value. */
def this() = this(0.000000001)
}
/** Test asser... | jwebb/minitest | src/main/scala/testops.scala | Scala | mit | 2,422 |
require 'spec_helper'
require 'support/sales_helper'
RSpec.describe Sales::OrderSaga do
include SalesHelper
let(:command_bus) { CommandBus.new }
let(:event_store) { FakeEventStore.new }
let(:order_repository) { Sales::Adapter::Persistence::OrderRepository.new(event_store) }
let(:saga_reposit... | mlomnicki/ddd-ecommerce | spec/sales/order_saga_spec.rb | Ruby | mit | 3,759 |
// Thai
jQuery.timeago.settings.strings = {
prefixAgo : null,
prefixFromNow: null,
suffixAgo : "ที่แล้ว",
suffixFromNow: "จากตอนนี้",
seconds : "น้อยกว่าหนึ่งนาที",
minute : "ประมาณหนึ่งนาที",
minutes : "%d นาที",
hour : "ประมาณหนึ่งชั่วโมง",
hours ... | neowutran/Nuitinfo | nuitinfo/protected/common/lib/vendor/2amigos/yiiwheels/widgets/timeago/assets/js/locales/jquery.timeago.th.js | JavaScript | mit | 847 |
using System;
using System.Collections.Generic;
using Nop.Core;
using Nop.Core.Caching;
using Nop.Core.Data;
using Nop.Core.Domain.Catalog;
using Nop.Core.Domain.Orders;
using Nop.Core.Domain.Shipping;
using Nop.Core.Domain.Stores;
using Nop.Core.Plugins;
using Nop.Services.Catalog;
using Nop.Services.Common;
using No... | Anovative/Nop39 | Tests/Nop.Services.Tests/Shipping/CalculateDimensionsTests.cs | C# | mit | 9,922 |
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2018 TechReborn
*
* 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, inc... | drcrazy/TechReborn | src/main/java/techreborn/compat/crafttweaker/CTAlloySmelter.java | Java | mit | 2,662 |
Marsmello 0.8.x BETA
====================
Copyright (c) 2009-2013 Marsmello Developers
Copyright (c) 2011-2013 Marsmello Developers
Distributed under the MIT/X11 software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the O... | TEHmarshmallow/Marsmallows | doc/README.md | Markdown | mit | 1,711 |
using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SqlFace.Models
{
[Alias("AP_SEQ")]
public class CustomSequence:UniqueFilterable
{
#region Properties
private... | tearf001/Sql-App | com.models/OracleSequence.cs | C# | mit | 1,411 |
---
# DO NOT EDIT!
# This file is automatically generated by get-members. If you change it, bad
# things will happen.
layout: default
title: "Mr Andrew Love"
house: commons
---
<div class="row">
<div class="col-md-8">
{% include members/mr-andrew-love.html %}
<h3>What is Mr Andrew Love interes... | JeniT/childs-guide-to-parliament | members/mr-andrew-love.html | HTML | mit | 2,411 |
#include <stdio.h>
#include <rslib.h>
#include <string.h>
#define TARGET "Reed Solomon Tests"
#include <test.h>
static struct rs_control *rs_decoder;
int main()
{
INIT_TEST();
rs_decoder = init_rs (10, 0x409, 0, 1, 6);
int blocks = 32;
unsigned char data8[blocks];
char *parity_data;
uin... | adithyabhatkajake/shacham-and-waters-scheme | tests/reed-solomon.c | C | mit | 1,166 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("09... | g-yonchev/TelerikAcademy | Homeworks/C# 2/06. Strings And Text Processing/09. ForbiddenWords/Properties/AssemblyInfo.cs | C# | mit | 1,412 |
<?php
namespace Gubler\Color;
/**
* Class Color.
*/
class Color
{
/** @var int */
protected $red;
/** @var int */
protected $green;
/** @var int */
protected $blue;
/** @var float */
protected $alpha;
/** @var float */
protected $hue;
/** @var int */
protected $satura... | gubler/color | src/Color.php | PHP | mit | 5,176 |
// Copyright (c) 2009 by Doug Kearns
//
// This work is licensed for reuse under an MIT license. Details are
// given in the License.txt file included with this file.
const Name = "Vimperator";
/*
* We can't load our modules here, so the following code is sadly
* duplicated: .w !sh
vimdiff ../../*'/components/about-... | derenio/vimperator-labs | vimperator/components/about-handler.js | JavaScript | mit | 1,401 |
package protocol
import (
"context"
"github.com/coffeehc/logger"
"github.com/coffeehc/netx"
"github.com/ugorji/go/codec"
)
type msgpackProtocol struct {
hander *codec.MsgpackHandle
interf func() interface{}
}
//NewMsgpackProcotol cteate a Msgpack Protocol implement
func NewMsgpackProcotol(interfFunc func() in... | coffeehc/coffeenet | protocol/msgpack_protocol.go | GO | mit | 1,366 |
// The MIT License (MIT)
//
// Copyright (c) 2017 Jesse Sweetland
//
// 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 u... | sweetlandj/Platibus | Source/Platibus/Journaling/MessageJournalReadResult.cs | C# | mit | 2,986 |
package com.phycholee.blog.test;
import com.phycholee.blog.model.Article;
import com.phycholee.blog.utils.FileUtil;
import com.phycholee.blog.utils.PropertiesUtil;
import com.phycholee.blog.utils.TimeUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value... | phycholee/PhychoLeeBlog | src/main/java/com/phycholee/blog/test/TestFileUpload.java | Java | mit | 2,567 |
#Collection of Algorithms and Data Structures
This is a #180daysCodeChallenge i have taken to brush my fundamentals in DATA STRUCTURES & ALGORITHMS
#November 21 , 2017 is the deadline
| arapaka/algorithms-datastructures | README.md | Markdown | mit | 186 |
#...............................................................................
#
# This file is part of the AXL library.
#
# AXL is distributed under the MIT license.
# For details see accompanying license.txt file,
# the public copy of which is also available at:
# http://tibbo.com/downloads/archive/axl/license... | vovkos/axl | cmake/import_qt.cmake | CMake | mit | 4,628 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
from loguru import logger
from pathlib import Path
def check_meta_yaml_for_noarch(fn:Path, text=None):
import re
logger.debug("Checking for noarch")
if text is None:
with open(fn, "rt") as fl:
text = fl.read()
mo = re... | mjirik/discon | discon/discon_tools.py | Python | mit | 600 |
package emplRegApp.web.manageBeans;
import emplRegApp.domain.models.view.EmployeeViewModel;
import emplRegApp.service.EmployeeService;
import org.modelmapper.ModelMapper;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
import java.io.Serializable;
import java.math... | ivelin1936/Studing-SoftUni- | Java WEB/Java Web Development Basics/Exercises - JavaServer Faces/EmplReg/src/main/java/emplRegApp/web/manageBeans/EmployeeListBean.java | Java | mit | 1,904 |
<?php
/*
* Lizzy - small and fast web-page rendering engine
*
* Substitution-Variables and Macros()
*
* Usage: {{ }}
* or {{x }} where x:
* ^ = omit if var is not defined
* # = comment out, skip altogether
* ! = force late processing
* & = force md compilation ... | zurisee/lizzycms | transvar.class.php | PHP | mit | 30,747 |
//
// BFDisplayEventProtocol.h
// HomePage https://github.com/wans3112/BFDisplayEvent
//
// Created by wans on 2017/4/12.
// Copyright © 2017年 wans,www.wans3112.cn All rights reserved.
//
#ifndef BFDisplayEventProtocol_h
#define BFDisplayEventProtocol_h
#import "BFEventModel.h"
/**
参数传递block
@param eventModel... | wans3112/BFDisplayEvent | BFDisplayEvent/Classes/BFDisplayEventProtocol.h | C | mit | 904 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Pr... | koravski/TelerikAcademy | 02.C#2/06.StringsAndTextProcessing/Problem23SeriesOfLetters/Properties/AssemblyInfo.cs | C# | mit | 1,424 |
<?php
/*
Unsafe sample
input : get the field UserData from the variable $_POST
sanitize : none
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its do... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/unsafe/CWE_89__POST__no_sanitizing__multiple_AS-concatenation_simple_quote.php | PHP | mit | 1,634 |
<?php
/*
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
sanitize : use of intval
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_98/safe/CWE_98__backticks__func_intval__require_file_id-interpretation_simple_quote.php | PHP | mit | 1,189 |
/*
* Don't change this. It's a template, so copy paste and adjust for your needs.
*/
package Servlets;
import Beans.LoggedIn;
import Models.PartyAnimalsModel;
import Beans.PartyAnimalsBean;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.logging.L... | Team4-AC41004/YoYoString | src/java/Servlets/PartyAnimalsServlet.java | Java | mit | 5,009 |
# encoding: utf-8
module QueryBuilder::CQL
module Contexts
# Describes the Cassandra table index
#
class Permission < Base
attribute :name
attribute :keyspace
attribute :table
# Returns the name of the context for permission
#
# @return [String]
#
def t... | nepalez/query_builder | lib/query_builder/cql/contexts/permission.rb | Ruby | mit | 1,375 |
---
id: conditional_evaluation
title: Conditional Evaluation
slug: conditional-evaluation.html
---
There are several ways to disable tests. Some of these are hardcoded in your test, others are evaluated at runtime.
### By Config
You can disable a test case simply by setting the config parameter `enabled` to `false`... | sksamuel/ktest | documentation/docs/framework/conditional_evaluation.md | Markdown | mit | 5,331 |
package org.telegram.api.functions.messages;
import org.telegram.api.message.media.TLAbsMessageMedia;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLMethod;
import org.telegram.tl.TLObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.Output... | rubenlagus/TelegramApi | src/main/java/org/telegram/api/functions/messages/TLRequestMessagesGetWebPagePreview.java | Java | mit | 2,110 |
# coding: utf-8
from __future__ import unicode_literals
import re
import os
from django.shortcuts import render
from django.conf import settings
def index(request):
p = re.compile(r'^app\d+_')
apps = (a.split('_') for a in settings.INSTALLED_APPS if p.match(a))
return render(request, 'ignore_me/index.... | sametmax/Django--an-app-at-a-time | ignore_this_directory/ignore_me/views.py | Python | mit | 391 |
using System;
using DotNet.Globbing.Token;
namespace DotNet.Globbing.Evaluation
{
public class AnyCharacterTokenEvaluator : IGlobTokenEvaluator
{
private readonly AnyCharacterToken _token;
public AnyCharacterTokenEvaluator(AnyCharacterToken token)
{
_token = token;
... | dazinator/DotNet.Glob | src/DotNet.Glob/Evaluation/AnyCharacterTokenEvaluator.cs | C# | mit | 1,003 |
## 2020-01-11
#### all
#### unknown
* [yuanming-hu / difftaichi](https://github.com/yuanming-hu/difftaichi):10 differentiable physical simulators built with Taichi differentiable programming (DiffTaichi, ICLR 2020)
* [aspittel / coding-cheat-sheets](https://github.com/aspittel/coding-cheat-sheets):Various cheat sheet... | tzpBingo/github-trending | 2020/2020-01-11.md | Markdown | mit | 41,446 |
---
layout: docs
authors:
- blairanderson
date: 2014-08-12 22:22:22
title: jQuery.Callbacks() in Javascript - without jQuery
description: A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
method: jQuery.Callbacks
href: "docs/jQuery.Callbacks.html"
status: "inactive"
---
###... | blairanderson/without-jquery | docs/jQuery.Callbacks.md | Markdown | mit | 862 |
# - Find Box2D
# Find the native Box2D includes and libraries
#
# BOX2D_INCLUDE_DIR - where to find TmxParser/Config.hpp, etc.
# BOX2D_LIBRARIES - List of libraries when using libTmxParser.
# BOX2D_FOUND - True if libTmxParser found.
find_path(BOX2D_INCLUDE_DIR Box2D/Box2D.h
PATH_SUFFIXES include
PATHS
~/Library/Frame... | stevenblaster/crapengine | CMake/FindBox2D.cmake | CMake | mit | 1,938 |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AFNetworking
#define COCOAPODS_POD_AVAILABLE_AFNetworking
#define COCOAPODS_VERSION_MAJOR_... | r29arora/RedditApp | RedditApplication/Pods/Pods-environment.h | C | mit | 2,785 |
export default Ember.ObjectController.extend({
actions: {
cancel: function() {
this.transitionToRoute('books');
}
}
});
| twar59/ember-jquery-datatables | app/controllers/books/show.js | JavaScript | mit | 138 |
from __future__ import print_function, division, absolute_import
from george import kernels, GP
import numpy as np
from kglib import fitters
from scipy.integrate import quad
from scipy.optimize import minimize
class HistFitter(fitters.Bayesian_LS):
def __init__(self, mcmc_samples, bin_edges):
"""
... | kgullikson88/gullikson-scripts | kglib/fitters/histogram.py | Python | mit | 5,838 |
-- Elevent 1.0
-- Licensed under The MIT License (MIT)
-- Copyright (c) 2013 Qais "qaisjp" Patankar
local eventList, renderList = { }, { }
local Event = { }
Event.AddEvent = function(event)
if (type(event) ~= "string") or (event == "") then
error("Invalid `event` parameter supplied", 2)
end
if not eventList[... | qaisjp/elevent | elevent.lua | Lua | mit | 2,706 |
module URLComponents
URL_CHARS = ('0'..'9').to_a + %w(b c d f g h j k l m n p q r s t v w x y z) + %w(B C D F G H J K L M N P Q R S T V W X Y Z - _)
URL_BASE = URL_CHARS.size
def generate_slug(text, delimiter = '-')
slug = text.downcase.gsub(/[^0-9a-z_ -]/i, '')
slug = slug.gsub(/\s+/, delimiter)
s... | devjj/wikiby | lib/url_components.rb | Ruby | mit | 613 |
<?php
namespace TwbBundleTest;
use TwbBundle\ConfigProvider;
/**
* Config Provider Test
*
* @package TwbBundleTest
*/
class ConfigProviderTest extends \PHPUnit_Framework_TestCase
{
/**
* The zend-component config provider
*
* @var \TwbBundle\ConfigProvider
*/
protected $configProvider;... | neilime/zf2-twb-bundle | tests/TwbBundleTest/ConfigProviderTest.php | PHP | mit | 984 |
# ------------------------------------------------------
# current.py
#
# Plot a current field at fixed depth
# Modified from the spermplot example
#
# Bjørn Ådlandsvik <bjorn@imr.no>
# 2020-03-27
# ------------------------------------------------------
# -------------
# Imports
# -------------
import numpy as np
imp... | bjornaa/roppy | examples/plot_current25.py | Python | mit | 2,273 |
# Acknowledgements
This application makes use of the following third party libraries:
## AFNetworking
Copyright (c) 2011–2015 Alamofire Software Foundation (http://alamofire.org/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... | anlong2008/WeatherCast | WeatherCast/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown | Markdown | mit | 6,323 |
<?php
/**
* Configuration overrides for WP_ENV === 'staging'
*/
use Roots\WPConfig\Config;
/**
* You should try to keep staging as close to production as possible. However,
* should you need to, you can always override production configuration values
* with `Config::define`.
*
* Example: `Config::define('WP_DE... | newshour/newshour-wordpress-skeleton | config/environments/staging.php | PHP | mit | 896 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using Internal.Runtime.Augmen... | shrah/corert | src/System.Private.CoreLib/src/System/Runtime/InteropServices/InteropExtensions.cs | C# | mit | 16,834 |
<?php
function curl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
$result = curl_exec($ch);
curl... | Vesihiisi/WikiClock | getPics.php | PHP | mit | 2,720 |
class AddIndexToPrecincts < ActiveRecord::Migration[5.0]
def self.up
add_index :precincts, :precinct_identifier
end
def self.down
remove_index :precincts, :precinct_identifier
end
end
| greenvault/wahlbezirke | db/migrate/20170509102110_add_index_to_precincts.rb | Ruby | mit | 201 |
package kmz
import (
"bytes"
"log"
"github.com/twpayne/go-kml"
)
func ExampleNewKMZ() {
kmz := NewKMZ(
kml.Placemark(
kml.Name("Simple placemark"),
kml.Description("Attached to the ground. Intelligently places itself at the height of the underlying terrain."),
kml.Point(
kml.Coordinates(kml.Coordi... | twpayne/go-kmz | kmz_test.go | GO | mit | 488 |
module Raml
class QueryParameter
attr_accessor :name, :description, :type, :example, :required
def initialize(name)
@name = name
@required = false
end
end
end
| jpb/raml-rb | lib/raml/query_parameter.rb | Ruby | mit | 189 |
#if VOUCHERIFYSERVER
using Newtonsoft.Json;
using Voucherify.Core.DataModel;
namespace Voucherify.DataModel.Contexts
{
[JsonObject]
public class SkuUpdate
{
[JsonProperty(PropertyName = "sku")]
public string SkuValue { get; set; }
[JsonProperty(PropertyName = "price")]
pub... | voucherifyio/voucherify-dotNET-sdk | src/Voucherify/DataModel/Contexts/SkuUpdate.cs | C# | mit | 2,247 |
{% if page.author and site.data.authors[page.author] %}
{% assign author = site.data.authors[page.author] %}
{% else %}
{% assign author = site.author %}
{% endif %}
<div itemscope itemtype="http://schema.org/Person">
{% if author.avatar %}
<div class="author__avatar">
{% if author.avatar contains ":/... | RimWorldMod/RimWorldMod.github.io | _includes/author-profile.html | HTML | mit | 7,543 |
////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... | aleongithub/wdi-fundamentals-rps | app/js/rockpaperscissors.js | JavaScript | mit | 3,448 |
# ReadCounts Read Grouping
The counts for aligned reads are tabulated by BAM file and, if desired,
by a group identifier extracted from each alignment record. Usecases
include cell-barcodes added for single-cell sequencing. Read groups can
be extracted from read headers by regular expression, splitting lines
according... | HorvathLab/NGS | ReadCounts/docs/Grouping.md | Markdown | mit | 3,040 |
require 'test_helper'
class InterleaveRegistryAffiliateTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| NUBIC/interleave | test/models/interleave_registry_affiliate_test.rb | Ruby | mit | 141 |
/*
Navicat Premium Data Transfer
Source Server : localmysql
Source Server Type : MySQL
Source Server Version : 50544
Source Host : 192.168.26.130
Source Database : SurveyAPP
Target Server Type : MySQL
Target Server Version : 50544
File Encoding : utf-8
Date: 09/22/2015... | hyperted/blub | sql/SurveyAPP.sql | SQL | mit | 4,334 |
from __init__ import redis_db
from werkzeug.security import generate_password_hash, check_password_hash
from os import urandom
from base64 import b64encode
class User(object):
def __init__(self):
self.username = "" # required
self.password_hash = "" # required
self.phone_number = "" # req... | BrambleLLC/HackAZ-2016 | server/webapp/models.py | Python | mit | 1,957 |
var express = require('express'),
server = express();
server.use('/', express.static(__dirname + '/public'));
server.use('/shaders', express.static(__dirname + '/lessons/shaders'));
server.use('/assets', express.static(__dirname + '/lessons/assets'));
server.listen(9000);
console.log('Listening on port 9000'); | ranerp/webgl-sissejuhatus | server.js | JavaScript | mit | 317 |
var assert = require('assert');
var _ = require('lodash');
var Client = require('./lib/client');
describe('cgminer-api', function () {
describe('@parser', function () {
});
describe('@client', function () {
var client;
before(function (done) {
client = new Client({
host: process.env.CGM... | hashpanel/node-cgminer | test.js | JavaScript | mit | 8,424 |
package com.waylau.spring.boot.blog.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.springframework.security.core.GrantedAuthority;
/**
* 权限.
*
* @since 1.0.0 2017年3... | waylau/spring-boot-tutorial | samples/blog-auth/src/main/java/com/waylau/spring/boot/blog/domain/Authority.java | Java | mit | 1,052 |
package epi
import (
"testing"
"github.com/stretchr/testify/assert"
)
// Write a function to calculate the parity
// returns 1 if odd number of bits
// return 0 if even number of bits
func parity(n uint64) int {
count := 0
for i := 0; i < 64; i++ {
if (n & (1 << uint64(i))) > 0 {
count++
}
}
if count%2 ... | mb-dev/algorithms | epi/5.0-parity_test.go | GO | mit | 452 |
import functions
import heapq
import vtbase
### Classic stream iterator
registered = True
class StreamExcept(vtbase.VT):
def BestIndex(self, constraints, orderbys):
return (None, 0, None, True, 1000)
def VTiter(self, *parsedArgs, **envars):
largs, dictargs = self.full_parse(parsedArgs)
... | madgik/exareme | Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/vtable/streamexcept.py | Python | mit | 3,449 |
package com.helpsumo.api.ticketing.ticket.Adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.helpsumo.api.ticketing.R;
import ... | HelpSumo/HelpSumo-Android | src/main/java/com/helpsumo/api/ticketing/ticket/Adapter/ListAdapter.java | Java | mit | 3,697 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var schema = new Schema({
name: { type: String, required: true },
position: { type: String },
marketValue: { type: Number },
jerseyNumber: { type: Number },
dateOfBirth: { type: Date },
contractedUntil: { type: Date },
club_id: { type: Sch... | demirdagemir/falsenine | models/player.js | JavaScript | mit | 1,812 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OxyPlot;
namespace MouseTester
{
using System.Drawing;
using System.Drawing.Imaging;
using OxyPlot.WindowsForms;
... | microe1/MouseTester | MouseTester/MouseTester/MousePlot.cs | C# | mit | 24,156 |
package be.ordina.jworks.rpsls.controller;
import be.ordina.jworks.rpsls.game.*;
import be.ordina.jworks.rpsls.game.pubsub.ChatEventPublisher;
import be.ordina.jworks.rpsls.game.pubsub.GameEventPublisher;
import be.ordina.jworks.rpsls.game.websocket.ChatMessage;
import be.ordina.jworks.rpsls.game.websocket.GameMessage... | Turbots/SpringOne2016 | rock-paper-scissors-lizard-spock/src/main/java/be/ordina/jworks/rpsls/controller/GameController.java | Java | mit | 8,774 |
using System;
using System.Runtime.InteropServices;
namespace Examples
{
class Program
{
[STAThread]
static void Main(string[] args)
{
SolidEdgeFramework.Application application = null;
try
{
// See "Handling 'Application is Busy' an... | SolidEdgeCommunity/docs | docfx_project/snippets/SolidEdgeFramework.Application.UsableWidth.cs | C# | mit | 895 |
"use strict";
const filterable = require("@lerna/filter-options");
/**
* @see https://github.com/yargs/yargs/blob/master/docs/advanced.md#providing-a-command-module
*/
exports.command = "bootstrap";
exports.describe = "Link local packages together and install remaining package dependencies";
exports.builder = yar... | sebmck/lerna | commands/bootstrap/command.js | JavaScript | mit | 2,616 |
/*
* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
( function() {
// Add to collection with DUP examination.
// @param {Object} collection
// @param {Object} element
// @param {Object}... | otto-torino/gino | ckeditor/plugins/div/dialogs/div.js | JavaScript | mit | 14,457 |
import json, logging, os, re, subprocess, shlex
from tools import get_category_by_status
log = logging.getLogger()
meta_files = ['Disassembly', 'Stacktrace', 'Registers',
'SegvAnalysis', 'ProcMaps', "BootLog" , "CoreDump",
"BootDmesg", "syslog", "UbiquityDebug.gz", "Casper.gz",
"UbiquityPar... | jfoote/vulture | vlib/analyzers/reproducibility.py | Python | mit | 2,072 |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
// For more informati... | Azure-Samples/service-fabric-dotnet-getting-started | src/GettingStartedApplication/WebService/Controllers/StatelessBackendServiceController.cs | C# | mit | 1,682 |
//
// YYBBConfig.h
// YYBBSDK
//
// Created by Wang_Ruzhou on 2018/9/10.
//
#import <Foundation/Foundation.h>
#import <YYModel/NSObject+YYModel.h>
@interface YYBBURL : NSObject
@property (nonatomic, copy) NSString *afActivate;
@property (nonatomic, copy) NSString *firebaseInitialize;
@end
@interface YYBBConf... | 460467069/smzdm | CWSDK/YYBBSDK/Required/YYBBConfig.h | C | mit | 1,926 |
if ( true ) import { a as x } from "./abc";
if ( false ) import { b as y } from "./abc";
if ( true ) export function outer() {
import { a as ay } from "./abc";
import { b as bee } from "./abc";
import { c as see } from "./abc";
return [ ay, bee, see ];
}
if ( false ) export { x } from "./foo";
x; // Stay as ... | quase/quasejs | packages/builder/test/babel-modules-fixtures/nested-imports-exports-3/actual.js | JavaScript | mit | 338 |
/**
@class
<p>Efficient querying of documents containing shapes indexed using the
geo_shape type.</p>
<p>Much like the geo_shape type, the geo_shape query uses a grid square
representation of the query shape to find those documents which have shapes
that relate to the query shape in a spec... | AdrianRossouw/browsr | couch-app/bower_components/elastic.js/src/query/GeoShapeQuery.js | JavaScript | mit | 6,233 |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "MMUIViewController.h"
@interface MMWebLoginController : MMUIViewController
{
}
- (void)viewDidUnload;
- (void)viewDidLoad;
- (id)init;
- (void)beginScan;
- (void)onBack;
... | walkdianzi/DashengHook | WeChat-Headers/MMWebLoginController.h | C | mit | 327 |
package utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import model.Pic;
import org.apache.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONObject;
import org.noggit.JSONParser;
import org.springframework.boot.json.JsonJsonP... | rohitguptadev/ImagePlay | src/main/java/utils/SearchPhoto.java | Java | mit | 3,508 |
import hashlib
import os
import sys
if len(sys.argv) < 3: #1
print("You need to specify two directories:") #1
print(sys.argv[0], "<directory 1> <directory 2>") #1
sys.exit() #1
directory1 = sys.argv[1] ... | AnthonyBriggs/Python-101 | hello_python_source_py3/chapter 03/difference_engine_5_inorder.py | Python | mit | 2,533 |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import * as actions from '../../actions/auth'
import './login.css'
import { Container, Grid, Segment, Input, Header, Button, Icon } from 'semantic-ui-react';
const styles = {
loginForm: {
height: '100%'
},
segment: {
... | projectOpenRAP/OpenRAP | devmgmtui/src/components/auth/Login.js | JavaScript | mit | 3,749 |
---
layout: post
lang: en
permalink: /en/smarthr
title: SmartHR
description: ' SmartHR was founded on Jan. 23, 2013 and we launched our eponymous service in November of 2015. SmartHR is an HR/Labor SaaS that allows companies to completely digitzalize onboarding paperwork, tax forms, and other labor procedures that hav... | uiureo/remote-in-japan | docs/en/_posts/2020-02-22-smarthr.md | Markdown | mit | 1,949 |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | dromologue/dromologue.github.io | _site/devops-summit-complete-compliance-in-coding-is-an/index.html | HTML | mit | 11,145 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_25) on Sun Jan 04 18:05:04 PST 2015 -->
<title><Unnamed></title>
<meta name="date" content="2015-01-04">
<link rel="stylesheet" type="tex... | amirbawab/GraphADT | documentation/package-frame.html | HTML | mit | 745 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.