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 |
|---|---|---|---|---|---|
import os,sys
from trans_rot_coords import *
import numpy as np
from read_energy_force_new import *
from grids_structures_general import DS,Grid_Quarts
from orient_struct_2 import OrientDS as OrientDS_2
from orient_struct_3 import OrientDS as OrientDS_3
AU2KCAL = 23.0605*27.2116
R2D = 180.0/3.14159265358979
## np.pi/... | sethbrin/QM | version2/python/calculate_energy_new_coords_general.py | Python | mit | 32,462 |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2022 Mickael Jeanroy
*
* 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
... | mjeanroy/jasmine-utils | src/core/util/is-finite-number.js | JavaScript | mit | 1,420 |
class AchievementsController < ApplicationController
before_action :authenticate_admin!
before_action :set_achievement, only: [:show, :edit, :update, :destroy]
# GET /achievements
# GET /achievements.json
def index
@achievements = Achievement.all
end
# GET /achievements/1
# GET /achievements/1.jso... | jcfausto/jcfausto-rails-website | app/controllers/achievements_controller.rb | Ruby | mit | 2,096 |
# DistantPoints[http://community.topcoder.com/stat?c=problem_statement&pm=11077]
class DistantPoints
def self.solution (n, k)
@max = 2 ** n + 2
points = {}
p = [1, 1]
(k - 1).times do
points[p] = true
p = nextPoint(points)
end
p
end
def self.nextPoint (points)
dMax ... | erichaase/topcoder | ruby/app/DistantPoints.rb | Ruby | mit | 1,107 |
@import url(http://fonts.googleapis.com/css?family=Nixie+One|Poiret+One);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700,400);
html{
font-family: 'Open Sans', sans-serif;
}
.container1{width: 300px;
margin: 0 auto;
margin-top: 60px;
}
/* login css*/
.containerBG{background-... | sanelib/WebStarterKit | FrontEndWeb/app/styles/app.css | CSS | mit | 5,810 |
<?php
namespace PlentymarketsAdapter\ServiceBus\QueryHandler\OrderStatus;
use PlentyConnector\Connector\ServiceBus\Query\FetchTransferObjectQuery;
use PlentyConnector\Connector\ServiceBus\Query\QueryInterface;
use PlentyConnector\Connector\ServiceBus\QueryHandler\QueryHandlerInterface;
use PlentyConnector\Connector\S... | Pfabeck/plentymarkets-shopware-connector | Adapter/PlentymarketsAdapter/ServiceBus/QueryHandler/OrderStatus/FetchAllOrderStatusesQueryHandler.php | PHP | mit | 2,062 |
# -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.conf import settings
import pymongo
from datetime import datetime
from .models import PQDataModel
class Parliamen... | mthipparthi/parliament-search | parliamentsearch/pipelines.py | Python | mit | 1,789 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<meta name="collection" content="exclude">
<!-- Generated by javadoc (build 1.5.0-rc) on Wed Aug 11 07:29:04 PDT 2004 -->
<TITLE>
Uses of Class java.security.AlgorithmParameters (Java 2 P... | Smolations/more-dash-docsets | docsets/Java 5.docset/Contents/Resources/Documents/java/security/class-use/AlgorithmParameters.html | HTML | mit | 21,020 |
namespace IPCUtilities.IpcPmrep.CommandObjects
{
public class PmrepAddDeploymentGroup: AbstractRepoObject
{
private string _deploymentGroupName;
private string _versionNumber;
private string _folderName;
private string _persistentImputFile;
pr... | RainManVays/IPCUtilites | IpcPmrep/CommandObjects/PmrepDeploymentGroup.cs | C# | mit | 1,133 |
/**
* Created by TC on 2016/10/10.
*/
import React, {
Component,
} from 'react'
import {
Image,
View,
ToastAndroid,
ActivityIndicator,
}
from 'react-native'
import PixelRatio from "react-native/Libraries/Utilities/PixelRatio";
class GirlComponent extends Component {
constructor(props)... | huxinmin/PracticeMakesPerfect | reactNative/reactnativelearn-master/js/GirlComponent.js | JavaScript | mit | 1,751 |
# PositiveBasicSupport
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/positive_basic_support`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the tex... | osorubeki-fujita/positive_basic_support | README.md | Markdown | mit | 1,537 |
VERSION=0.23
OCHAMCRESTVERSION=1.9
DISTFILE=OCMockito-${VERSION}
DISTPATH=build/${DISTFILE}
PROJECTROOT=..
DOCSET=build/Documentation/org.mockito.OCMockito.docset
echo Preparing clean build
rm -rf build
mkdir build
echo Building OCMockito - Release
xcodebuild -configuration Release -target OCMockito
OUT=$?
if [ "${OU... | nschum/OCMockito | Source/MakeDistribution.sh | Shell | mit | 1,789 |
<?php
header('Content-Type: image/png');
header('X-Content-Quality: '.$_GET['quality']);
readfile($file);
| juijs/store.jui.io | public/v2/plugins/code/preprocessor/png.php | PHP | mit | 107 |
# frozen_string_literal: true
# :reek:UtilityFunction
module RubyRabbitmqJanus
module Janus
module Responses
# Response for RSpec initializer
class RSpec
# Constructor to RSpec response.
# Create a fake response for testing library.
def initialize(type)
path = RubyR... | dazzl-tv/ruby-rabbitmq-janus | lib/rrj/janus/responses/rspec.rb | Ruby | mit | 1,811 |
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Enactus JMI | Success</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-control" content="max-age=86400">
<meta name="theme-color" content="#ffc43... | ajiteshr7/teamenactusjmi.github.io | thanks.html | HTML | mit | 5,094 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.01.0-1.2.0/unstable/dev/contrib:sudoku/8.4.dev/2014-12-12_02-40-34.html | HTML | mit | 6,867 |
export * from '../common';
export NodeBundle from './NodeBundle';
export CommonJsResolver from './CommonJsResolver';
| stephenbunch/palkia | src/node/index.js | JavaScript | mit | 117 |
OBJECT=select_srv client
CC=gcc
FLAGS=
.PHONY : TARGET
TARGET:$(OBJECT)
#-------------------------------
$(OBJECT):%:%.c
$(CC) $< $(FLAGS) -o $@
#-------------------------------
.PHONY : tag
tag:
ctags -R .
.PHONY : test
test:
make
./select_srv &
./client 127.0.0.1
.PHONY : clean
clean:
-rm $(OBJECT)
| SeanXP/UNP | unp/select/Makefile | Makefile | mit | 313 |
import arrow
import settings
from . import misc
from . import voting
from . import comments
from . import exceptions as exc
def merge_pr(api, urn, pr, votes, total, threshold):
""" merge a pull request, if possible, and use a nice detailed merge commit
message """
pr_num = pr["number"]
pr_title = pr[... | eukaryote31/chaos | github_api/prs.py | Python | mit | 8,393 |
#!/usr/bin/env python
__copyright__ = "Copyright 2013-2014, http://radical.rutgers.edu"
__license__ = "MIT"
import sys
import radical.pilot as rp
# READ: The RADICAL-Pilot documentation:
# http://radicalpilot.readthedocs.org/en/latest
#
# Try running this example with RADICAL_PILOT_VERBOSE=debug set if
# you w... | JensTimmerman/radical.pilot | examples/running_mpi_executables.py | Python | mit | 5,342 |
require "spec_helper"
shared_examples "database adapter" do
before do
test_database.run <<-SQL
CREATE SCHEMA foo;
CREATE TABLE foo.persons (
id int,
first_name varchar(255),
last_name varchar(255)
);
SQL
end
after do
test_database.run <<-SQL
DROP SCHEM... | maiwald/beetle_etl | spec/adapters/shared_examples.rb | Ruby | mit | 1,391 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Coverage Report</title>
<link title="Style" type="text/css" rel="stylesheet" href="css/main.css"/... | saranas/Tanssigeneraattori | dokumentaatio/cobertura/liikkeidenmallinnus.Koreografia.html | HTML | mit | 21,159 |
from riotwatcher import *
from time import sleep
import logging
log = logging.getLogger('log')
def getTeamOfSummoner( summonerId, game ):
for p in game['participants']:
if p['summonerId'] == summonerId:
return p['teamId']
def getSummonerIdsOfOpponentTeam( summonerId, game ):
teamId = getTeamOfS... | DenBaum/lolm8guesser | friendship.py | Python | mit | 3,046 |
# DEPRECATION WARNING
This functionality is better provided by:
https://github.com/benmosher/eslint-plugin-import
I'd suggest using that module instad.
-----------------
# eslint-plugin-modules
ESLint rules for JavaScript modules.
### Installation
`npm install --save-dev eslint-plugin-modules`
### Usage
Add t... | xjamundx/eslint-plugin-modules | README.md | Markdown | mit | 716 |
package org.data2semantics.mustard.rdfvault;
import java.util.List;
import java.util.Set;
import org.data2semantics.mustard.kernels.ComputationTimeTracker;
import org.data2semantics.mustard.kernels.FeatureInspector;
import org.data2semantics.mustard.kernels.KernelUtils;
import org.data2semantics.mustard.kerne... | Data2Semantics/mustard | mustard-experiments/src/main/java/org/data2semantics/mustard/rdfvault/RDFGraphListURIPrefixKernel.java | Java | mit | 2,327 |
<?php
// Enable error reporting to help us debug issues
error_reporting(E_ALL);
// Start PHP sessions
session_start();
require_once('./config.php');
$oToken = json_decode(file_get_contents(APP_URL . 'token.php?key=' . $_GET['key']));
define('APP_TOKEN', $oToken->token);
function doPost($sMethod, $aPost = array())... | edbiler/BazaarCorner | tools/apps/test/index.php | PHP | mit | 3,475 |
/*!
* maptalks.snapto v0.1.11
* LICENSE : MIT
* (c) 2016-2018 maptalks.org
*/
/*!
* requires maptalks@^0.33.1
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('maptalks')) :
typeof define === 'function' && define.amd ? define(['exports', '... | liubgithub/maptalks.snapto | dist/maptalks.snapto.js | JavaScript | mit | 96,163 |
#ifndef GPU_DEF
#define GPU_DEF
#define SHORT_NAN 32767
#define SHORT_MAX 32766
#define GL_INTEROP // Caution!! Need to clear ComputeCache if uncommented
struct TsdfParams
{
float resolution[3];
float volume[3];
float mu;
};
#ifdef _GPU_
#define NUM_BANKS 16
#define LOG_NUM_BANKS 4
#define CONFLICT_... | achansavang/MiroirFusion | src/OpenCL/gpu_def.h | C | mit | 2,125 |
SharedForm
==========
_by Alexander Senko_
**SharedForm** — a JavaScript library, enabling an HTML `form` to edit multiple objects & submit to multiple URLs.
Primarily designed for images collections.
Features
--------
* Highlights changed form fields.
* Submits only changed fields to leave others untouched.
* ... | softpro/shared_form | README.md | Markdown | mit | 1,218 |
const webpack = require("webpack");
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const AssetsPlugin = require("assets-webpack-plugin");
module.exports = {
entry: {
main: path.join(__dirname, "src", "index.... | codemeyer/ArgData | Docs/webpack.common.js | JavaScript | mit | 1,390 |
module Feature.DeleteSpec where
import Test.Hspec
import Test.Hspec.Wai
import Text.Heredoc
import SpecHelper
import PostgREST.Types (DbStructure(..))
import qualified Hasql.Connection as H
import Network.HTTP.Types
spec :: DbStructure -> H.Connection -> Spec
spec struct c = beforeAll resetDb
. around (withApp c... | motiz88/postgrest | test/Feature/DeleteSpec.hs | Haskell | mit | 1,312 |
---
layout: page
title: Powell 50th Anniversary
date: 2016-05-24
author: Noah Krueger
tags: weekly links, java
status: published
summary: Morbi efficitur ultricies nisi sed eleifend. Pellentesque.
banner: images/banner/leisure-04.jpg
booking:
startDate: 11/30/2017
endDate: 12/05/2017
ctyhocn: YEGHSHX
groupCode:... | KlishGroup/prose-pogs | pogs/Y/YEGHSHX/P5A/index.md | Markdown | mit | 3,000 |
import unittest
from datetime import datetime
import numpy as np
import pandas as pd
from excel_helper.helper import DataSeriesLoader
class TestDataFrameWithCAGRCalculation(unittest.TestCase):
def test_simple_CAGR(self):
"""
Basic test case, applying CAGR to a Pandas Dataframe.
:return:... | dschien/PyExcelModelingHelper | tests/test_DataSeriesLoader.py | Python | mit | 3,547 |
<html><body>
<h4>Windows 10 x64 (18363.836)</h4><br>
<h2>_HEAP_UNPACKED_ENTRY</h2>
<font face="arial"> +0x000 PreviousBlockPrivateData : Ptr64 Void<br>
+0x008 Size : Uint2B<br>
+0x00a Flags : UChar<br>
+0x00b SmallTagIndex : UChar<br>
+0x008 SubSegmentCode : Uint4B<br>
... | epikcraw/ggool | public/Windows 10 x64 (18363.836)/_HEAP_UNPACKED_ENTRY.html | HTML | mit | 543 |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014-2015 Marius Avram, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtai... | Vertexwahn/appleseed | src/appleseed.studio/mainwindow/minimizebutton.cpp | C++ | mit | 2,861 |
require 'test_helper'
require_relative 'thing'
require_relative 'foo/bar'
module Dibber
class SeederTest < Minitest::Test
def setup
Seeder.seeds_path = File.join(File.dirname(__FILE__), 'seeds')
end
def teardown
Thing.clear_all
Foo::Bar.clear_all
end
def test_process_log
... | reggieb/Dibber | test/dibber/seeder_test.rb | Ruby | mit | 7,839 |
window.onload=function() {
var start = document.getElementById('start');
start.onclick = function () {
var name = document.getElementById('Name').value;
var id = document.getElementById('Id').value;
var tel = document.getElementById("Tel").value;
if (name == "") {
... | StaticWalk/exam | src/main/resources/static/js/login.js | JavaScript | mit | 1,412 |
(function (){
"use strict";
(function() {
var $bordered = $('.bordered');
window.setInterval(function() {
var top = window.pageYOffset || document.documentElement.scrollTop;
if(top > 0) {
$bordered.fadeOut('fast');
} else if(top == 0 && !$bor... | martinmaricak/HalmiCaffe | assets/javascript.js | JavaScript | mit | 5,224 |
<!-- /. NAV SIDE -->
<div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div classe="col-md-12">
<h2>Admin home</h2>
<h5>Welcome Admin </h5>
</div>
... | amalkanth/waiterless_restaurant | application/views/admin/adminhome.php | PHP | mit | 4,067 |
\hypertarget{gft__gpqueue__by__Falcao_8h}{\section{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.h File Reference}
\label{gft__gpqueue__by__Falcao_8h}\index{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.\-h@{/home/pavm/programming/lib/gft/include/gft\-\_\-... | ademirtc/bandeirantes | lib/gft/doc/latex/gft__gpqueue__by__Falcao_8h.tex | TeX | mit | 7,687 |
package com.hzq.sphinxwebview;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Build;
import android.webkit.WebSettings;
/**
* Created by friencis on 2017/4/3 0003.
*/
public class WebViewConfig {
}
| hzqjyyx/SphinxWebView | app/src/main/java/com/hzq/sphinxwebview/WebViewConfig.java | Java | mit | 243 |
describe('$materialPopup service', function() {
beforeEach(module('material.services.popup', 'ngAnimateMock'));
function setup(options) {
var popup;
inject(function($materialPopup, $rootScope) {
$materialPopup(options).then(function(p) {
popup = p;
});
$rootScope.$apply();
});... | stackmates/common.client.build | src/common/style/sass/material/services/popup/popup.spec.js | JavaScript | mit | 1,657 |
/**
* Created by Samuel Schmid on 23.03.14.
*
* Class for Database Handling
*
* Containing
* - App Config
* - Database Information
*
* @type {Database}
*/
module.exports = Database;
Array.prototype.contains = function(obj) {
var i = this.length;
while (i--) {
if (this[i] === obj) {
... | veith/restapiexpress | grunt/database/database.js | JavaScript | mit | 2,478 |
import { getEmailTransport, initializeAdminApp } from './_internal';
import * as functions from 'firebase-functions';
import { District, GroupCreateInput, RepresentativeCreateInput } from '@civ/city-council';
import { createRandomString } from './utils';
const app = initializeAdminApp();
const db = app.database();
co... | civinomics/city-council | cloud/functions/src/create-group.ts | TypeScript | mit | 7,829 |
from django.dispatch import Signal
pre_save = Signal(providing_args=['instance', 'action', ])
post_save = Signal(providing_args=['instance', 'action', ])
pre_delete = Signal(providing_args=['instance', 'action', ])
post_delete = Signal(providing_args=['instance', 'action', ])
| thoas/django-sequere | sequere/contrib/timeline/signals.py | Python | mit | 279 |
package me.coley.bmf.insn.impl;
import me.coley.bmf.insn.Instruction;
import me.coley.bmf.insn.OpType;
public class CALOAD extends Instruction {
public CALOAD() {
super(OpType.ARRAY, Instruction.CALOAD, 1);
}
}
| Col-E/Bytecode-Modification-Framework | src/main/java/me/coley/bmf/insn/impl/CALOAD.java | Java | mit | 229 |
class MeetupEvent < ActiveRecord::Base
self.primary_key = "meetup_event_id"
belongs_to :meetup_group, foreign_key: "meetup_group_id"
class << self
def enabled
where(enable_sync: true)
end
def from_api_response(response)
start_time = LocalTime.convert(response['time'].to_i)
end_t... | swifthand/meetup-calendar-sync | app/models/meetup_event.rb | Ruby | mit | 1,271 |
<?php
namespace Site\Bundle\PlatformBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SitePlatformBundle extends Bundle
{
}
| starsea/cmp | src/Site/Bundle/PlatformBundle/SitePlatformBundle.php | PHP | mit | 139 |
package epsi.md4.com.epsicalendar.activities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import ... | MD4/EPSICalendar | app/src/main/java/epsi/md4/com/epsicalendar/activities/EventListActivity.java | Java | mit | 5,006 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Aug 06 17:37:29 EST 2004 -->
<TITLE>
Overlay
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
func... | hhminh/continents | documents/Overlay.html | HTML | mit | 19,660 |
# {%= name %} {%= badge("fury") %}
> {%= description %}
## Install
{%= include("install") %}
## Usage
```js
var lineNumber = require('{%= name %}');
var fixture = fs.readFileSync('LICENSE-MIT', 'utf8');
var re = /Jon[^,]+/g;
console.log(lineNumber(fixture, re));
//=> results in:
// [
// {
// "line": "Copyrigh... | jonschlinkert/line-number | .verbrc.md | Markdown | mit | 548 |
package com.blamejared.compat.tcomplement.highoven;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.blamejared.ModTweaker;
import com.blamejared.compat.mantle.RecipeMatchIIngredient;
import com.blamejared.compat.tcomplement.highoven.recipes.HeatReci... | jaredlll08/ModTweaker | src/main/java/com/blamejared/compat/tcomplement/highoven/HighOven.java | Java | mit | 11,580 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 Yegor Bugayenko
*
* 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
*... | yegor256/cactoos | src/test/java/org/cactoos/io/SlowInputStream.java | Java | mit | 2,637 |
Test.expect(reverseWords('The quick brown fox jumps over the lazy dog.') === 'ehT kciuq nworb xof spmuj revo eht yzal .god');
Test.expect(reverseWords('apple') === 'elppa');
Test.expect(reverseWords('a b c d') === 'a b c d');
Test.expect(reverseWords('double spaced words') === 'elbuod decaps sdrow'); | bakula/codewars_js | completed Kata/6kyu and below/045_Reverse words/specs.js | JavaScript | mit | 305 |
'use strict';
import { gl } from './Context';
import { mat4 } from 'gl-matrix';
import Camera from './Camera';
class OrthographicCamera extends Camera
{
constructor(
{
path,
uniforms,
background,
translucence,
right,
top,
name = 'orthographic.camera',
... | allotrop3/four | src/OrthographicCamera.js | JavaScript | mit | 1,846 |
---
title: Cibele v. @hentaiphd erzählt die Geschichte von Teens, die sich über das Internet verlieben. http://insertmoin.de/im1485-cibele/ http://twitter.com/insertmoin/status/688937220812746752/photo/1
date: Tue Jan 19 20:39:37 +0000 2016
taxonomy:
category: blog
---
<blockquote class="twitter-tweet" align="cente... | enko/datenknoten.me | user/pages/04.feed/689547781959241728/tweet.md | Markdown | mit | 827 |
// Karma configuration
// Generated on Wed Feb 17 2016 10:45:47 GMT+0100 (CET)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',
// frameworks to use
// available frameworks: https://npmjs.o... | bourdeau/jdhm-bo | karma.conf.js | JavaScript | mit | 2,590 |
#pragma once
#include "unittest.h"
#include <iostream>
#include <vector>
class PairSum : public UnitTest
{
public:
typedef std::vector<int> IntVec;
/*!
* \brief hasPairSum Checks to see if there are any two integers that sum to the given value.
* Assumes input vector is sorted.
* \param vec T... | kylegmaxwell/training | src/pairsum.h | C | mit | 1,304 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... | TanerTombas/stories | config/database.php | PHP | mit | 4,498 |
USE `your_database`;
-- STEP 1 Create table with probably legal entities where inventors sequence is equal than 1
CREATE TABLE entities_recognition_probably_legal AS
SELECT doc_std_name_id,
doc_std_name,
person_id,
person_name,
invt_seq_nr
FROM applt_addr_ifris
WHERE invt_seq_nr = 0
GROUP ... | cortext/patstat | Actors/applicants classification/scripts.sql | SQL | mit | 4,496 |
<img src="DashboardScreenshot.png"/>
| dm-dashboard/dashboard | docs/index.html | HTML | mit | 37 |
<?php
/**
* @package Abricos
* @subpackage Notify
* @copyright 2008-2015 Alexander Kuzmin
* @license http://opensource.org/licenses/mit-license.php MIT License
* @author Alexander Kuzmin <roosit@abricos.org>
*/
require_once 'phpmailer/class.phpmailer.php';
/**
* Class NotifyManager
*
* @property NotifyModule... | abricos/abricos-mod-notify | src/includes/old_manager.php | PHP | mit | 8,474 |
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("04.... | VaskoViktorov/SoftUni-Homework | 06. OOP Basics C# - 27.06.2017/02. Defining Classes - Exercise/04. Opinion Poll/04. Opinion Poll/Properties/AssemblyInfo.cs | C# | mit | 1,403 |
#!/usr/bin/env python
'''
Import this module to have access to a global redis cache named GLOBAL_CACHE.
USAGE:
from caching import GLOBAL_CACHE
GLOBAL_CACHE.store('foo', 'bar')
GLOBAL_CACHE.get('foo')
>> bar
'''
from redis_cache import SimpleCache
try:
GLOBAL_CACHE
except NameError:
GLOBAL_C... | miketwo/pylacuna | pylacuna/caching.py | Python | mit | 434 |
using System;
namespace East.Tool.UseCaseTranslator.WebAPI.Areas.HelpPage
{
/// <summary>
/// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
/// </summary>
public class ImageSample
{
/// <summary>
/// Initia... | east-pmo/UseCaseTranslator | UseCaseTranslator.WebAPI/Areas/HelpPage/SampleGeneration/ImageSample.cs | C# | mit | 1,077 |
'use strict'
// create a net-peer compatible object based on a UDP datagram socket
module.exports = function udpAdapter(udpSocket, udpDestinationHost, udpDestinationPort) {
const _listeners = []
udpSocket.on('message', (msg, rinfo) => {
//console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`)
... | mreinstein/net-peer | examples/udp/udp-adapter.js | JavaScript | mit | 680 |
package ru.otus.java_2017_04.golovnin.hw09;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity(name = "user")
@Table(name = "users")
public class User extends DataSet{
@Column(name = "name")
private String name;
@Column(name = "age", nullable = false... | vladimir-golovnin/otus-java-2017-04-golovnin | hw09/src/main/java/ru/otus/java_2017_04/golovnin/hw09/User.java | Java | mit | 642 |
var Filter = require('broccoli-filter')
module.exports = WrapFilter;
WrapFilter.prototype = Object.create(Filter.prototype);
WrapFilter.prototype.constructor = WrapFilter;
function WrapFilter (inputTree, options) {
if (!(this instanceof WrapFilter)) return new WrapFilter(inputTree, options)
Filter.call(this, input... | H1D/broccoli-wrap | index.js | JavaScript | mit | 757 |
{% extends "layout.html" %}
{% block head %}
{% include "includes/head.html" %}
<script>
$(document).ready(function() {
var source = getParameterByName('source') || 'employer';
$('#source').val(source);
});
function getParameterByName(name, url) {
// ... | tyfairclough/das-aml-beta-ui | app/views/commitOne/contracts/provider-interface/add-an-apprenticeship/training-list.html | HTML | mit | 7,458 |
---
layout: post
title: My First HTML File
image: /images/html.png
excerpt: How to create your first HTML file, including setting up your development environment.
---
I've compiled some things that might help you create your first HTML file.
Creating Your Workbench Folder
---
Developers like having a folder dedicate... | NmVAson/NmVAson.github.io | _posts/2020-06-09-my-first-html.md | Markdown | mit | 4,379 |
package com.purvotara.airbnbmapexample.model;
import android.content.Context;
import com.android.volley.Request;
import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.purvotara.airbnbmapexample.co... | SkyTreasure/Airbnb-Android-Google-Map-View | app/src/main/java/com/purvotara/airbnbmapexample/model/AddressModel.java | Java | mit | 5,013 |
html, body, .flexbox {
background-color: #FFF;
margin: 0;
padding: 0;
height: 100%;
line-height: 1;
font-family: 'Open Sans', 'Verdana', 'sans-serif';
color: white;
}
b {
font-weight: bolder;
font-size: 18px;
}
.main-flexbox {
display: flex;
flex-wrap: wrap;
}
.nested-flexbox... | MarianoGappa/flowbro | webroot/styles.css | CSS | mit | 5,376 |
// Copyright (C) 2001-2003
// William E. Kempf
// Copyright (C) 2007 Anthony Williams
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/threa... | ghisguth/tasks | libs/boost.task/libs/task/test/test_spin_condition.cpp | C++ | mit | 5,365 |
namespace _8.ArraySymmetry
{
using System;
using System.Linq;
public class ArraySymmetry
{
public static void Main()
{
var words = Console.ReadLine().Split(' ').ToArray();
var isSymmetric = true;
for (int i = 0; i < words.Length / 2; i++)
... | toteva94/SoftUni | [01]ProgrammingFundamentals/07.ExercisesArraysSimpleArrayProcessing/08.ArraySymmetry/ArraySymmetry.cs | C# | mit | 717 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Books extends MY_Controller {
public function __construct() {
parent::__construct();
$this->loadModel('Book', 'books_model');
$this->setTitle('Bookshelf');
}
public function index()
{
$this->setOutputData('books', $th... | sixpounder/CI-WORKSHOP | application/controllers/Books.php | PHP | mit | 1,752 |
Template.formeditprofile.events({
'submit #editform': function(event){
event.preventDefault();
var firstNameVar = event.target.firstname.value;
var lastNameVar = event.target.lastname.value;
var classVar = event.target.classvar.value;
Profiles.insert({
uid:Meteor.userId(),
firstname: firstNameVar,
l... | zhjch05/MemoryChess | semantic-ui/client/pages/addprofile.js | JavaScript | mit | 477 |
\hypertarget{namespacecpp_1_1utils}{}\section{cpp.\+utils Namespace Reference}
\label{namespacecpp_1_1utils}\index{cpp.\+utils@{cpp.\+utils}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
def \hyperlink{namespacecpp_1_1utils_a4258aa53673d101d6f57320ec9a3c3a2}{Read\+File} (filename, print\+\_\+error=True)
\e... | bhargavipatel/808X_VO | docs/latex/namespacecpp_1_1utils.tex | TeX | mit | 1,695 |
# https://graphics.stanford.edu/~seander/bithacks.html#NextBitPermutation
def selector(values, setBits):
maxBits = len(values)
def select(v):
out = []
for i in range(maxBits):
if (v & (1 << i)):
out.append(values[i])
return out
v = (2 ** setBits) - 1
... | asgeir/old-school-projects | python/verkefni2/cpattern.py | Python | mit | 1,006 |
// FoalTS
import { ValidateFunction } from 'ajv';
import {
ApiParameter,
ApiResponse,
Context,
Hook,
HookDecorator,
HttpResponseBadRequest,
IApiHeaderParameter,
OpenApi,
ServiceManager
} from '../../core';
import { getAjvInstance } from '../utils';
import { isFunction } from './is-function.util';
/**... | FoalTS/foal | packages/core/src/common/hooks/validate-header.hook.ts | TypeScript | mit | 2,105 |
using System;
using System.Collections.Generic;
using Baseline;
using Marten.Storage;
namespace Marten.Schema.Identity.Sequences
{
public class IdentityKeyGeneration : IIdGeneration
{
private readonly HiloSettings _hiloSettings;
private readonly DocumentMapping _mapping;
public Identi... | jokokko/marten | src/Marten/Schema/Identity/Sequences/IdentityKeyGeneration.cs | C# | mit | 1,691 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Ceros Embed with Google Analytics</title>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date... | ceros/ceros-labs | ga-and-gtm-extension/test/s3/parent-page/ga/index.html | HTML | mit | 1,419 |
var expect = require('expect.js');
var EventEmitter = require('events').EventEmitter;
var fixtures = require('../fixtures');
var Detector = require('../../lib/detector.js');
describe('Detector', function() {
// Used to test emitted events
var found;
var listener = function(magicNumber) {
found.... | dushmis/buddy.js | spec/unit/detectorSpec.js | JavaScript | mit | 7,750 |
require "pubs/clients/db/models/concerns/dynamic_attributes"
require "pubs/clients/db/models/concerns/hooks"
require "pubs/clients/db/models/concerns/json_keys_symbolizer"
require "pubs/clients/db/models/concerns/validations"
require 'pubs/clients/db/models/model'
require 'pubs/clients/db/models/unit'
| lemmycaution/pubs | lib/pubs/clients/db/all.rb | Ruby | mit | 303 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.InteropSe... | jeffkl/msbuild | src/Build.UnitTests/Evaluation/Expander_Tests.cs | C# | mit | 195,337 |
# testStr = "Hello {name}, How long have you bean?. I'm {myName}"
#
# testStr = testStr.format(name="Leo", myName="Serim")
#
# print(testStr)
limit = None
hello = str(limit, "")
print(hello)
# print( "4" in "3.5")
| SELO77/seloPython | 3.X/ex/strFormat.py | Python | mit | 217 |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'App.created_at'
db.add_column('mobile_apps_app', 'created_at', self.gf('django.db.models.f... | katemsu/kate_website | kate3/mobile_apps/migrations/0002_auto__add_field_app_created_at.py | Python | mit | 2,545 |
<?php
/*
* Copyright (c) 2011 Sergei Lissovski, http://sergei.lissovski.org
*
* 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 ... | sergeil/Vobla | tests/bootstrap.php | PHP | mit | 1,654 |
using System;
using System.Collections.Generic;
namespace VanEmdeBoasTree.Tests
{
internal static class YFastPerfectHashTableTests
{
public static void RunAllTests()
{
Insert_Contains_SyntheticTestCase();
}
static void Insert_Contains_SyntheticTestCase()
{
... | RegiSV2/IntroToAlgorithmsSolutions | 20/VanEmdeBoasTree/VanEmdeBoasTree/Tests/YFastPerfectHashTableTests.cs | C# | mit | 2,383 |
.unselectable {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
._jsPlumb_connector:hover {
cursor: pointer;
opacity: 0.7;
}
._jsPlumb_endpoint,
._jsPlumb_dragging {
cursor: move !important;
z-index: 999;
/* bypass overlay z-index*/
}
.source-anchor {
v... | BrunoRB/flow-chart.js | dist/css/flow-chart.min.css | CSS | mit | 13,981 |
/**
* Example implementation of the dialog choice UI pattern.
*/
#include "dialog_choice_window.h"
#include "xadow.h"
static Window *s_diag_window;
static TextLayer *s_label_layer;
static BitmapLayer *s_icon_layer;
static ActionBarLayer *s_action_bar_layer;
static uint8_t resp_buffer[3];
static SmartstrapAttribute ... | Seeed-Studio/Xadow_Strap | src/dialog_choice_window.c | C | mit | 5,380 |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import './PostListView.scss';
import { toastr } from 'react-redux-toastr';
import { bindActionCreators } from 'redux';
import {
fetchPostsFromApi,
selectPostCategory,
clearPostsErrors,
clearPostsMessages
} from '../../../actions/ac... | RyanCCollins/ryancollins.io | app/src/containers/Blog/PostListView/PostListView.js | JavaScript | mit | 4,864 |
package models.factories;
import models.squares.PropertySquare;
import java.util.Set;
/**
* @author Ani Kristo
*/
interface PropertyFactory {
Set<? extends PropertySquare> makeSquares();
}
| CS319-G12/uMonopoly | src/models/factories/PropertyFactory.java | Java | mit | 198 |
---
layout: post
title: "简历"
date: 2017-02-14
excerpt: "我的简历"
tags: [简历, resume]
feature: https://cdn.justice-love.com/image/jpg/bjfj1.jpg
project: true
comments: false
---
## 个人信息
* 徐轶
* 本科/中南林业科技大学
* 15580938143/eddyxu1213@126.com
* 博客地址:[http://justice-love.com/](http://justice-love.com/)
* GitHub:[https://github.c... | Justice-love/Justice-love.github.io | _posts/life/2017-02-14-resume.md | Markdown | mit | 4,184 |
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... | Horwits/Telerik-Academy-2016-2017 | C#/C#-Part-One/Exam-Preparation/Variant 2 2012/Problem 4 – Dancing Bits/Properties/AssemblyInfo.cs | C# | mit | 1,428 |
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
class Timer
{
public:
int start();
int elapsedWallclockTime (double &);
int elapsedUserTime (double &);
... | kchan049/rshell | src/timer.h | C | mit | 6,847 |
version https://git-lfs.github.com/spec/v1
oid sha256:4a4e80129485fe848fa53149568184f09fa2da8648b6476b750ef97344bd4c5b
size 10959
| yogeshsaroya/new-cdnjs | ajax/libs/jsSHA/1.6.0/sha512.js | JavaScript | mit | 130 |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TableTop.Repository.DatabaseModels;
namespace TableTop.Data.Context
{
public class TableTopContext : DbContex... | heilc/TableTop | TableTop.Data/Context/TableTopContext.cs | C# | mit | 810 |
# HipStudio
## About
HipStudio is a small web application to allow [Visual Studio Online](http://visualstudio.com)
to post messages to a [HipChat](http://hipchat.com) room.
VSO [already supports HipChat](http://www.visualstudio.com/en-us/get-started/dn741294), but I
wanted to be able to better customize the messag... | rnelson/hipstudio | README.md | Markdown | mit | 3,665 |
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing.Design;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Collections.Generic;
using SharpGL;
using SharpGL.SceneGraph.Quadrics;
using SharpGL.SceneGra... | DanFTRX/sharpgl | source/SharpGL/Core/SharpGL.SceneGraph/Scene.cs | C# | mit | 15,697 |
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
package tests
import (
"encoding/json"
"math/big"
"github.com/okcoin/go-okcoin/common"
"github.com/okcoin/go-okcoin/common/math"
)
var _ = (*difficultyTestMarshaling)(nil)
func (d DifficultyTest) MarshalJSON() ([]byte, error) {
type DifficultyTest str... | ManyCoin/ManyCoin | tests/gen_difficultytest.go | GO | mit | 2,306 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.