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
#!/usr/bin/env node /* Saves the DB to country specific downloads packages */ const fs = require("fs"); const path = require("path"); const zlib = require("zlib"); const async = require("async"); const ndjson = require("ndjson"); const status = require("node-status"); const Store = require("../lib/store.js"); con...
digiwhist/opentender-backend
bin/save_downloads.js
JavaScript
mit
11,617
/** * @module node-opcua-address-space.AlarmsAndConditions */ import { assert } from "node-opcua-assert"; import { DataValue } from "node-opcua-data-value"; import { NodeId } from "node-opcua-nodeid"; import { DataType } from "node-opcua-variant"; import { UAExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua"...
node-opcua/node-opcua
packages/node-opcua-address-space/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts
TypeScript
mit
4,233
/* * Copyright (c) Kuno Contributors * * This file is subject to the terms and conditions defined in * the LICENSE file, which is part of this source code package. */ namespace Kuno.Validation { /// <summary> /// Indicates the validation error type. /// </summary> public enum ValidationType ...
kuno-framework/kuno
Core/Kuno/Validation/ValidationType.cs
C#
mit
785
import IGMResource from "./IGMResource"; import GMSubscript from "./GMSubscript"; export default interface IGMScript extends IGMResource { /** * The file location of the GML file */ readonly filepath: string; /** * Returns an iterator with each SubScript in this script */ subScripts(gmlText: s...
jhm-ciberman/docs_gm
src/gm_project/IGMScript.d.ts
TypeScript
mit
363
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description':'End to end solution for bitcoin data gathering, backtesting, and live trading', 'author': 'ross palmer', 'url':'http://rosspalmer.github.io/bitQuant/', 'license':'MIT', 'version': '0.2.10', 'install...
multidis/bitQuant02
setup.py
Python
mit
464
/** * Created by andypax on 15/10/16. */ export class PasseadorModel { constructor( public nome?: string, public sobreNome?: string, public endereco?: string, public numero?: string, public complemento?: string, public cidade?: string, public cep?: string, ...
andpax/PetMais
app/passeador/passeador.model.ts
TypeScript
mit
621
import { Container, Optional } from 'aurelia-dependency-injection'; import { GlobalValidationConfiguration, ValidationControllerFactory, ValidationController, Validator, validateTrigger } from '../src/aurelia-validation'; describe('ValidationControllerFactory', () => { it('createForCurrentScope',...
aurelia/validation
test/validation-controller-factory.ts
TypeScript
mit
1,284
# GitterSmsBridge [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jtrinklein/GitterSmsBridge?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
jtrinklein/GitterSmsBridge
README.md
Markdown
mit
192
<!DOCTYPE html> <!--[if IE 9 ]><html class="ie9"><![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>SUC</title> <?php $this->load->view('templa...
caeceteam/suc_web
application/views/food_type/search.php
PHP
mit
3,841
import React from 'react' import PropTypes from 'prop-types' import { EditorialOverlay } from '../editorials/EditorialParts' import { css, media } from '../../styles/jss' import * as s from '../../styles/jso' import * as ENV from '../../../env' const spinGif = '/static/images/support/ello-spin.gif' const imageStyle =...
ello/webapp
src/components/errors/Errors.js
JavaScript
mit
2,790
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_112) on Fri Feb 17 01:05:18 ICT 2017 --> <title>User (Github-Request 2.2.3)</title> <meta name="date" content="2017-02-17"> <link rel="styleshe...
kamontat/Github-Request
docs/com/kamontat/model/github/User.html
HTML
mit
27,096
# ursa 统计模块
husu/ursa
README.md
Markdown
mit
20
class ApplicationController < ActionController::Base before_filter :authenticate_auth! before_action :configure_permitted_parameters, if: :devise_controller? # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception before_f...
qtamaki/three-d-mind
app/controllers/application_controller.rb
Ruby
mit
761
 #include "xGenType_List.h" xGenType* xGenType_List::Clone() { return new xGenType_List(*this); } std::string xGenType_List::GetName() { return "list"; } std::string xGenType_List::GetUseName() { return "std::list<" + GetValueTypeName() + ">"; } std::string xGenType_List::GetInclude() { ret...
xgm-skywave/sw
xgen/xgen/xGenType_List.cpp
C++
mit
349
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: typedef std::vector<ListNode*> NodeVec; typedef NodeVec::iterator Iter; ListNode* mergeKLists(vector<ListNode*>& lists) { ...
orphie/lc
023. Merge k Sorted Lists.cc
C++
mit
1,750
body { background-color: #e4f1fd; padding: 100px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; } a { color: #00B7FF; } h1 { text-align:center; font-size: 60px; color: #0E2F44; } p { text-align:center; font-size: 20px; color: #66CCCC; } input { text-align:center; border-right:2px sol...
niksolaz/GeoJS
geojs/public/stylesheets/style.css
CSS
mit
512
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Altairis.Fakturoid.Client { /// <summary> /// Proxy class for working with todo tasks. /// </summary> public class FakturoidTodosProxy : FakturoidEntityProxy { internal FakturoidTodosProxy(FakturoidContex...
ridercz/Fakturoid-API
Altairis.Fakturoid.Client/FakturoidTodosProxy.cs
C#
mit
3,095
/* multiboot.h : Stuff for multiboot. (C)2012-2013 Marisa Kirisame, UnSX Team. Part of AliceOS, the Alice Operating System. Released under the MIT License. */ /* defines */ #define MULTIBOOT_MAGIC 0x1BADB002 #define MULTIBOOT_EAX_MAGIC 0x2BADB002 #define MULTIBOOT_FLAG_MEM 0x001 #define MULTIBOOT_FLAG...
OrdinaryMagician/aliceos-kernel
kernel/include/sys/multiboot.h
C
mit
2,615
var framework = require('framework'); exports.info = function() { return 'fooPlugin (in Framework v' + framework.version + ')'; };
jaredhanson/node-parent-require
test/projects/app/node_modules/foo-plugin/index.js
JavaScript
mit
134
$('document').ready(function() { initTooltips(); }); $(window).on('action:posts.loaded action:topic.loaded action:posts.edited', function() { initTooltips(); }); $(window).on('action:ajaxify.contentLoaded', function(){ $('.item-tooltip').hide(); }); function initTooltips() { $('.vanilla-tooltip').each(function(...
liekki/nodebb-plugin-vanillatooltips
static/vanillatooltips.js
JavaScript
mit
1,883
#! /usr/bin/env python """ Module with the MCMC (``emcee``) sampling for NEGFC parameter estimation. """ __author__ = 'O. Wertz, Carlos Alberto Gomez Gonzalez, V. Christiaens' __all__ = ['mcmc_negfc_sampling', 'chain_zero_truncated', 'show_corner_plot', 'show_walk_plot', '...
vortex-exoplanet/VIP
vip_hci/fm/negfc_mcmc.py
Python
mit
57,611
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Hexon.MvcTrig.Sample { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
dinowang/MvcTrig
Hexon.MvcTrig.Sample/Global.asax.cs
C#
mit
581
Nightshade ========= This is an [Octopress](http://octopress.org/) theme that lies somewhere between [OctoPanel](https://github.com/ConnorAtherton/OctoPanel) and [Greyshade](https://github.com/shashankmehta/greyshade). ## Installation instructions Open your terminal and type: 1. `$ cd octopress-blog` 2. `$ git clon...
barisbalic/nightshade
README.md
Markdown
mit
440
var fs = require("fs"); var glob = require("glob"); var IOUtils = require("./IOUtils"); var DirectiveHandler = require("./DirectiveHandler"); var DIRECTIVE_MATCHER = /<!--#([a-z]+)([ ]+([a-z]+)="(.+?)")* -->/g; (function() { "use strict"; var ssi = function(inputDirectory, outputDirectory, matcher) { this.inpu...
omarsmak/cass-db
node_modules/ssi/lib/SSI.js
JavaScript
mit
1,751
/* * The MIT License * * Copyright 2020 Intuit Inc. * * 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, modi...
intuit/karate
karate-core/src/main/java/com/intuit/karate/template/KarateTemplateResource.java
Java
mit
2,158
# GEOMEM [![Netlify Status](https://api.netlify.com/api/v1/badges/d1fc834d-7d6b-4ef2-8bbf-b429e1a2d78b/deploy-status)](https://app.netlify.com/sites/geomem/deploys) Geomem is a simple application written in JavaScript (Vanilla using ES6 features), HTML and SCSS. I use this application to set the "I went" locations....
yoannfleurydev/geomem
README.md
Markdown
mit
546
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30128.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> ...
tiagodll/dNet.DB
ToPayList/Properties/Resources.Designer.cs
C#
mit
2,844
using System.Collections.Generic; namespace KeyCounter { class Counter { public string Name { get; set; } public int Count { get; set; } } /// <summary> /// Interaction logic for OverlayWindow.xaml /// </summary> public partial class OverlayWindow { public Overl...
mibbio/Hotkey-Counter
KeyCounter/OverlayWindow.xaml.cs
C#
mit
619
package main import ( "fmt" "github.com/aleasoluciones/serverstats" ) func main() { serverStats := serverstats.NewServerStats(serverstats.DefaultPeriodes) for metric := range serverStats.Metrics { fmt.Println(metric.Timestamp, fmt.Sprintf("%-15s", metric.Name), metric.Value, metric.Unit) } }
aleasoluciones/serverstats
example/serverstats_cmd.go
GO
mit
304
class Collection def id 3 end end
ndlib/waggle
spec/dummy/app/models/collection.rb
Ruby
mit
43
package t08_ExamPreparations.e02_17_September_2017; import java.util.Scanner; public class p05_Sheriff { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); //first three rows int dots = (3 * n - 1) / 2; ...
Packo0/SoftUniProgrammingBasics
src/t08_ExamPreparations/e02_17_September_2017/p05_Sheriff.java
Java
mit
3,792
using System; using System.Collections.Generic; using System.Linq; using Xunit; // Given a triangle, find the minimum path sum from top to bottom. // Each step you may move to adjacent numbers on the row below. // For example, given the following triangle // [ // [2], // [3,4], // [6,5,7], // [4,1,8,3]...
txchen/localleet
csharp/Q120_Triangle.cs
C#
mit
1,260
import { DadosVeiculo } from '../../../../browser/src/app/services/veiculo.service'; import { DadosLogin, DadosRegistro, RegistroResultado } from '../../../../browser/src/interfaces/login.interface'; import { BrazucasServer } from '../../../../common/brazucas-server'; import { Jogador } from '../../../../common/databas...
brazucas/ragemp
packages/rpg/lib/events/events.ts
TypeScript
mit
4,260
<?php namespace PayPal\Api; use PayPal\Common\PayPalModel; use PayPal\Converter\FormatConverter; use PayPal\Validation\NumericValidator; /** * Class Tax * * Tax information. * * @package PayPal\Api * * @property string id * @property string name * @property \PayPal\Api\number percent * @p...
COD-Project/unagauchada
vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php
PHP
mit
2,291
namespace MvpDemo { partial class FormGeneratorDemo { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ///...
JohnLambe/JLCSUtils
JLCSUtils/MvpDemo/FormGeneratorDemo.Designer.cs
C#
mit
3,069
import pygame import math class Screen: ''' Se encarga de controlar lo que ve el jugador en la pantalla. Parameters ---------- size : List[int] Tamaño de la pantalla, ``[w, h]``. Notes ----- Primero se debe crear una instancia de este objeto, luego, en cada loop del juego ...
toboso-team/toledo
toledo/graphics/screen.py
Python
mit
7,808
<?php //输出接口数据 function output($data) { header("Content-Type:text/html; charset=utf-8"); $r_type = intval($_REQUEST['r_type']);//返回数据格式类型; 0:base64;1;json_encode;2:array $data['act'] = ACT; $data['act_2'] = ACT_2; if ($r_type == 0) { echo base64_encode(json_encode($data)); }else if ($r_type == 1) ...
leoliew/fanwe_p2p
mapi/lib/functions.php
PHP
mit
3,974
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
v8-dox/v8-dox.github.io
c087502/html/classv8_1_1Locker.html
HTML
mit
9,653
-- boundary3.test -- -- db eval { -- SELECT t2.a FROM t1 JOIN t2 USING(a) -- WHERE t1.rowid <= -36028797018963968 ORDER BY t2.a -- } SELECT t2.a FROM t1 JOIN t2 USING(a) WHERE t1.rowid <= -36028797018963968 ORDER BY t2.a
bkiers/sqlite-parser
src/test/resources/boundary3.test_506.sql
SQL
mit
230
/* Copyright (C) 2001, 2008 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. */ package gov.nasa.worldwind.applications.gio.ebrim; import gov.nasa.worldwind.applications.gio.xml.ElementParser; import gov.nasa.worldwind.util.Logging;...
caadxyz/Macro-Thinking-Micro-action
src/gov/nasa/worldwind/applications/gio/ebrim/TelephoneNumberParser.java
Java
mit
3,053
// // Header.h // ZgChess // // Created by 谢伟健 on 15-2-15. // Copyright (c) 2015年 wk. All rights reserved. // // Github: https://github.com/WelkinXie/FiveInARow // #ifndef ZgChess_Header_h #define ZgChess_Header_h #define rgba(r, g, b, a) [SKColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a] #def...
WelkinXie/FiveInARow
ZGChess/Header.h
C
mit
817
<?php return [ /* * basic stack */ 'stack/error-stack', 'stack/session-stack', 'stack/cs-rf-stack', 'stack/view-stack', /* * handlers and releases */ 'stack/url-mapper-handler', ];
asaokamei/Pile
app/config/stacks.php
PHP
mit
229
// Copyright 2011-2018 Nicholas J. Kain <njkain at gmail dot com> // SPDX-License-Identifier: MIT #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <arpa/inet.h> #include <errno.h> #include <limits....
niklata/ndhc
leasefile.c
C
mit
2,842
# Count Between # I worked on this challenge [by myself, with: ]. # count_between is a method with three arguments: # 1. An array of integers # 2. An integer lower bound # 3. An integer upper bound # # It returns the number of integers in the array between the lower and upper bounds, # including (potentially) t...
edella2/phase-0
week-4/count-between/my_solution.rb
Ruby
mit
626
{ "posts": [ { "url": "/entertainment/bts/2018/01/03/BTSM.1514981921.A.0CF.html", "title": "180103 [V] RM's Hello 2018!", "image": "http://v.phinf.naver.net/20180103_182/1514986072229SeS1m_JPEG/upload_KakaoTalk_20180103_222559691.jpg?...
sunnyKiwi/JustCopy
tag/cr/json/index.html
HTML
mit
2,851
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'V1::NewLeaders', type: :request do let(:user) { nil } # set this in subtests let(:auth_headers) { { 'Authorization': "Bearer #{user.auth_token}" } } # set these in subtests let(:params) { {} } let(:headers) { {} } let(:method) { :get } ...
hackclub/api
spec/requests/v1/new_leaders_spec.rb
Ruby
mit
5,053
<?php // Define namespace namespace Sonic\Controller; // Start Index Class class Index extends \Sonic\Controller { public function index () { } }
andyburton/Sonic-Framework-Project
classes/Sonic/Controller/Index.php
PHP
mit
156
# log Codeshare Application Logger # Usage ```js import log from '@codeshare/log' log.fatal('message', {/*...*/}) log.error('message', {/*...*/}) log.warn('message', {/*...*/}) log.info('message', {/*...*/}) log.debug('message', {/*...*/}) log.trace('message', {/*...*/}) ``` ```js log.logRequest({/*...*/}) ``` ```j...
Codeshare/log
README.md
Markdown
mit
347
function changeOfBaseQuestion(randomStream, params) { var number = randomStream.nextIntRange(240)+15; var baseArray = [ {base: "decimal", value: number.toString(10), radix: 10}, {base: "hexadecimal", value: number.toString(16), radix: 16}, {base: "binary", value: number.toString(2), radix: 2} ]; rando...
pconrad/AwesomeExams
js/questionsDev/changeOfBase.js
JavaScript
mit
2,286
// http://codingbat.com/prob/p117334 public String stringSplosion(String str) { StringBuilder output = new StringBuilder(); for (int i = 0; i < str.length(); ++i) { output.append(str.substring(0, i+1)); } return output.toString(); }
dvt32/cpp-journey
Java/CodingBat/stringSplosion.java
Java
mit
246
#ifndef __NEURAL_NETWORK__H #define __NEURAL_NETWORK__H #include <string> #include <fstream> #include <cassert> #include "layer.h" #include "input_layer.h" #include "hidden_layer.h" #include "output_layer.h" #include "weight_matrix.h" #include "helper.h" class NeuralNetwork { private: int n_outputs; InputLayer ...
echentw/neural-network
nn/include/neural_network.h
C
mit
1,449
/******************************************************************************* * The MIT License (MIT) * Copyright (c) 2015 University of Twente * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
jankolkmeier/HmiCore
HmiPhysics/test/src/hmi/physics/UniversalJointControllerTest.java
Java
mit
4,513
class CreateDataFiles < ActiveRecord::Migration def self.up create_table :data_files do |t| t.references :experiment t.string :data_file_name t.string :data_content_type t.integer :data_file_size t.datetime :data_updated_at t.text :description t.boolean :has_concentration...
vekelly09/metaboflo
db/migrate/20081002221651_create_data_files.rb
Ruby
mit
516
package com.unalsoft.elitefle.presentation.controller; import com.unalsoft.elitefle.businesslogic.facade.FacadeFactory; import com.unalsoft.elitefle.entity.xml.*; import com.unalsoft.elitefle.vo.ActivityVo; import com.unalsoft.elitefle.vo.SequenceVo; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewSc...
UnalSoft/elite-fle
src/main/java/com/unalsoft/elitefle/presentation/controller/SystematizationActivityBean2.java
Java
mit
11,623
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/io/LineNumberReader.java // #ifndef _JavaIoLineNumberReader_H_ #define _JavaIoLineNumberReader_H_ #include "J2ObjC_header.h" #include "java/io/BufferedReader.h" @class IOSCharArray; @class JavaIoReader; /*! ...
benf1977/j2objc-serialization-example
j2objc/include/java/io/LineNumberReader.h
C
mit
6,426
import numpy as np class Site(object): """A class for general single site Use this class to create a single site object. The site comes with identity operator for a given dimension. To build specific site, additional operators need be add with add_operator method. """ def __init__(sel...
fhqgfss/MoHa
moha/modelsystem/sites.py
Python
mit
7,169
'use strict'; var flight; function coerceToInt(number) { if (number === 'NA') { return null; } var int = parseInt(number); if (isNaN(int)) { return null; } else { return int; } } // http://www.epochconverter.com/ // http://momentjs.com var beginningOf2001 = moment('20...
DJCordhose/big-data-visualization
code/flights-from-es.js
JavaScript
mit
7,716
var fs = require('fs'); var path = require('path'); var gulp = require('gulp'); var browserSync = require('browser-sync').create(); var reload = browserSync.reload; var sass = require('gulp-sass'); var compass = require('gulp-compass'); var watch = require('gulp-watch'); var gutil = require('gulp-util'); var conc...
celsowhite/hsss_landing
gulpfile.js
JavaScript
mit
6,441
<?php /** * Pure-PHP X.509 Parser * * PHP version 5 * * Encode and decode X.509 certificates. * * The extensions are from {@link http://tools.ietf.org/html/rfc5280 RFC5280} and * {@link http://web.archive.org/web/19961027104704/http://www3.netscape.com/eng/security/cert-exts.html Netscape Certificate Extension...
msulistijo/PhpseclibBundle
Utility/File/X509.php
PHP
mit
171,446
package provider import ( "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "encoding/base64" "encoding/pem" "encoding/xml" "errors" "fmt" "io/ioutil" "math/big" "net/http" "net/url" "strings" "time" "github.com/netlify/gotrue/models" "github.com/netlify/gotrue/storage" "github.com/netlify/gotr...
netlify/gotrue
api/provider/saml.go
GO
mit
6,380
all: $(MAKE) -C ../../ test_credits_qt clean: $(MAKE) -C ../../ test_credits_qt_clean check: $(MAKE) -C ../../ test_credits_qt_check
credits-currency/credits
src/qt/test/Makefile
Makefile
mit
136
// To check if a library is compiled with CocoaPods you // can use the `COCOAPODS` macro definition which is // defined in the xcconfigs so it is available in // headers also when they are imported in the client // project. // WaitBlock #define COCOAPODS_POD_AVAILABLE_WaitBlock #define COCOAPODS_VERSION_MAJOR_WaitBl...
remirobert/WaitBlock
Example/Pods/Target Support Files/Pods/Pods-environment.h
C
mit
415
import datetime import json from brake.decorators import ratelimit from django.utils.decorators import method_decorator from django.utils.translation import get_language from django.conf import settings from django.core.urlresolvers import reverse_lazy from django.http import HttpResponseRedirect, HttpResponse from dj...
ministryofjustice/manchester_traffic_offences_pleas
apps/plea/views.py
Python
mit
8,700
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="language" content="en" /> <link href="./assets/8067b7df/css/bootstrap.css" rel="stylesheet"> <link href="./assets/96d031ef/style.css" rel="stylesheet"> ...
schmunk42/yii2-translate-manager
docs/lajax-translatemanager-controllers-actions-saveaction.html
HTML
mit
14,821
<script src="<?php echo base_url(); ?>assets/admin/js/plugin/summernote/summernote.min.js"></script> <link href="<?php echo base_url(); ?>assets/admin/css/custom-main.css" rel="stylesheet"> <?php $this->load->view('themes/admin/breadcrumb'); ?> <!-- MAIN CONTENT --> <div id="content"> <div class="m-b-10"> ...
abdul-tis/tmi_hotels
application/views/admin/settings/editratecategory.php
PHP
mit
6,794
// <auto-generated /> using HerpDesk.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.Inte...
MarcinSzyba/HerpDesk
HerpDesk/Migrations/20180111081222_TicketAuthorLinks.Designer.cs
C#
mit
8,712
require 'spec_helper' describe Jruby::Pcap do let(:file) { "spec/fixtures/ransomware.pcap" } let(:handle) { Jruby::Pcap.open(file) } subject(:packet) { handle.first } context "handling a packet" do it "able to get a packet timestamp" do expect(packet.timestamp).to eq(1431626602000) end e...
purbon/jruby-pcap
spec/jruby-pcap/packet_spec.rb
Ruby
mit
840
# Scaling Up And Scaling Out Scaling is the effect of increasing capacity by adding more resources. Scaling vertically (scaling up) means adding resources to a single machine. Increasing the number of available machines is called horizontal scaling (scaling out). Traditionally, adding more hardware resources to a dat...
kentsay/TIL
performance-and-scaling/scaling-up-scaling-out.md
Markdown
mit
1,965
(function() { var url = new URL(location.href); /** * This represents one oscillator of Kuramoto-Network. * @constructor */ var Oscillator = function () { /** * References to coupled oscillators. * @type {Array.<Oscillator>} */ this.coupled = []; thi...
arumtaunsaram/Kuramoto-Model
app.js
JavaScript
mit
13,845
# Step Through Debugging The area below is supposed to be a list of interesting facts about cats! If you look at the HTML you'll see the following: ```html <ul id="catfacts"></ul> ``` And a file in this repo `/public/exercises/js/Debugging.js` is hitting an API and supposed to populate that list! Can you figure out ...
jkup/mastering-chrome-devtools
markdown/exercises/Debugging.md
Markdown
mit
631
# mip-hs-discuss mip-hs-discuss 组件说明 此组件用于详情页面的评论列表的渲染并有回复功能,回复功能需要与mip-hs-replay组件一起使用效果更好,评论列表里面的点赞交互处理; 通过点击类disnum渲染插入评论列表数据; 标题|内容 ----|---- 类型|通用 支持布局|responsive,fixed-height,fill,container,fixed 所需脚本|https://c.mipcdn.com/static/v1/mip-hs-discuss/mip-hs-discuss.js ## 示例 ### 基本用法 ```html <mip-hs-discuss> <m...
mipengine/mip-extensions-platform
mip-hs-discuss/README.md
Markdown
mit
1,024
<?php /* * This file is part of the idlErrorManagementPlugin * (c) Idael Software <info AT idael.ch> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * PluginApplicationError, reprents error object that are going to...
Symfony-Plugins/idlErrorManagementPlugin
lib/model/doctrine/PluginApplicationError.class.php
PHP
mit
2,731
angular.module('inviteFactory', ['firebase']) .factory('invite', ['$firebaseObject', '$http' , function ($firebaseObject, $http) { var inviteFactory = {}; // mandrill API key ** free version API key only for production ** // in real use case, should store this securely var mandrillKey = 'ul35c_Y39BxIZUIUa_HI...
onphenomenon/bizGram
client/app/Invites/inviteFactory.js
JavaScript
mit
1,938
=begin #The Plaid API #The Plaid REST API. Please see https://plaid.com/docs/api for more details. The version of the OpenAPI document: 2020-09-14_1.79.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.0 =end require 'date' require 'time' module Plaid class CreditAccountSubtype C...
plaid/plaid-ruby
lib/plaid/models/credit_account_subtype.rb
Ruby
mit
1,012
/** * Created by DOCer on 2017/7/11. */ import {connect} from 'app'; import UI from './UI/'; export default connect( ({test}) => (test), { onStart({dispatch, getState}){ dispatch({ type: "test/showTableLoading" }); // ajax request after empty comple...
homkai/deef
examples/ant-design-demo/src/Root/modules/Test/index.js
JavaScript
mit
1,745
function AddressBook () { this.contacts=[]; this.initialComplete = false; AddressBook.prototype.addContact= function(newContact) { this.contacts.push(newContact); }; AddressBook.prototype.getContact = function(index) { return this.contacts[index]; }; AddressBook.prototype.deleteCont...
Andrew-He/jasmine-practice
src/AddressBook.js
JavaScript
mit
596
import ListaDeNotas from "./ListaDeNotas" export default ListaDeNotas
AlbertoAlfredo/exercicios-cursos
alura/react/ceep/src/components/ListaDeNotas/index.js
JavaScript
mit
69
package com.github.wreulicke.spring; import org.springframework.boot.autoconfigure.web.WebMvcRegistrationsAdapter; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcCo...
Wreulicke/spring-sandbox
failsafe/src/main/java/com/github/wreulicke/spring/WebMvcConfiguration.java
Java
mit
629
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FDA.Attributes { /// <summary> /// Indicates an Assembly contains datapoint models /// </summary> [AttributeUsage(AttributeTargets.Assembly)] public class ModelAttribute : ...
DefectiveCube/FlightDataAnalyzer
src/AnalysisLib/Attributes/ModelAttribute.cs
C#
mit
346
.screenName { color: #999; }
shibe97/worc
app/components/Atoms/ScreenName/screenName.css
CSS
mit
31
package elkm1androidexample.elk.org.elkm1androidexample; import elkm1api.CharVector; import elkm1api.M1Connection; import java.io.IOException; import java.net.Socket; /** * Created by feilen on 8/10/16. */ public class ConnectionWrapper extends M1Connection { protected Socket tcp; //AutoResetEvent evt = ne...
ElkProducts/ElkM1API
ElkM1AndroidExample/app/src/main/java/elkm1androidexample/elk/org/elkm1androidexample/ConnectionWrapper.java
Java
mit
1,683
#!/bin/bash # Script: install_eclipse_luna.sh echo === Install & remove Eclipse CDT - this leaves the .desktop file sudo apt-get update sudo apt-get install -y eclipse-cdt sudo cp /usr/share/applications/eclipse.desktop /usr/share/applications/eclipse.desktop.bak sudo apt-get remove -y eclipse-cdt echo echo === Downloa...
fsziegler/Configurations
install_eclipse_luna.sh
Shell
mit
1,031
'use strict'; const {BrowserWindow, app} = require('electron'); const test = require('tape-async'); const delay = require('delay'); const { appReady, focusWindow, minimizeWindow, restoreWindow, windowVisible } = require('.'); let win; test('exports an appReady function', async t => { t.is(typeof appReady, 'func...
parro-it/p-electron
test.js
JavaScript
mit
1,621
package unnoticed import ( "errors" "fmt" "log" "os" "os/user" "path" "runtime" ) var ( printLogger *log.Logger = log.New(os.Stdout, log.Prefix(), log.Flags()) fileLogger *log.Logger = nil fileLogging bool = false ) // OsuDir finds the root osu! directory where osu!.db and scores.db can be found. f...
christopher-dG/unnoticed
client/utils.go
GO
mit
2,084
# HTTPD Web Server Check Check the health of the HTTPD service. Note, we've seen case where the status command print "httpd dead but subsys locked". module.exports = header: 'HTTPD Check', handler: (options) -> ## Runing Sevrice Ensure the "ntpd" service is up and running. @service.assert heade...
adaltas/node-masson
commons/httpd/check.coffee.md
Markdown
mit
571
class DatabaseRouter(object): ''' These functions are called when Django accesses the database. Returns the name of the database to use depending on the app and model. Returning None means use default. ''' def db_for_read(self, model, **hints): return self.__db_for_read_and_write(model...
geometalab/geoconverter
GeoConverter/database.py
Python
mit
4,858
(function() { var modules = window.modules || []; var navigation_graphCache = null; var navigation_graphFunc = function() { return (function() { var NavigationGraph, NavigationNode, Navigator; Navigator = require('gator/navigator'); NavigationNode = require('gator/navigation_node'); NavigationGrap...
tshelburne/gator-js
spec/bin/gator.js
JavaScript
mit
14,495
#!/bin/bash RAND=$(( ( RANDOM % 42 ) + 1 )) for (( i=1; i<=RAND; i++ )) do curl -s -o /dev/null http://147.75.100.207/zwitscher-service/admin/info done curl http://147.75.100.207/zwitscher-service/tweets
qaware/hitchhikers-guide-cloudnative
solution/random-zwitscher-service.sh
Shell
mit
208
//***************************************************************************** // // mpu9150.c - Driver for the MPU9150 accelerometer, gyroscope, and // magnetometer. // // Copyright (c) 2013-2016 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Texas Instruments (...
robotics-at-maryland/qubo
embedded/drivers/sensorlib/mpu9150.c
C
mit
40,883
SIMPLE_SETTINGS = { 'OVERRIDE_BY_ENV': True } MY_VAR = u'Some Value'
drgarcia1986/simple-settings
tests/samples/special.py
Python
mit
74
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="histogram.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plot...
plotly/python-api
packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_size.py
Python
mit
541
# Introduction Provide some promisified version (by bluebird) for some commonly used libs. # Install ```bash $ npm i bblib ``` # Usage For Standard libs: ```js const bfs = require('bblib/fs'); async function main() { var exists = await bfs.exists('/path/to/file'); if (exists) { // do something } } mai...
klesh/bblib
README.md
Markdown
mit
3,254
<?php /* Safe sample input : Get a serialize string in POST and unserialize it sanitize : use of the function htmlspecialchars. Sanitizes the query but has a high chance to produce unexpected results construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted,...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_98/safe/CWE_98__unserialize__func_htmlspecialchars__include_file_name-concatenation_simple_quote.php
PHP
mit
1,331
/*! @package noty - jQuery Notification Plugin @version version: 2.3.7 @contributors https://github.com/needim/noty/graphs/contributors @documentation Examples and Documentation - http://needim.github.com/noty/ @license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php */ ...
fico-juliuskabugu/noty
js/noty/jquery.noty.js
JavaScript
mit
18,619
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/fore...
Baisang/antcoin
src/checkpoints.cpp
C++
mit
2,373
// Copyright © 2017 The Things Network // Use of this source code is governed by the MIT license that can be found in the LICENSE file. package announcement import ( "encoding" "fmt" "reflect" "strings" "time" pb "github.com/TheThingsNetwork/ttn/api/discovery" "github.com/TheThingsNetwork/ttn/core/types" "gi...
jvanmalder/ttn
core/discovery/announcement/announcement.go
GO
mit
5,951
namespace NetBike.Xml { using System; using System.Collections.Generic; using System.Xml; using NetBike.Xml.Contracts; using NetBike.Xml.Converters; public sealed class XmlSerializationContext { private XmlContract currentContract; private XmlMember currentMember; p...
netbike/netbike.xml
NetBike.Xml/XmlSerializationContext.cs
C#
mit
11,863
--- published: true title: 开始我的博客 layout: post author: Eureka912 category: Essay --- ### 1. 我为什么要写博客? 我的想法是,尽可能多的写计算机相关的文章,保持知识上的成长和学习状态;除去知识性的文章之外,也分享自己的思想关于人生或是别的之类的思考。大部分知识性分享的文章,我会放在别的网站--我的[博客园][2],以便别人可以检索到,这里只留下一下还算有趣的东西。因此,这个博客看起来更像是我写字的地方。 拥有知识是幸福的事情,但是人的思维和想法也极为重要,古希腊哲学家埃皮克提图(Epuctetus)就认为,“哲学不仅仅是一门学科,也是一种...
crb912/blog
_posts/2016-06-01-My-First-Post.md
Markdown
mit
7,220
<?php namespace ATManager\BackendBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use ATManager\BackendBundle\Entity\EstadioClasif; use ATManager\BackendBundle\Form\EstadioClasifType; class EstadioClasifController extends Controller { publ...
atmanager/atmanager
src/ATManager/BackendBundle/Controller/EstadioClasifController.php
PHP
mit
3,732
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.Graph.RBAC.Fluent { using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.Management.Graph.R...
hovsepm/azure-libraries-for-net
src/ResourceManagement/Graph.RBAC/Domain/InterfaceImpl/RoleAssignmentImpl.cs
C#
mit
7,241