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
(function () { "use strict"; angular.module('projectManagerSPA').controller('userLoginController', ['authenticationService', '$scope', '$state',function (authenticationService, $scope, $state) { $scope.logIn = function () { authenticationService.logIn($scope.username, $scope.password, functi...
ivanthescientist/ProjectManager
src/main/resources/public/js/controller/user.login.controller.js
JavaScript
mit
503
require 'spec_helper' describe ChequeFormatter do describe ".date_to_ddmmyy" do subject { ChequeFormatter.date_to_ddmmyy(date) } context "5-Nov-2011" do let(:date) { "5-Nov-2011" } it { should == '051111' } end context "2011-11-05" do let(:date) { "5-Nov-2011" } it { should ...
pivotalexperimental/cheques
spec/lib/cheque_formatter_spec.rb
Ruby
mit
2,124
#!/bin/bash # Distill standard library documentation from the stdops.c file. cat Interpreter/stdops.c | grep '//' | colrm 1 3 | tail -n +10 > Documentation/Standard\ Library.mkd
wandernauta/Staple
Support/mkstdlibdoc.sh
Shell
mit
180
""" SensitiveFloat objects for expectations involving r_s and c_s. Args: vs: A vector of variational parameters Attributes: Each matrix has one row for each color and a column for star / galaxy. Row 3 is the gamma distribute baseline brightness, and all other rows are lognormal offsets. - E_l_a: A NUM_BANDS x NUM_SO...
jeff-regier/Celeste.jl
src/deterministic_vi/source_brightness.jl
Julia
mit
10,351
/// <reference types="react-scripts" /> declare module "office-ui-fabric-react/lib/Modal" { const Modal: React.StatelessComponent<IModalProps>; }
azu/faao
src/react-app-env.d.ts
TypeScript
mit
150
<!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 (version 1.7.0_45) on Mon Aug 31 23:15:49 CEST 2015 --> <title>IObjectUuidSameCheck (FailFast v.1.3)</title> <meta name="date" content="2015-08-31"> <...
KeldOelykke/FailFast
Java/Web/war/releases/1.3/api/starkcoder/failfast/checks/objects/uuids/IObjectUuidSameCheck.html
HTML
mit
9,976
/* * The MIT License (MIT) * * Copyright (c) 2013 Zoltán Nyikos * * 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...
nyz93/advertapp
src/Reviewer.h
C
mit
1,380
/* This software module was originally developed by Apple Computer, Inc. in the course of development of MPEG-4. This software module is an implementation of a part of one or more MPEG-4 tools as specified by MPEG-4. ISO/IEC gives users of MPEG-4 free license to this software module or modifications thereof for use ...
andresgonzalezfornell/TFM
lib/libisomediafile/src/MovieFragmentAtom.c
C
mit
7,783
#include "forms/transactioncontrol.h" #include "forms/graphicbutton.h" #include "forms/label.h" #include "forms/listbox.h" #include "forms/scrollbar.h" #include "forms/ui.h" #include "framework/data.h" #include "framework/framework.h" #include "framework/logger.h" #include "framework/renderer.h" #include "game/state/ci...
FranciscoDA/OpenApoc
forms/transactioncontrol.cpp
C++
mit
29,041
<?php namespace Upc\Cards\Bundle\CardsBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Upc\Cards\Bundle\CardsBundle\Entity\GroupCategory; use Symfony\Compo...
devupc/cards
src/Upc/Cards/Bundle/CardsBundle/Controller/GroupCategoryCrudController.php
PHP
mit
3,369
var map; var infoWindow; // A variável markersData guarda a informação necessária a cada marcador // Para utilizar este código basta alterar a informação contida nesta variável var markersData = [ { lat: -3.741262, lng: -38.539389, nome: "Campus do Pici - Universidade Federal do Ceará", end...
KatharineAmaral29/ArenaSports
js/mapslackline.js
JavaScript
mit
3,584
<?php require_once(APPPATH . 'views/header.php'); ?> <link rel="stylesheet" href="<?= base_url(); ?>assets/css/fullcalendar.css" /> <link rel="stylesheet" href="<?= base_url(); ?>css/mine.css" /> <style> .form-horizontal .controls { margin-left: 12px; } </style> <div class="page-content"> <div cla...
WereDouglas/epitrack
application/views/management.php
PHP
mit
41,131
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; function _default() { return function ({ addUtilities, variants }) { addUtilities({ '.bg-clip-border': { 'background-clip': 'border-box' }, '.bg-clip-padding': { ...
matryer/bitbar
xbarapp.com/node_modules/tailwindcss/lib/plugins/backgroundClip.js
JavaScript
mit
550
{% extends 'base.html' %} {% load crispy_forms_tags %} {% block title %}New Company Record{%endblock%} {% block container %} <div class="formbox" style="padding-top: 60px; padding-left: 15px;"> <form class="form" action="." method="POST"> {% csrf_token %} {{ form|crispy }} <button class="btn btn-primary">{% i...
mtheobaldo/crm
src/CRM/templates/CRM/company_form.html
HTML
mit
403
var gulp = require('gulp'); var karma = require('karma').server; var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var path = require('path'); var plumber = require('gulp-plumber'); var runSequence = require('run-sequence'); var jshint = require('gulp-jshint'...
nikita-yaroshevich/df-validator
gulpfile.js
JavaScript
mit
2,192
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Hooks | ------------------------------------------------------------------------- | This file lets you define "hooks" to extend CI without hacking the core | files. Pl...
GazmanDevelopment/docman
application/config/hooks.php
PHP
mit
542
# frozen_string_literal: true module ProductMutationHelper def coerce_pricing_structure_input(input) return nil unless input value_field = case input[:pricing_strategy] when 'fixed' :fixed_value when 'scheduled_value' :scheduled_value end PricingStructure.new(pric...
neinteractiveliterature/intercode
app/graphql/product_mutation_helper.rb
Ruby
mit
1,074
<html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>BinarizeFilter Constructor</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSDN....
teichgraf/MuLaPeGASim
web/docs/OCR/OCRPreProcessing.BinarizeFilterConstructor.html
HTML
mit
1,888
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "UIView.h" @class NSString, NSTimer, STRunCaloriesLabel, STRunDistanceLabel, STRunPaceLabel, STRunProgressView, STRunTimeLabel, SWRunWorkoutProxy, UIButton, UIImageView,...
matthewsot/CocoaSharp
Headers/PrivateFrameworks/SportsTrainer/STRunView.h
C
mit
5,667
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <UIKit/UIStatusBarLegacyStyleAttributes.h> // Not exported @interface UIStatusBarAssistantEyesFreeStyleAttributes : UIStatusBarLegacyStyleAttributes { } - (double)glowA...
matthewsot/CocoaSharp
Headers/Frameworks/UIKit/UIStatusBarAssistantEyesFreeStyleAttributes.h
C
mit
423
/* * Copyright (c) 2003-2009 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
accelazh/ThreeBodyProblem
lib/jME2_0_1-Stable/src/com/jme/curve/CurveController.java
Java
mit
9,311
# shellcheck disable=SC2148 # Defines transfer alias and provides easy command line file and folder sharing. # # source: https://gist.github.com/nl5887/a511f172d3fb3cd0e42d # # Authors: # Remco Verhoef <remco@dutchcoders.io> # transfer() { # check if curl is installed if ! curl --version >/dev/null 2>&1; then e...
niklas-heer/dotfiles
zsh/scripts/transfer.zsh
Shell
mit
1,469
--- layout: post title: "building machine learning system in python(0)" excerpt: "First Machine Learning" categories: articles tags: [python, machine learning] comments: true share: true --- ##Machine Learning 机器学习的目标就是通过给机器几个例子,教会机器处理任务。 ###本系列将交给你什么 这个系列是我学习building machine learning system in python的笔记和过程。它将提供一些广泛的学...
ryanyuan42/ryanyuan42.github.io
_posts/2015-12-5-building machine learning system in python.md
Markdown
mit
9,738
using BizHawk.Common; namespace BizHawk.Emulation.Cores.Nintendo.NES { //AKA half of mapper 034 (the other half is AVE_NINA_001 which is entirely different..) public sealed class BxROM : NES.NESBoardBase { //configuration int prg_bank_mask_32k; int chr_bank_mask_8k; //state int prg_bank_32k; int chr_b...
ircluzar/RTC3
Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BxROM.cs
C#
mit
1,817
/** * Created by quanpower on 14-8-20. */ var config = require('./../config'); var redis = require('./redis'); var _ = require('lodash'); function cacheDevice(device){ if(device){ var cloned = _.clone(device); redis.set('DEVICE_' + device.uuid, JSON.stringify(cloned),function(){ //...
SmartLinkCloud/IOT-platform
lib/cacheDevice.js
JavaScript
mit
479
""" This module is to support *bbox_inches* option in savefig command. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six import warnings from matplotlib.transforms import Bbox, TransformedBbox, Affine2D def adjust_bbox(fig, bbox_inches, fixe...
yavalvas/yav_com
build/matplotlib/lib/matplotlib/tight_bbox.py
Python
mit
2,604
// Copyright (c) 2014 Mark Dodwell. // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, di...
mkdynamic/prototype
Source/MKSidebarLabel.h
C
mit
1,168
# Require any additional compass plugins here. require 'sass-globbing' # Set this to the root of your project when deployed: http_path = "/" css_dir = "_includes/css" sass_dir = "_includes/sass" images_dir = "assets/img" javascripts_dir = "assets/js" relative_assets = true # Compilation pour la prod : environment ...
chipisan/blog
config.rb
Ruby
mit
1,100
/** * morningstar-base-charts * * Copyright © 2016 . All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import defaultClasses from "../config/classes.js"; import ChartBase from "./chartBase.js"; import { ChartU...
jmconde/charts
src/js/charts/horizontal.js
JavaScript
mit
3,156
<?php namespace Wowo\NewsletterBundle\Newsletter\Placeholders; use Wowo\NewsletterBundle\Newsletter\Placeholders\Exception\InvalidPlaceholderMappingException; class PlaceholderProcessor implements PlaceholderProcessorInterface { protected $mapping; protected $referenceClass; protected $placeholder_delim...
mortenthorpe/gladturdev
vendor/wowo/wowo-newsletter-bundle/Wowo/NewsletterBundle/Newsletter/Placeholders/PlaceholderProcessor.php
PHP
mit
3,955
# -*- coding: utf-8 -*- r""" Bending of collimating mirror ----------------------------- Uses :mod:`shadow` backend. File: `\\examples\\withShadow\\03\\03_DCM_energy.py` Influence onto energy resolution ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pictures after monochromator, :ref:`type 2 of global normalization<globalNorm>`. ...
kklmn/xrt
examples/withShadow/04_06/04_dE_VCM_bending.py
Python
mit
4,894
// Copyright (c) 2011-2016 The Cryptonote developers // Copyright (c) 2014-2017 XDN-project developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <string.h> #include <tuple> #include <boost/uuid/u...
xdn-project/digitalnote
src/P2p/P2pProtocolTypes.h
C
mit
1,478
Rails.application.routes.draw do # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" # root 'application#hello' root 'application#goodbye' # Example of regular route...
tkakisu/rails_tutorial
chapter1/config/routes.rb
Ruby
mit
1,634
/** * Copyright (c) 2014-2015, CKSource - Frederico Knabben. All rights reserved. * Licensed under the terms of the MIT License (see LICENSE.md). */ ( function( QUnit, bender ) { var total = 0, failed = 0, passed = 0, ignored = 0, errors = 0, result = { success: true, errors: [] }; // prevent Q...
benderjs/benderjs-qunit
lib/adapter.js
JavaScript
mit
2,277
<!doctype html> <html> <head> <script src="../bower_components/webcomponentsjs/webcomponents.js"></script> <link rel="import" href="../dist/metaroom-markup.html"> </head> <body> <meta-verse> <meta-style> #vrcollab-poster { frame-style: solid; frame-thickness: 2; ...
cbas/MetaRoomMarkup
demo/metaroom-markup-standard-spec.html
HTML
mit
8,277
using System.Net; using FluentAssertions; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Serialization.Objects; using Microsoft.Extensions.DependencyInjection; using TestBuildingBlocks; using Xunit; namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Links; public sealed class AtomicAbsolut...
json-api-dotnet/JsonApiDotNetCore
test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Links/AtomicAbsoluteLinksTests.cs
C#
mit
5,903
<p> comp-1030 works! </p>
angular/angular-cli-stress-test
src/app/components/comp-1030/comp-1030.component.html
HTML
mit
28
--- layout: post title: ! 'The Universal Second Language: Why Everyone Should Learn Coding' category: Translation tags: whycoding learn keywords: whycoding learn description: 本文翻译自在线远程教育网站sololearn,阐述了编程思想在这个时代的重要性。我们来分享这么几个理由,让你花费数分钟去思考编程与了解它是如何在工作中甚至是在你的工作之余所产生的积极影响。 --- ## The Universal Second Language: Why Everyo...
cygmris/cygmris.github.io
_posts/translation/2015-08-27-the_universal_second_language_why_everyone_should_learn_coding.md
Markdown
mit
7,764
#include "WebForm.h" WebForm::WebForm(void) :__pWeb(null), __phonegapCommand(null) { geolocation = null; device = null; accel = null; network = null; console = null; compass = null; contacts = null; } WebForm::~WebForm(void) { } bool WebForm::Initialize() { return true; } result WebForm::OnInitializing(voi...
johnwargo/phonegap-essentials-code
chapter04/HelloWorld/src/WebForm.cpp
C++
mit
5,118
# Simple powershell (built-in to Win7/8/10) utility script # to compute sha256 (or md5, sha1 or sha512) of a file # # Usage: # C:\> powershell # PS .\Get-Hash filename.ext [sha|md5|sha256|sha512] # # May require: Control Panel/System/Admin/Windows Power Shell Modules, then: Set-Executionpolicy RemoteSigned # # Based o...
Ianonn21/vm-utils
scripts/Get-Hash.ps1
PowerShell
mit
872
<!DOCTYPE html> <html lang='en' ng-app='app'> <head> <meta charset='utf-8'> <meta content='IE=edge' http-equiv='X-UA-Compatible'> <meta content='width=device-width, initial-scale=1.0' name='viewport'> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" media="all" rel="stylesh...
chengz/schema-form-uiselect
example.html
HTML
mit
2,793
<div class="container"> <form [formGroup]="form" (ngSubmit)="sendEmail()"> <div class="row"> <div class="column large-2 small-2"> <label for="subject" class="right">Получатели: <small *ngIf="selectedUsers?.length == 0"><i>не выбраны</i></small> </label> </div> <div c...
kirikzyusko1996/WarehouseAngular
src/app/components/email/email.component.html
HTML
mit
6,373
vectorectus ===========
wtdilab/vectorectus
README.md
Markdown
mit
23
import { flatArgs } from './Query'; import type { Entity } from '../binding'; import type { Filter } from './Filter'; import { JsonMap } from '../util'; import type { GeoPoint } from '../GeoPoint'; /** * The Condition interface defines all existing query filters */ export interface Condition<T extends Entity> { /...
Baqend/js-sdk
lib/query/Condition.ts
TypeScript
mit
13,300
package googlechat import "time" // ChatMessage is message type from Pub/Sub events type ChatMessage struct { Type string `json:"type"` EventTime time.Time `json:"eventTime"` Token string `json:"token"` Message struct { Name string `json:"name"` Sender struct { Name string `json:"...
go-chat-bot/bot
google-chat/chat_msg.go
GO
mit
1,746
--- layout: post title: Serialization, class hierarchy and preserving sessions date: '2011-10-26T08:39:00.000-04:00' author: Bill Schneider tags: modified_time: '2011-10-26T08:39:37.739-04:00' blogger_id: tag:blogger.com,1999:blog-9159309.post-2352121751565864812 blogger_orig_url: http://wrschneider.blogspot.com/2011/...
wrschneider/wrschneider.github.io
_posts/2011-10-26-serialization-and-class-hierarchy.html
HTML
mit
1,041
/** * This is a "mini-app" that encapsulates router definitions. See more * at: http://expressjs.com/guide/routing.html (search for "express.Router") * */ var router = require('express').Router({ mergeParams: true }); module.exports = router; // Don't just use, but also export in case another module needs to use thes...
KalenAnson/nodebootstrap
lib/hello/hello.js
JavaScript
mit
903
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
kfrost32/AdventureAnswers
config/environments/development.rb
Ruby
mit
1,673
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager; using Az...
AsrOneSdk/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressContainer.cs
C#
mit
21,480
# Contributing to Tesspathy We want to make contributing to this project as easy and transparent as possible. Hopefully this document makes the process for contributing clear and answers any questions you may have. If not, feel free to open an issue. ## Pull Requests We will be monitoring for pull requests. Before s...
gree/tesspathy
CONTRIBUTING.md
Markdown
mit
1,290
import WebhookNotification, { LinkClick, LinkClickCount, MessageTrackingData, WebhookDelta, WebhookObjectAttributes, WebhookObjectData, } from '../src/models/webhook-notification'; import { WebhookTriggers } from '../src/models/webhook'; describe('Webhook Notification', () => { test('Should deserialize f...
nylas/nylas-nodejs
__tests__/webhook-notification-spec.js
JavaScript
mit
4,538
using HoloToolkit.Unity; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.Networking; public class AuthorizationManager : Singleton<AuthorizationManager> { [SerializeField] private string clientId = "...
rwth-acis/GaMR
Frontend/GaMR/Assets/Scripts/Login/AuthorizationManager.cs
C#
mit
6,336
<!DOCTYPE html> <html ng-app="cookieDemo"> <head> <meta charset="utf-8"> <title>ch6</title> <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css" /> <script type="text/javascript" src="../bower_components/angular/angular.min.js"></script> <script type="text/javascr...
sehoone/seed
app/beeer/cookieDemo.html
HTML
mit
796
/* * Copyright (C) 2011 ZXing authors * * 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/LICENSE-2.0 * * Unless required by applicable law or agr...
longluo/AndroidDemo
app/src/main/java/com/longluo/demo/qrcode/zxing/client/android/encode/Formatter.java
Java
mit
1,015
require 'test_helper' class NoSchemaControllerTest < ActionController::TestCase def test_no_schema_always_validate # We send invalid value but it validates anyway because their is no schema. get :basic, format: 'json', param1: 51 assert_response :success assert !response.has_schema? end end
nicolasdespres/respect-rails
test/functional/no_schema_controller_test.rb
Ruby
mit
315
import deepFreeze from 'deep-freeze'; import { arrayToMap, mapKeysToArray } from './mapUtils'; describe('arrayToMap', () => { it('should create map from 2D array', () => { const a = [ ['key1', 'value1'], ['key2', 'value2'] ]; deepFreeze(a); const result = arrayToMap(a); expect(resu...
TrueWill/embracer
src/utils/mapUtils.test.js
JavaScript
mit
1,107
namespace SimShift.Data { public enum Ets2DataAuxilliary : int { CruiseControl = 0, Wipers = 1, ParkBrake = 2, MotorBrake = 3, ElectricEnabled = 4, EngineEnabled = 5, BlinkerLeftActive = 6, BlinkerRightActive = 7, BlinkerLeftOn = 8,...
zappybiby/SimShift
SimShift/SimShift/Data/Ets2DataAuxilliary.cs
C#
mit
797
###2015-12-20 ####objective-c * <img src='https://avatars3.githubusercontent.com/u/433320?v=3&s=40' height='20' width='20'>[ yulingtianxia / TBActionSheet ](https://github.com/yulingtianxia/TBActionSheet): A Custom Action Sheet * <img src='https://avatars3.githubusercontent.com/u/7830226?...
tzpBingo/github-trending
2015/2015-12-20.md
Markdown
mit
24,808
#!/bin/sh # CYBERWATCH SAS - 2016 # # Security fix for RHSA-2015:1686 # # Security announcement date: 2015-08-25 06:10:14 UTC # Script generation date: 2016-05-12 18:13:16 UTC # # Operating System: Red Hat 7 # Architecture: x86_64 # # Vulnerable packages fix on version: # - python-django.noarch:1.6.11-2.el7ost # ...
Cyberwatch/cbw-security-fixes
Red_Hat_7/x86_64/2015/RHSA-2015:1686.sh
Shell
mit
940
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Akimages</title> </head> <body bgcolor="#CCCCCC"> <p></p> <p>Original</p> <img src="../../images/lenna256.jpg"/> <div id = "porID" style="relative; top:100px; left:100px;"> <canvas id="canvas...
alefortvi/akimagejs
Demos/Modules/AkPaddingZero.html
HTML
mit
879
<h2>This is my home page</h2> <p>some text here</p>
OrifInformatique/ci_tuto
application/views/pages/home.php
PHP
mit
51
/** * */ package com.kant.datastructure.queues; import com.kant.sortingnsearching.MyUtil; /** * @author shaskant * */ public class GenerateBinaryNumbers1toN { /** * * @param n * @return * @throws OverFlowException * @throws UnderFlowException */ public String[] solve(int n) throws OverFlowExcept...
thekant/myCodeRepo
src/com/kant/datastructure/queues/GenerateBinaryNumbers1toN.java
Java
mit
1,022
// Binary-search solution for balance. // O(n * log (max coordinate / epsilon)) // David Garcia Soriano. #include <algorithm> #include <cstdio> #include <cmath> using namespace std; const int maxn = 50000; const double eps = 1e-11, infinity = 1e300; double px[maxn], py[maxn]; int n; bool possible(double d, double& p...
Emunt/contest_problems
Java/PC2/Solutions/TrickTreat/balance.cpp
C++
mit
1,320
--- layout: post title: "Docker安装Mysql管理工具Phpmyadmin" tagline: "" description: "MySQL 和 MariaDB 的Web管理工具, 浏览器可以代替客户端了, 基本操作都够用了" date: '2017-12-27 13:09:08 +0800' category: docker tags: docker phpmyadmin mysql linux --- > {{ page.description }} # 拉取镜像 ```bash # 搜索镜像 $ docker search phpmyadmin NAME ...
xu3352/xu3352.github.io
_posts/2017-12-27-install-phpmyadmin-with-docker.md
Markdown
mit
2,010
require 'log4r' module VagrantPlugins module G5K module Network class Nat def initialize(env, driver, oar_driver) @logger = Log4r::Logger.new("vagrant::network::nat") # command driver is unused @env = env @driver = driver @oar_driver = oar_driver ...
msimonin/vagrant-g5k
lib/vagrant-g5k/network/nat.rb
Ruby
mit
1,523
<?php namespace Gitlab\Clients; class DeployKeyClient extends AbstractClient { /** * @param int $projectId * @return \Psr\Http\Message\ResponseInterface */ public function listDeployKeys($projectId) { return $this->getRequest(sprintf('projects/%u/keys', $projectId)); } ...
AlexKovalevych/gitlab-api
src/Clients/DeployKeyClient.php
PHP
mit
1,173
{% extends "layouts/_block_content.html" %} {% set page_title = "Account email change link expired " %} {% block main %} <h1 class="u-fs-xl">Your verification link has expired</h1> <div> <p> You will need to sign back into your account and <a href="{{ url_for('account_bp.resend_account_email_change_expi...
ONSdigital/ras-frontstage
frontstage/templates/account/account-email-change-confirm-link-expired.html
HTML
mit
565
from django.db import models import warnings from django.utils import timezone import requests from image_cropping import ImageRatioField class CompMember(models.Model): """A member of compsoc""" class Meta: verbose_name = 'CompSoc Member' verbose_name_plural = 'CompSoc Members' index = ...
compsoc-ssc/compsocssc
general/models.py
Python
mit
2,517
import complexism as cx import complexism.agentbased.statespace as ss import epidag as dag dbp = cx.read_dbp_script(cx.load_txt('../scripts/SIR_BN.txt')) pc = dag.quick_build_parameter_core(cx.load_txt('../scripts/pSIR.txt')) dc = dbp.generate_model('M1', **pc.get_samplers()) ag = ss.StSpAgent('Helen', dc['Sus'], pc...
TimeWz667/Kamanian
example/OOP/O2.4 SS, Single agent model.py
Python
mit
446
from __future__ import division, print_function from abc import ABCMeta, abstractmethod import matplotlib as mpl mpl.use('TkAgg') from matplotlib.ticker import MaxNLocator, Formatter, Locator from matplotlib.widgets import Slider, Button import matplotlib.patches as patches import matplotlib.pyplot as plt from matplotl...
vaquerizaslab/tadtool
tadtool/plot.py
Python
mit
28,848
#define BOOST_TEST_NO_LIB #include <boost/test/auto_unit_test.hpp> #include "dormouse-engine/essentials/Formatter.hpp" using namespace dormouse_engine::essentials; namespace { BOOST_AUTO_TEST_SUITE(FormatterTestSuite); BOOST_AUTO_TEST_CASE(FormatsEmptyString) { std::string s; Formatter f(Formatter::FormatterChar...
mikosz/dormouse-engine
src/foundation/essentials/src/test/c++/dormouse-engine/essentials/Formatter.cpp
C++
mit
3,664
<?php /** * Namesilo DNS Management * * @copyright Copyright (c) 2013, Phillips Data, Inc. * @license http://opensource.org/licenses/mit-license.php MIT License * @package namesilo.commands */ class NamesiloDomainsDns { /** * @var NamesiloApi */ private $api; /** * Sets the API to use for communicati...
mrrsm/Blesta-Namesilo
apis/commands/domains_dns.php
PHP
mit
2,513
namespace Pioneer.Blog.Models { public class Contact { public int ContactId { get; set; } public string Email { get; set; } } }
PioneerCode/pioneer-blog
src/Pioneer.Blog/Models/Contact.cs
C#
mit
159
package com.baomidou.hibernateplus.spring.vo; import java.io.Serializable; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import com.baomidou.hibernateplus.entity.Convert; /** * <p> * Vdemo * </p> * * @author Caratacus * @date 2016-12-2 */ publi...
baomidou/hibernate-plus
hibernate-plus/src/test/java/com/baomidou/hibernateplus/spring/vo/Vdemo.java
Java
mit
1,066
import cProfile from pathlib import Path def main(args, results_dir: Path, scenario_dir: Path): try: scenario_dir.mkdir(parents=True) except FileExistsError: pass cProfile.runctx( 'from dmprsim.scenarios.python_profile import main;' 'main(args, results_dir, scenario_dir)', ...
reisub-de/dmpr-simulator
dmprsim/analyze/profile_core.py
Python
mit
432
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace Trafikverket.NET { /// <summary> /// Timetable information, represents a single train at a location /// </summary> public class TrainAnnouncement { /// <summary> /// Get ObjectType...
mrjfalk/Trafikverket.NET
src/Trafikverket.NET/Responses/DataModels/TrainAnnouncement.cs
C#
mit
5,935
<!DOCTYPE html> <html lang="ru" > <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="/static/img/favicon.ico" /> <title>Redmine 2.x...
cyberflow/cyberflow.github.com
2012/12/redmine-2-admin-password-reset.html
HTML
mit
8,748
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Pasteurizer : Clickable { [SerializeField] private Transform positionMark; private Vector3 initial; [SerializeField] private GameObject milkObject; public override void OnStart() { base.OnSt...
TeamTorchBear/Guzzlesaurus
Assets/Scripts/Barn/Pasteurizer.cs
C#
mit
872
<?php namespace Terion\PackageInstaller; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Application; use Symfony\Component\Finder\Finder; /** * Class ConfigUpdater * * @package Terion\PackageInstaller * @author Volodymyr Kornilov <mail@terion.name> * @license MIT http://opensource.org/licens...
terion-name/package-installer
src/Terion/PackageInstaller/ConfigUpdater.php
PHP
mit
10,543
require('./node') require('./console')
Jam3/hihat
lib/prelude/node-console.js
JavaScript
mit
39
/* * Author: Brendan Le Foll <brendan.le.foll@intel.com> * Copyright (c) 2014 Intel Corporation. * * 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...
rwaldron/mraa
examples/javascript/example.js
JavaScript
mit
1,305
<?php $view->extend('EmVistaBundle::base.html.php'); ?> <?php $view['slots']->start('body') ?> <div class="container"> <form method="post" action="<?php echo $view['router']->generate('submissao_iniciar') ?>"> <div class="row"> <div class="col-sm-12"> <h3>Termos de uso</h3> ...
brunonm/emvista
src/EmVista/EmVistaBundle/Resources/views/Submissao/termosUso.html.php
PHP
mit
920
<# .SYNOPSIS Gets reader mode. .DESCRIPTION Gets the reader mode for all readers or the reader mode for a single reader if a panel id and reader id is specified. If the result returns null, try the parameter "-Verbose" to get more details. .EXAMPLE Get-ReaderMode .LINK https://gi...
erwindevreugd/PSDataConduIT
PSDataConduIT/Public/Get-ReaderMode.ps1
PowerShell
mit
2,699
package main import ( "flag" "fmt" "github.com/ammario/fastpass" ) func cmdGet(fp *fastpass.FastPass) { search := flag.Arg(0) if len(flag.Args()) != 1 { usage() } results := fp.Entries.SortByName() if search != "" { results = fp.Entries.SortByBestMatch(search) } if len(results) == 0 { fail("no r...
ammario/fastpass
cmd/fp/cmd_get.go
GO
mit
599
from django.http import HttpResponse from django.core.servers.basehttp import FileWrapper from django.contrib.auth.models import User from django.shortcuts import render_to_response, redirect, get_object_or_404 from requests import get from urllib import urlretrieve from common.models import Repository from common.ut...
vault/bugit
viewer/views.py
Python
mit
3,804
import {Component, OnInit} from '@angular/core'; @Component({ selector: 'sqap-about', templateUrl: './about.component.html', styleUrls: ['./about.component.scss'] }) export class AboutComponent implements OnInit { constructor() { } ngOnInit() { console.log('hello `About` component'); } }
MarcinMilewski/sqap
sqap-ui/src/main/frontend/app/about/about.component.ts
TypeScript
mit
311
<?php /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) | +...
le51/foundation
app/library/Phalcon/Error/Error.php
PHP
mit
2,269
-- PCT19H. NONRELATIVES BY HOUSEHOLD TYPE (HISPANIC OR LATINO) -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_pct19h ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHAR(3), cbsa VARCHAR(5...
ireapps/census
tools/sql/ire_export/ire_PCT19H.sql
SQL
mit
1,073
import classnames from 'classnames'; import cloneDeep from 'lodash/cloneDeep'; import React from 'react'; import { HTMLFieldProps, connectField, filterDOMProps, joinName, useField, } from 'uniforms'; export type ListAddFieldProps = HTMLFieldProps< unknown, HTMLSpanElement, { initialCount?: number } >; ...
vazco/uniforms
packages/uniforms-semantic/src/ListAddField.tsx
TypeScript
mit
1,438
<link rel="import" href="../color.html"> <dom-module id="material-required-field"> <template> <style> [part="label"] { display: block; position: absolute; top: 8px; font-size: 1em; line-height: 1; height: 20px; margin-bottom: -4px; white-space...
StarcounterSamples/People
src/People/wwwroot/sys/vaadin-material-styles/mixins/required-field.html
HTML
mit
1,228
--- layout: article title: “Nancy Grows Up,” the Media Age, and the Historian’s Craft authors: - schmidt-michael excerpt: > Historians have mostly relied on the printed page to communicate their work. But what about sound? Michael Schmidt looks to the alternate aural history of the twentieth century and unearths be...
theappendix/theappendix-jekyll-source
_posts/issue-1-3/2013-09-03-schmidt-nancy.html
HTML
mit
22,889
import * as Lint from 'tslint'; import * as ts from 'typescript'; const RULE_FAILURE = `Undecorated class defines fields with Angular decorators. Undecorated ` + `classes with Angular fields cannot be extended in Ivy since no definition is generated. ` + `Add a "@Directive" decorator to fix this.`; /** * Rule th...
trimox/angular-mdc-web
tools/tslint-rules/noUndecoratedClassWithNgFieldsRule.ts
TypeScript
mit
2,257
/*! fingoCarousel.js © heoyunjee, 2016 */ function(global, $){ 'use strict'; /** * width: carousel width * height: carousel height * margin: tabpanel margin * count: how many tabpanels will move when you click button * col: how many columns in carousel mask * row: how many rows in carousel mask ...
ooyunjee/fingoCarousel
fingo.carousel.js
JavaScript
mit
13,831
/* * ============================================================================= * * Filename: cqi_pool.c * * Description: connection queue item pool. * * Created: 10/18/2012 07:56:53 PM * * Author: Fu Haiping (forhappy), haipingf@gmail.com * Company: ICT ( Institute Of C...
forhappy/LLDB
src/server/cqi_pool.c
C
mit
4,584
<?php use \SeedDataInterface as SeedDataInterface; abstract class BaseSeedData implements SeedDataInterface{ public function markMigration(){ $data = []; $data['class_name'] = get_called_class(); $seedMigration = SeedMigrationModel::createObject($data,SeedMigrationModel::$attributes); ...
poupouxios/custom-light-mvc
db/seed-data/BaseSeedData.php
PHP
mit
403
class upnp_soaprequest { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() GetLifet...
mrpapercut/wscript
testfiles/COMobjects/JSclasses/UPnP.SOAPRequest.js
JavaScript
mit
569
module.exports = { schedule_inputError: "Not all required inputs are present in the request", reminder_newscheduleSuccess: "A new mail has been successfully saved and scheduled", schedule_ShdlError: "The scheduleAt should be a timestamp (like : 1411820580000) and should be in the future", gbl_oops: "Oop...
karankohli13/sendgrid-scheduler
messages/messages.js
JavaScript
mit
375
package xsmeral.semnet.sink; import java.util.Properties; import org.openrdf.repository.Repository; import org.openrdf.repository.RepositoryException; import org.openrdf.repository.sail.SailRepository; import org.openrdf.sail.rdbms.RdbmsStore; /** * Factory of {@link RdbmsStore} repositories. * <br /> * Takes para...
rsmeral/semnet
SemNet/src/xsmeral/semnet/sink/RdbmsStoreFactory.java
Java
mit
1,465
#pragma once #include "base/Ref.h" #include "math/vec3.h" #include "math/mat4.h" #include "math/quat.h" #include "base/component/BaseComponent.h" #include "base/Vector.h" class Transform : public BaseComponent { public: Transform(GameObject* owner = nullptr); virtual ~Transform(); public: virtual vo...
lyzardiar/BWEngine
frameworks/base/component/Transform.h
C
mit
1,331
package com.test.SERVICE; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.test.DAO.IMercaderiaDAO; import com.test.BEAN.Mercaderia; @Service public class MercaderiaService implements IMercaderiaService...
renzopalmieri/demomercaderia
spring-boot-2/src/main/java/com/test/SERVICE/MercaderiaService.java
Java
mit
1,116