repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
commodity-trading-system/broker-gateway
queier/router.go
6277
package queier import ( "github.com/julienschmidt/httprouter" "net/http" "encoding/json" "fmt" "strconv" "broker-gateway/entities" "github.com/satori/go.uuid" ) type Router interface { Start(port int) } type router struct { q Querier http *httprouter.Router } func NewRouter(q Querier) Router { r := http...
mit
dataclay/event-scripts
Windows/post-job.bat
1388
:: Sample batch script for Post-Job Bot Event :: If you enable 'For all commands, use job details as arguments' :: some details about the just-finished job will be appended to the :: command as arguments. :: :: Argument order is as follows for render operations after each job completes :: %1 => The row in...
mit
magicphp/backend
modules/backend/core/maprivileges.class.php
3522
<?php /** * Controlador de acesso do backend * * @package MagicPHP Backend * @author André Ferreira <andrehrf@gmail.com> */ class maPrivileges{ /** * Função para verificar autorização de acesso * * @static * @access public ...
mit
peterbraden/node-opencv
examples/face-detection-rectangle.js
664
var cv = require('../lib/opencv'); var COLOR = [0, 255, 0]; // default red var thickness = 2; // default 1 cv.readImage('./files/mona.png', function(err, im) { if (err) throw err; if (im.width() < 1 || im.height() < 1) throw new Error('Image has no size'); im.detectObject('../data/haarcascade_frontalface_alt2....
mit
Eloqua/sproutcore
frameworks/foundation/controllers/tree.js
4038
// ======================================================================== // SproutCore -- JavaScript Application Framework // Copyright ©2006-2011, Strobe Inc. and contributors. // Portions copyright ©2008 Apple Inc. All rights reserved. // ======================================================================== s...
mit
Catografix/docs
articles/native-platforms/ionic/02-custom-login.md
2357
--- title: Custom Login description: This tutorial will show you how to use the Auth0 Ionic SDK to add authentication and authorization to your mobile app. --- <%= include('../../_includes/_package', { githubUrl: 'https://github.com/auth0-samples/auth0-ionic-samples', pkgOrg: 'auth0-samples', pkgRepo: 'auth0-ion...
mit
OpenDataSTL/placestl.com
README.md
47
# hack-homelessness Hack Homelessness Weekend!
mit
flysnoopy1984/DDZ_Live
ReferenceCode/Pfz.AnimationManagement.2013_08_25/Pfz.AnimationManagement/WpfSample/MainWindow.xaml.cs
26050
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using Pfz.AnimationManagement; using Pfz.AnimationManagement.Abstract; ...
mit
zeljkot/fables-kotlin
jee/java/src/main/java/fables/kotlin/jee/rest/KittenRestService.java
1047
package fables.kotlin.jee.rest; import fables.kotlin.jee.business.KittenBusinessService; import fables.kotlin.jee.business.KittenEntity; import javax.inject.Inject; import javax.ws.rs.*; /** * JSON REST CRud service. * JEE will first create one noarg instance, and then injected instances. * * @author Zeljko Trog...
mit
TeenahApp/web.api
app/config/app.php
7278
<?php return array( /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every ...
mit
younginnovations/resourcecontracts-rc-subsite
resources/assets/scripts/contract/components/pdf/viewer.js
2838
import React, {Component} from 'react'; import PdfJS from './pdfJS'; import Contract from "../../contract"; import Event from '../../event'; import AnnotationLoader from '../../annotator/loader'; class Viewer extends Component { constructor(props) { super(props); this.state = ({ page_n...
mit
AnthonyMl/sg-rs
src/render/render_context.rs
2238
use std::collections::{HashMap}; use std::path::{Path}; use std::sync::{Arc}; use crossbeam::sync::{MsQueue}; use glium::backend::{Facade}; use debug::{gnomon, indicator}; use inverse_kinematics::{Chain}; use model::{Model}; use unlit_model::{UnlitModel}; use render::render_frame::{RenderFrame}; pub const DEPTH_DIM...
mit
agnoster/approx
index.js
474
var ratio = require('ratio') function error(actual, expected) { return Math.abs(actual - expected) / expected } function approx(target, max) { max = (max || 10) // find a good approximation var best = 1, j, e, result for (var i = 1; i < max; i++) { j = Math.round(i * target) e ...
mit
cbrghostrider/Hacking
cpp-katas/Poker-Hand/poker-hand.h
3193
// ------------------------------------------------------------------------------------- // Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved. // For email, run on linux (perl v5.8.5): // perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0...
mit
Ilthur/boletinweb
src/main/webapp/js/usuariocursoxusuario/plist.js
16663
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
mit
yanhaijing/githubFansTool
src/css/index.css
1340
.yan-github { position: fixed; bottom:0; right:0; min-width:350px; outline:1px solid rgba(0, 0, 0, 0.3); min-height:200px; background: #FFFFFF; border-radius:3px; box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); z-index: 10000 } .yan-github ul{ padding:0 } .yan-github li { list-...
mit
mosen/buildy
lib/buildy/tasks/write.js
4521
/** * Write the input to the paramsified file * * --- * INPUTS: * * - FILES * Write the list of files to the paramsified file (line feed after each filename). * * - STRINGS * Write the strings (concatenated) to the paramsified file. * * - STRING * Write the string to the paramsified file. * * - UN...
mit
dblock/grape
lib/grape/api.rb
7030
# frozen_string_literal: true require 'grape/router' require 'grape/api/instance' module Grape # The API class is the primary entry point for creating Grape APIs. Users # should subclass this class in order to build an API. class API # Class methods that we want to call on the API rather than on the API obj...
mit
AlexeyPopovUA/JavaScript-design-patterns
js/samples/object-constants/ObjectConstants.js
2762
(function () { "use strict"; /** * This module have an ability to contain constants. * No one can reinitialize any of already initialized constants */ var module = (function () { var constants = {}, hasOwnProperty = Object.prototype.hasOwnProperty, prefix = (M...
mit
smakagon/rubocop
lib/rubocop/formatter/clang_style_formatter.rb
1635
# frozen_string_literal: true module RuboCop module Formatter # This formatter formats report data in clang style. # The precise location of the problem is shown together with the # relevant source code. class ClangStyleFormatter < SimpleTextFormatter ELLIPSES = '...' def report_file(fil...
mit
codemarc/ElectricDiscoTech
dev/docs/osxivp.html
10042
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="An approach to developing modern web applications"> <meta name="author" content="Marc J. Greenberg"> <title>ElectricDiscoTech</title>...
mit
SunnyLy/LocalImageChoose
multi-image-selector/src/main/java/me/nereo/multi_image_selector/ClipPhotoActivity.java
11258
package me.nereo.multi_image_selector; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.graphics.RectF; import android.net.Uri; import android.os.Bundle; impo...
mit
jaimie-van-santen/ns
README.md
777
# NS Provides a Ruby wrapper for the Dutch NS API. ## Installation Add this line to your application's Gemfile: gem 'ns' And then execute: $ bundle Or install it yourself as: $ gem install ns ## Usage ns_client = Ns::Client.new(api_key, api_password) available_stations = ns_client.get_stat...
mit
jwatte/onyxnet
test/client/client.cpp
756
#include <onyxudp/udpclient.h> #include <stdio.h> #include <string.h> #include <assert.h> /* This test just makes sure the client library compiles and doens't crash on start. */ void on_error(udp_client_params_t *client, UDPERR code, char const *name) { fprintf(stderr, "on_error: code %d: %s\n", code, name); ...
mit
heynemann/tornado-angular
tests/sandbox/app/views/test-route.html
36
<p>This is the test-route view.</p>
mit
andreasfink/alsa-switch
README.md
1452
# alsa-switch Switching of Alsa audio devices the purpose of alsa-switch is to control the flow of multiple audio-streams going through a system while supporting priority streams You invoke audio-switch like this: auido-switch <input-device> <output-device> <control-file> for example audio-switch microphone speake...
mit
sheng-xiaoya/YakerWeather
app/src/test/java/wanghaisheng/com/yakerweather/ExampleUnitTest.java
322
package wanghaisheng.com.yakerweather; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); }...
mit
jjuiddong/Common
CamCommon/detectrect.h
529
// // 2016-01-21, jjuiddong // // »ç°¢ÇüÀ» ã´Â´Ù. // #pragma once namespace cvproc { class cDetectRect { public: cDetectRect(); virtual ~cDetectRect(); bool Init(); bool Detect(const cv::Mat &src); void UpdateParam(const cRecognitionEdgeConfig &recogConfig); public: bool m_show; cRectContour m_...
mit
chrisVdd/Time2web
vendor/klarna/checkout/docs/examples/push.php
1718
<?php /** * Copyright 2012 Klarna AB * * 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 agree...
mit
coolkev/react-power-table
examples/src/filters.tsx
4479
import * as React from 'react'; import { AppliedFilter, DataTypes, GridFilters, numberWithCommas, ReactPowerTable, withInternalPaging, withInternalSorting } from '../../src/'; import { defaultColumns, partyList, sampledata } from './shared'; // //if coming in from DTO // const availDTO = [ // { fieldName: 'number...
mit
MiftahulxHuda/rekon
application/views/page/new_progresunit.php
5595
<section id="content"> <!--start container--> <div id="breadcrumbs-wrapper" class="" style="width:100%;"> <div class="header-search-wrapper grey hide-on-large-only"> <i class="mdi-action-search active"></i> <input...
mit
quatanium/foscam-android-sdk
README.md
215
foscam-android-sdk ================== Foscam Android SDK for H.264 IP Cameras (FI9821W) 05/12/2015: THIS PROJECT IS DEPRECATED. Please refer to http://foscam.us/forum/technical-support-f3.html for future updates.
mit
Azure/azure-sdk-for-go
services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go
9593
package network // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated...
mit
morkai/walkner-iovis
frontend/main.js
16664
var address = ''; var config = {}; var requestGroupId = 0; var readRequestsTodo = 0; var readRequestsDone = 0; var scanRequestsTodo = [0, 0, 0]; var scanRequestsDone = [0, 0, 0]; var scanResults = []; var requestSentCounter = 0; var requestSuccessCounter = 0; var requestFailureCounter = 0; var requestInProgress = false...
mit
WhySoGeeky/DroidPot
venv/lib/python2.7/site-packages/django_bootstrap_breadcrumbs/templates/django_bootstrap_breadcrumbs/bootstrap2.html
431
<ul class="breadcrumb"> {% for url, label in breadcrumbs %} <li> {% ifnotequal forloop.counter breadcrumbs_total %} <a href="{{ url }}">{{ label|safe }}</a> {% else %} {{ label|safe }} {% endifnotequal %} {% if not forloop.last ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/metacoq-erasure/1.0~alpha+8.9.html
15736
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-erasure: 3 m 5 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
mit
dirk-dagger-667/telerik-c--OOP-lectures
DefineClassPartTwo1/Matrix/Matrix.cs
4419
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Matrix { public class Matrix<T> where T : struct { private T[,] matrix; public Matrix(int x, int y) { matrix = new T[x, y]; } public int LengthX ...
mit
sharwell/roslyn
src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs
730075
// 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. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System...
mit
pixel-metal/flyby.js
dist/flyby.js
53276
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
mit
fathiraz/lebah-inventory
application/controllers/Kategori.php
8935
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Kategori extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Kategori_model'); } public function index($page = 0){ if(!$this->session->userdata('sesilogin')) { redire...
mit
IQSS/miniverse
dv_apps/metrics/stats_views_dataverses.py
6085
from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired from .stats_util_dataverses import StatsMakerDataverses class DataverseCountByMonthView(StatsViewSwaggerKeyRequired): """API View - Dataverse counts by Month.""" # Define the swagger attributes # Note: api_path must match the path...
mit
kolinkrewinkel/Multiplex
Multiplex/IDEHeaders/IDEHeaders/IDEKit/IDENavigableItemSymbolsDomainProvider.h
350
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "CDStructures.h" #import <IDEKit/IDENavigableItemDomainProvider.h> @interface IDENavigableItemSymbolsDomainProvider : IDENavigableItemDomainProvider { } + (id)domainObject...
mit
IngSW-unipv/GoldRush
GoldRush/src/goldrush/BoniMichele.java
932
/* * Code used in the "Software Engineering" course. * * Copyright 2017 by Claudio Cusano (claudio.cusano@unipv.it) * Dept of Electrical, Computer and Biomedical Engineering, * University of Pavia. */ package goldrush; /** * @author Reina Michele cl418656 * @author Bonissone Davidecl427113 */ public class Bo...
mit
NySwann/Paradix
Paradix.Engine/Input/KeyboardController.cs
1092
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace Paradix { public sealed class KeyboardController : IController { // TODO : List of keys UP / DOWN / PRESSED / RELEASED public PlayerIndex Player { get; set; } = PlayerIndex.One; public KeyboardState CurrentState { get; private set;...
mit
jpikl/cfxnes
core/bin/.eslintrc.js
72
module.exports = { parserOptions: { sourceType: 'script', }, };
mit
DocuWare/PlatformJavaClient
src/com/docuware/dev/Extensions/EasyCheckoutResult.java
949
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.docuware.dev.Extensions; import java.io.Closeable; import java.io.InputStream; /** * * @author Patrick */...
mit
bberak/PokerDotNet
BB.Poker.WinFormsClient/Properties/AssemblyInfo.cs
1422
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("BB...
mit
Salem5/CharacterEditor
CharacterModelLib/Models/CharacterProject.cs
4559
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CharacterModelLib.Models { public class CharacterProject : NotifyableBase { public CharacterProject() { characterColle...
mit
masschallenge/django-accelerator
simpleuser/models.py
6632
import uuid from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import BaseUserManager from django.utils import timezone from accelerator_abstract.models import BaseUserRole from accelerator_abstract.models.base_base_profile...
mit
keithhamilton/transposer
setup.py
1307
from setuptools import setup, find_packages from codecs import open import os def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup( name='transposer', version='0.0.3', description='Transposes column...
mit
Milanvdm/MedicalLSTM
src/main/java/experiments/State2VecTest.java
4075
package experiments; import java.io.File; import java.util.Arrays; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import data.StateImpl; import datahandler.word2vec.MedicalSequenceIterator; import state2vec.State2Vec; public class State2VecTest { protected static final Logger log...
mit
kevinzhwl/ObjectARXCore
2011/inc/gegblabb.h
10368
#ifndef AC_GEGBLABB_H #define AC_GEGBLABB_H // // (C) Copyright 1993-2010 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // tha...
mit
CaoPhiHung/CRM
vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/AbstractDocument.php
1168
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBU...
mit
walkdianzi/DashengHook
WeChat-Headers/IKFContactExt-Protocol.h
329
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class KFContact; @protocol IKFContactExt <NSObject> @optional - (void)onKFContactHeadImgUpdate:(KFContact *)arg1; - (void)onModifyKFContact:(KFContact *)arg...
mit
LV-eMeS/eMeS_Libraries
src/main/java/lv/emes/libraries/utilities/validation/MS_ValidationError.java
706
package lv.emes.libraries.utilities.validation; /** * Actions for error that occur in validation process. * * @author eMeS * @version 1.2. */ public interface MS_ValidationError<T> { MS_ValidationError withErrorMessageFormingAction(IFuncFormValidationErrorMessage action); /** * Returns message of v...
mit
zhwsh00/DirectFire-android
directfire_github/trunk/uilib/actions/absnodeaction.h
3894
#ifndef _absnodeaction_h_ #define _absnodeaction_h_ #include "cocos2d.h" using namespace cocos2d; #include <string> #include <iostream> #include <vector> using namespace std; namespace uilib { class TouchNode; enum EaseType { EaseNone, EaseIn, EaseOut, EaseInOut, EaseExponentialIn, EaseExponen...
mit
clazz/clazz.github.io
js/image-viewer.js
2216
window.ImageViewer = function(url, alt, title){ var img = $('<img />').attr('src', url).attr('alt', title).css({ display: 'inline-block', 'max-width': '90vw', 'max-height': '90vh' }); var a = $('<a></a>').attr('target', '_blank') .attr('title', title) .attr('h...
mit
pyladies/pyladies-theme
_posts/2014-11-02-fundraising-for-pycon-2015.md
3931
--- layout: post.html title: "Fundraising for PyLadies for PyCon 2015" tag: [PyCon] author: Lynn Root author_link: http://twitter.com/roguelynn --- **TL;DR**: [Donate](#ways-to-donate) to PyLadies for PyCon! It's that time again! With [PyCon 2015][0] planning in high gear, PyLadies is revving up to raise funds to hel...
mit
nmarley/dash
src/consensus/tx_verify.h
3264
// Copyright (c) 2017-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_TX_VERIFY_H #define BITCOIN_CONSENSUS_TX_VERIFY_H #include "amount.h" #include <stdint.h> #includ...
mit
zealfire/zealfire.github.io
_posts/2015-06-16-Week-three-and-implementing-twig-template.md
1959
--- layout: post title: Week three and implementing twig template --- The week three of coding period has ended and this time I learnt about something very new to me, Twig template. In Drupal 8 Twig has replaced PHPTemplate as default templating engine which meant that the theming of module had to be done from beginni...
mit
AZO234/NP2kai
generic/memdbg32.c
3962
#include <compiler.h> #if defined(CPUCORE_IA32) && defined(SUPPORT_MEMDBG32) #include <common/strres.h> #include <cpucore.h> #include <pccore.h> #include <io/iocore.h> #include <generic/memdbg32.h> #define MEMDBG32_MAXMEM 16 #define MEMDBG32_DATAPERLINE 128 #define MEMDBG32_LEFTMARGIN 8 typedef struct...
mit
richstoner/openjpeg-framework-ios
opjlib/opjlib.h
200
// // opjlib.h // opjlib // // Created by Rich Stoner on 11/26/13. // Copyright (c) 2013 WholeSlide. All rights reserved. // #import <Foundation/Foundation.h> @interface opjlib : NSObject @end
mit
RobSpectre/garfield
garfield/phone_numbers/migrations/0002_phonenumber_related_sim.py
626
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-11-01 20:02 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('phone_numbers', '0001_initial'), ...
mit
good2000mo/OpenClassicAPI
src/main/java/ch/spacebase/openclassic/api/HeartbeatManager.java
5720
package ch.spacebase.openclassic.api; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; i...
mit
terracotta-ko/BashScripts
installScript/java_config.sh
152
#! /bin/bash BASHRC="$HOME/.bashrc" echo "# java setting" >> $BASHRC echo "export JAVA_HOME=\$(/usr/libexec/java_home)" >> $BASHRC echo "" >> $BASHRC
mit
rockfordlhotka/DistributedComputingDemo
src/ParkingSim/ParkingRampSimulator/ParkingRamp.cs
2080
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ParkingRampSimulator { public class ParkingRamp : ParkingConstruct { [Newtonsoft.Json.JsonIgnore] public List<ParkingFloor> Floors { get; private set; } public ...
mit
jaubin/gojulutils
src/main/java/org/gojul/gojulutils/data/GojulPair.java
2277
package org.gojul.gojulutils.data; /** * Class {@code GojulPair} is a simple stupid pair class. This class is notably necessary * when emulating JOIN in database and such a class does not exist natively in the JDK. * This object is immutable as long as the object it contains are immutable. Since * this object is n...
mit
SergeyTeplyakov/ErrorProne.NET
src/ErrorProne.NET/ErrorProne.NET/Extensions/SyntaxNodeExtensions.cs
496
using System.Collections.Generic; using System.Diagnostics.Contracts; using Microsoft.CodeAnalysis; namespace ErrorProne.NET.Extensions { public static class SyntaxNodeExtensions { public static IEnumerable<SyntaxNode> EnumerateParents(this SyntaxNode node) { Contract.Requires(node...
mit
sinamoeini/mapp4py
src/gcmc.cpp
4193
/*-------------------------------------------- Created by Sina on 06/05/13. Copyright (c) 2013 MIT. All rights reserved. --------------------------------------------*/ #include "elements.h" #include "mpi_compat.h" #include "gcmc.h" #include "memory.h" #include "random.h" #include "neighbor.h" #include "ff_md.h" #inc...
mit
ttosi/moodbeam
mobile/www/js/index.js
1553
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
mit
capmake/robot-firmware
src/mqtt.cpp
745
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include "mqtt.h" // Connect to MQTT and set up subscriptions based on configuration void MQTT::connect() { // Connect to broker this->mqttClient.setServer(this->host, this->port); mqttClient.connect(this->clientId); Serial.print("Connected to MQTT,...
mit
jeroen-corsius/smart-meter
SmartMeter.Business.Interface/Mapper/IMapTelegram.cs
393
using System.Collections.Generic; namespace SmartMeter.Business.Interface.Mapper { public interface IMapTelegram { Persistence.Interface.ITelegram Map(ITelegram businessTelegram); Business.Interface.ITelegram Map(Persistence.Interface.ITelegram persistenceTelegram); IEnumerable<ITelegram> Map(IEnu...
mit
bill9800/NTU_D3js
HW01/index.html
2618
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>NTU D3js HW01</title> <link rel="stylesheet" type="text/css" href="main.css"> <script src="https://d3js.org/d3.v3.min.js"></script> </head> <body> <!-- page 4 --> 關&nbsp;&nbsp;關&nbsp;&nbsp;雎&nbsp;&nbsp;鳩<br> 在&nbsp;&nbsp;河&nbsp;&nbsp;之&nbsp;&nb...
mit
Alexander-Remizov/SVG-Amber-Tools
bower_components/amber/support/helios/src/Helios-Debugger.js
56069
define("helios/Helios-Debugger", ["amber/boot", "amber_core/Kernel-Objects", "helios/Helios-Core", "helios/Helios-Workspace"], function($boot){ var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals; smalltalk.addPackage('Helios-Debugger'); smalltalk.packages["Helios-Debugger"].transport = {"ty...
mit
ML-SWAT/Web2KnowledgeBase
webkb/other/cornell/http:^^www.cs.cornell.edu^Info^Courses^Spring-96^CS100^info^codewarrior.html
3562
MIME-Version: 1.0 Server: CERN/3.0 Date: Monday, 16-Dec-96 23:33:46 GMT Content-Type: text/html Content-Length: 3390 Last-Modified: Tuesday, 20-Feb-96 22:21:50 GMT <html> <head> <title> CodeWarrior for CS100 </title> </head> <body> <h2> Setting Up CodeWarrior for CS100 </h2> CodeWarrior can be run on your o...
mit
akonoupakis/jsnbt
src/web/admin/tmpl/core/controls/form/ctrlMap.html
1887
<div ng-class="{ invalid: !ngDisabled && !valid }"> <div class="form-group"> <label ng-show="ngLabel" class="control-label">{{ngLabel}}<small ng-show="ngTip">({{ngTip}})</small></label> <div class="row coordinates-container"> <div class="col-sm-6 form-control-feedback-container" ng-clas...
mit
DestructHub/bcs-contest
2016/Main/L/Python/solution_1_wrong.py
471
def calc(): h, l = input().split(' ') mapa = [] for i_row in range(int(h)): mapa.append(input().split(' ')) maior_num = 0 for row in mapa: for col in row: n = int(col) if (n > maior_num): maior_num = n qtd = [0 for i in range(maior_num + 1)] for row in mapa: for col in row: n ...
mit
ysden123/ysps
src/main/scala/com/stulsoft/ysps/pduration/PDuration.scala
390
package com.stulsoft.ysps.pduration import scala.concurrent.duration._ /** * @author Yuriy Stul. * Created on 9/15/2016. */ object PDuration { def main(args: Array[String]): Unit = { println("==>main") var fiveSec = 5.seconds println(s"fiveSec=$fiveSec") fiveSec = 15.secon...
mit
mdenchev/IDL
src/MainWindow.h
2202
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QApplication> #include <QMainWindow> #include <QTextEdit> #include <QMenu> #include <QMenuBar> #include <QAction> #include <QDialog> #include <QDesktopWidget> #include <QMdiArea> #include <QMdiSubWindow> #include <QDockWidget> #include <QTreeWidget> #include <QProces...
mit
James-Tolley/Manny.js
src/services/errors.js
692
/** * Error for services to through when they encounter a problem with the request. * Distinguishes between a bad service request and a general error */ function ServiceError(message) { this.name = "ServiceError"; this.message = (message || ""); } ServiceError.prototype = Object.create(Error.prototype, { construc...
mit
adius/vectual
src/javascript/bar.js
5165
import shaven from 'shaven' const svgNS = 'http://www.w3.org/2000/svg' export default function (svg, config) { const yDensity = 0.1 const yRange = config.max.value - config.min.value const graphHeight = config.height * 0.8 const graphWidth = config.width * 0.95 const coSysHeight = config.height * 0.6 con...
mit
cowboyd/rubigen
lib/rubigen/lookup.rb
10194
require File.dirname(__FILE__) + '/spec' class Object class << self # Lookup missing generators using const_missing. This allows any # generator to reference another without having to know its location: # RubyGems, ~/.rubigen/generators, and APP_ROOT/generators. def lookup_missing_generator(class_id...
mit
xiaochai/xiaochai.github.io
_posts/2021-11-20-the-rust-programming-language.markdown
148083
--- layout: post_n title: 《Rust权威指南》笔记 date: 2021-11-20 categories: - Reading description: 陆陆续续将《Rust权威指南》看完了,文中的例子全部按自己的理解重新实现了一遍。回望来途,可谓困难坎坷,步履艰辛;即是如此,也收获满满。Rust语言的学习给我耳目一新的感觉,上一次对学习语言有这种感觉还是在Haskell的学习中。他完全颠覆我理解的语言设计,在除了垃圾回收语言和内存自主控制语言,竟然还有如此方式来保证内存安全。震撼的同时,也感觉整体学习非常吃力,学习曲线异常陡峭。虽然把整本书都看完了,但还有非常多的细节似懂非懂,也无法完全不参照例子自...
mit
magx2/jSupla
docs/release-notes.md
5523
<sup><sup>*Release notes were automatically generated by [Shipkit](http://shipkit.org/)*</sup></sup> #### 0.9.17 - 2020-05-31 - [17 commits](https://github.com/magx2/jSupla/compare/v0.9.14...v0.9.17) by [Martin Grzeslowski](https://github.com/magx2) - published to [![Bintray](https://img.shields.io/badge/Bintray-0.9....
mit
dpatz/scroll-of-heroes-client
app/routes/application.js
150
import Ember from "ember"; export default Ember.Route.extend({ model: function() { return this.store.query('answer', {correct: true}); } });
mit
ngohuynhngockhanh/pyBearServer
vendor/sokil/php-mongo/src/Validator/AlphaNumericValidator.php
961
<?php /** * This file is part of the PHPMongo package. * * (c) Dmytro Sokil <dmytro.sokil@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sokil\Mongo\Validator; /** * Alphanumeric values validator * * @a...
mit
rande/swBlogPlugin
modules/swBlogTagsAdmin/lib/baseSwBlogTagsAdminActions.class.php
2201
<?php /** * swPagesAdmin actions. * * @package soleoweb * @subpackage swPagesAdmin * @author Your name here * @version SVN: $Id: actions.class.php 8507 2008-04-17 17:32:20Z fabien $ */ class baseSwBlogTagsAdminActions extends sfActions { public function executeIndex($request) { $this->sw_blo...
mit
flow-ai/flowai-swift
Example/Pods/Target Support Files/FlowCore/FlowCore-umbrella.h
308
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double FlowCoreVersionNumber; FOUNDATION_EXPORT const unsigned char FlowCoreVersionString[];
mit
coderFirework/app
js/Cesium-Tiles/Source/Shaders/Builtin/Functions/RGBToHSB.js
1025
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { 'use strict'; return "/**\n\ * Converts an RGB color to HSB (hue, saturation, brightness)\n\ * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl}\...
mit
JuliaPackageMirrors/Weave.jl
doc/src/index.md
691
# Intro This is the documentation of [Weave.jl](http://github.com/mpastell/weave.jl). Weave is a scientific report generator/literate programming tool for Julia. It resembles [Pweave](http://mpastell.com/pweave) and, Knitr and Sweave. **Current features** * Noweb, markdown or script syntax for input documents. * E...
mit
kriserickson/generator-topcoat-touch
app/templates/_app.js
8221
/** * Demo App for TopcoatTouch */ $(document).ready(function() { <% if (kitchenSink) { if (mvc) { %> // Create the topcoatTouch object var tt = new TopcoatTouch({menu: [{id: 'help', name: 'Help'}, {id: 'info', name: 'Info'}, {id: 'about', name: 'About'}]}); tt.on(tt.EVENTS.MENU_ITEM_CLICKED, functi...
mit
emoon/ProDBG
api/rust/prodbg/src/cfixed_string.rs
10053
use std::borrow::{Borrow, Cow}; use std::ffi::{CStr, CString}; use std::fmt; use std::mem; use std::ops; use std::os::raw::c_char; use std::ptr; const STRING_SIZE: usize = 512; /// This is a C String abstractions that presents a CStr like /// interface for interop purposes but tries to be little nicer /// by avoiding...
mit
bigeasy/packet
test/readme/terminated-multibyte.js
8252
const sizeOf = { object: function () { return function (object) { let $start = 0 $start += 1 * object.array.length + 2 return $start } } () } const serializer = { all: { object: function () { return function (object, $buffer, $start)...
mit
emCOMP/visualization
src/css/annotated_tweets.css
2629
#body { width: auto; } /* Coding Table */ .table_stat { z-index: 2; position: relative; } .table_bar { height: 80%; position: absolute; background: #DEF; /* cornflowerblue */ z-index: -1; top: 10%; left: 0%; } #agreement_table, #tweet_table { font-size: 10pt; } #agreement_table ...
mit
rizaumami/rizaumami.github.io
_posts/2016-07-31-mengerjakan-dapodik-dalam-linux.md
2606
--- layout: post title: Mengerjakan Dapodik 2016 dalam Linux tags: [dapodik, virtualbox, linux] comments: true --- Hari ini Dapodik versi 2016 telah diluncurkan. Jika boleh berpendapat, mestinya Dapodik kembali menggunakan _Software as a service_ layaknya Dapodikdas generasi awal atau [Padamu Negeri](http://padamu.s...
mit
heyitsgarrett/envelopecollective
gallery_submission.php-id=944.html
367
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Submission 944</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> <img src="gallery/subm...
mit
amagasa99/baukis
public/assets/application-358366aec1b89d5184b3442fddc3a7d2.css
2277
@charset "UTF-8"; /* グレー系 */ /* シアン系 */ /* マージン、パディング */ /* フォントサイズ */ /* 行の高さ */ /* グレー系 */ /* シアン系 */ /* マージン、パディング */ /* フォントサイズ */ /* 行の高さ */ /* line 6, /vagrant/app/assets/stylesheets/staff/container.css.scss */ div#wrapper div#container h1 { margin: 0; padding: 9px 6px; font-size: 16px; font-weight: nor...
mit
fannan1991/pyrocms
addons/shared/fannan/members-module/src/Member/MemberSeeder.php
227
<?php namespace Fannan\MembersModule\Member; use Anomaly\Streams\Platform\Database\Seeder\Seeder; class MemberSeeder extends Seeder { /** * Run the seeder. */ public function run() { // } }
mit
thomaschvt/Infinity-Games
src/InfinityGames/InfinityBundle/DependencyInjection/InfinityGamesInfinityExtension.php
901
<?php namespace InfinityGames\InfinityBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads...
mit
shaohuawang2015/goldbeans-admin
src/models/user.js
2907
import modelExtend from 'dva-model-extend' import { create, remove, update } from '../services/user' import * as usersService from '../services/users' import { pageModel } from './common' import { config } from 'utils' const { query } = usersService const { prefix } = config export default modelExtend(pageModel, { ...
mit