repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
minemidnight/eris-additions | lib/Role/addable.js | 362 | module.exports = Eris => {
Object.defineProperty(Eris.Role.prototype, "addable", {
get: function() {
const clientMember = this.guild.members.get(this.guild.shard.client.user.id);
return clientMember.permission.has("manageRoles") && clientMember.highestRole.higherThan(this);
}
});
};
module.exports.deps = [... | mit |
neowutran/Nuitinfo | nuitinfo/protected/common/extensions/EGMap/EGMapRectangle.php | 7952 | <?php
/**
*
* EGMapRectangle
* A GoogleMap Rectangle
*
* @author Antonio Ramirez Cobos
*
* Example:
*
* $bounds = new EGMapBounds(new EGMapCoord(25.774252, -80.190262),new EGMapCoord(32.321384, -64.75737) );
* $rec = new EGMapRectangle($bounds);
* $rec->addHtmlInfoWindow(new EGMapInfoWindow('Hey! I am a rec... | mit |
Caroga/AngularBOX | Gruntfile.js | 4128 | module.exports = function (grunt) {
grunt.initConfig({
//Read package information
pkg: grunt.file.readJSON('package.json'),
bower: {
install: {
options: {
targetDir: './vendor',
install: true,
verbose: t... | mit |
dalezak/Saskatoon_AED_Locations | hooks/after_platform_add/010_install_sim.js | 458 | #!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var root = process.argv[2];
var platform = process.env.CORDOVA_PLATFORMS;
function puts(error, stdout, stderr) {
console.log(stdout);
}
function installCordovaIosSim() {
process.stdout.write("install... | mit |
apixphp/restapixlib | src/apix/bin/commands/execution/services/socialize.php | 1433 | <?php
namespace Src\App\__projectName__\V1\Config;
class Socialize
{
/**
* project socialize git repo config.
*
* static call git repo settings for every service.
* @return array
*/
public static function gitRepo()
{
return [
'remote'=>[
'origi... | mit |
G43riko/JavaUtils | GLib2/src/main/java/org/utils/logger/GLogger.java | 3145 | package org.utils.logger;
import org.utils.enums.Keys;
import java.io.PrintStream;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
public class GLogger {
private static final List<Wrapper> logs = new LinkedList<>();
private static PrintStream logStream;
pri... | mit |
nsanitate/DefinitelyTyped | slickgrid/SlickGrid.d.ts | 51048 | // Type definitions for SlickGrid 2.1.0
// Project: https://github.com/mleibman/SlickGrid
// Definitions by: Josh Baldwin <https://github.com/jbaldwin/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/*
SlickGrid-2.1.d.ts may be freely distributed under the MIT license.
Copyright (c) 2013 Josh Baldwin... | mit |
TheOpenCloudEngine/metaworks | metaworks3/src/main/java/org/metaworks/component/MenuGroup.ejs.js | 625 | var org_metaworks_component_MenuGroup = function(objectId, className){
this.objectId = objectId;
this.className = className;
this.objectDivId = mw3._getObjectDivId(this.objectId);
this.objectDiv = $('#' + this.objectDivId);
this.object = mw3.objects[this.objectId];
// make menu groups for ArrayFace.ejs
var g... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_api_management/lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/error_field_contract.rb | 1778 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ApiManagement::Mgmt::V2018_06_01_preview
module Models
#
# Error Field contract.
#
class ErrorFieldContract
include M... | mit |
sysid/kg | rain/data_augmentation_test.py | 2909 | # -*- coding: utf-8 -*-
"""
@author: Aaron Sim
Kaggle competition: How Much Did It Rain II
'Dropin' augmentation of test data
"""
import gc
import numpy as np
import pandas as pd
dpath = "./data/rain/"
INPUT_WIDTH = 19 # Any length >= 19, which is the max no. of time obs per hour
#NUM_RAND = 61 # No. of augmented sam... | mit |
surevine/spiffing | src/classification.cc | 2482 | /***
Copyright 2014-2015 Dave Cridland
Copyright 2014-2015 Surevine Ltd
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, ... | mit |
JavadRasouli/angular2-persian-utils | src/services/national-code.service.ts | 1249 | import { Injectable } from '@angular/core';
@Injectable()
export class NationalCodeService {
constructor() { }
isValid(nationalCode: string): boolean {
return this.vlaidate(nationalCode);
}
private vlaidate(nationalCode: string): boolean {
if (nationalCode == undefined)
return false;
if ... | mit |
michakpl/ContactManager | spec/models/person_spec.rb | 913 | require 'rails_helper'
RSpec.describe Person, type: :model do
let(:person) { Fabricate(:person) }
it 'is invalid without a first name' do
person.first_name = nil
expect(person).not_to be_valid
end
it 'is invalid without a last name' do
person.last_name = nil
expect(person).not_to be_valid
end
... | mit |
wulkano/kap | renderer/components/config/tab.js | 5310 | import React from 'react';
import PropTypes from 'prop-types';
import Linkify from 'react-linkify';
import Item, {Link} from '../preferences/item';
import Select from '../preferences/item/select';
import Switch from '../preferences/item/switch';
import ColorPicker from '../preferences/item/color-picker';
import {OpenO... | mit |
janssonav/ngx-datatable | release/directives/visibility.directive.js | 2329 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
/**
* Visibility Observer Directive
*
* Usage:
*
* <div
* visibilityObserver
* (visible)="onVisible($event)">
* </div>
*
*/
var VisibilityDirective = (function () {
function Visibi... | mit |
kyasar/mapis | src/main/java/com/cherchy/markod/repository/CategoryRepository.java | 384 | package com.cherchy.markod.repository;
import com.cherchy.markod.model.Category;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CategoryRepository extends MongoRepository<Category, String> {
... | mit |
jesprider/cmove | gulpfile.js | 187 | var gulp = require('gulp'),
uglify = require('gulp-uglify');
gulp.task('compress', function() {
gulp.src('lib/*.js')
.pipe(uglify())
.pipe(gulp.dest('dist'))
}); | mit |
lxy528/Benchmark | src/main/java/securibench/micro/basic/Basic19.java | 1576 | /**
@author Benjamin Livshits <livshits@cs.stanford.edu>
$Id: Basic19.java,v 1.7 2006/04/04 20:00:40 livshits Exp $
*/
package securibench.micro.basic;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.servlet.http... | mit |
freeformsystems/jsr-conf | lib/runtime.js | 1357 | /**
* Directives that may be modified at runtime using
* CONFIG SET.
*
* See: config.c
*/
var runtime = [
'dbfilename',
'requirepass',
'masterauth',
'maxmemory',
'maxclients',
'hz',
'maxmemory-policy',
'maxmemory-samples',
'timeout',
'tcp-keepalive',
'appendfsync',
'no-appendfsync-on-rew... | mit |
aaronjbaptiste/snap-pad | app/models/BaseModel.php | 412 | <?php
class BaseModel extends Eloquent {
protected $errors;
public function validate()
{
$validation = Validator::make($this->getAttributes(), static::$rules);
if ($validation->fails()) {
$this->errors = $validation->messages();
return false;
}
ret... | mit |
stpettersens/full-monkey | src/main.rs | 5105 | /*
Full Monkey.
Generic preprocessor tool.
Copyright 2016 Sam Saint-Pettersen.
Released under the MIT/X11 License.
*/
extern crate clioptions;
extern crate regex;
use clioptions::CliOptions;
use regex::Regex;
use std::io::{BufRead, BufReader, Write};
use std::fs::File;
use std::process::exit;
fn prep... | mit |
kmc7468/Luce | Include/Luce/System/Detail/UnitType.hh | 1857 | #ifndef LUCE_HEADER_SYSTEM_DETAIL_UNITTYPE_HH
#define LUCE_HEADER_SYSTEM_DETAIL_UNITTYPE_HH
#if LUCE_MACRO_SUPPORTED_RVALUE_REF
#include <utility>
#endif
namespace Luce
{
namespace System
{
#if LUCE_MACRO_SUPPORTED_CONSTEXPR
LUCE_MACRO_CONSTEXPR UnitType::UnitType() LUCE_MACRO_NOEXCEPT
: Value_(static_cast<Enu... | mit |
Permafrost/Tundra | code/source/tundra/collection/map/object.java | 11090 | package tundra.collection.map;
// -----( IS Java Code Template v1.2
// -----( CREATED: 2021-09-30 05:50:25 AEST
// -----( ON-HOST: -
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <<IS-START-IMPORTS>> ---
import java.util.Ma... | mit |
LouisStAmour/proj4rb19 | test/test_units.rb | 1212 | $: << 'lib' << 'ext'
require File.join(File.dirname(__FILE__), '..', 'lib', 'proj4')
require 'test/unit'
if Proj4::LIBVERSION >= 449
class UnitsTest < Test::Unit::TestCase
def test_get_all
units = Proj4::Unit.list.sort.collect{ |u| u.id }
assert units.index('km')
assert... | mit |
wyrover/SharpDX | Source/Toolkit/SharpDX.Toolkit/Graphics/SpriteFontDataContentReader.cs | 1611 | // Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// 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, modif... | mit |
xgundam05/vox-to-obj | scripts/voxel/magicaVoxel.js | 3653 | // MagicaVoxel File Loader Module
// ===============================
var fs = require('fs');
var voxmodel = require('./voxModel.js');
// Helper Objects
function MVoxChunk(i, s, cs, c, ch){
this.id = i;
this.size = s;
this.childrenSize = cs;
this.contents = c;
this.children = ch;
}
// Load from a file
funct... | mit |
demandchain/test_support | spec/lib/test_support/pretty_formatter_spec.rb | 22894 | require 'spec_helper'
require ::File.expand_path("../../../lib/test_support/pretty_formatter", File.dirname(__FILE__))
describe TestSupport::PrettyFormatter do
let(:formatted_string) { "#<AClass\nmy_variable = \"a value \",\n \"another\"=0>" }
let(:simple_class) { "#<AClass>" }
let(:simple_variable) { "#<AClass ... | mit |
Em-Ant/fcc-options-app | app/routes/report.js | 495 | 'use strict';
var express = require('express');
var router = express.Router();
var Controller = require('../controllers/reportHandler.js');
var controller = new Controller();
var isLoggedIn = require('../auth/ensureAuth.js').isLoggedIn;
//retrieves all routes
router.get('/vehicles', isLoggedIn, controller.vehiclesRe... | mit |
rsheftel/pandas_market_calendars | tests/test_ose_calendar.py | 5245 | """
Currently only 2017, 2018 and 2019 dates are confirmed.
Dates based on:
- (not this is for OBX and Equity Derivatives)
https://www.oslobors.no/obnewsletter/download/1e05ee05a9c1a472da4c715435ff1314/file/file/Bortfallskalender%202017-2019.pdf
- https://www.oslobors.no/ob_eng/Oslo-Boers/About-Osl... | mit |
tokenly/xchain-client | src/Exception/XChainException.php | 342 | <?php
namespace Tokenly\XChainClient\Exception;
use Exception;
/*
* XChainException
*/
class XChainException extends Exception
{
public function setErrorName($account_error_name) {
$this->account_error_name = $account_error_name;
}
public function getErrorName() {
return $this->account_... | mit |
svlcode/HomeManager | sources/HomeManager/HomeManager.GUI/Views/Base/BaseActionView.cs | 1767 | using System;
using System.Data;
using System.Windows.Forms;
using HomeBudget.Dao;
using HomeBudget.Forms;
using HomeManager.GUI.Enums;
using HomeManager.Model.Dao.Impl;
namespace HomeBudget.Views.Base
{
public abstract class BaseActionView
{
public abstract string Caption { get; }
public abst... | mit |
jadget/jadget-exception | src/test/java/net/jadget/exception/OverlappingScopes3.java | 806 | package net.jadget.exception;
import net.jadget.exception.ErrorCode;
import net.jadget.exception.ErrorCodes;
import net.jadget.exception.Range;
public enum OverlappingScopes3 implements ErrorCode {
SOME_ERROR(1, "SomeError")
;
@Override
public int offset() {
return code;
}
@Ove... | mit |
luckysailor/broker | lib/broker/version.rb | 38 | module Broker
VERSION = "0.1.2"
end
| mit |
SuperbCoders/superb_text_constructor | lib/superb_text_constructor/engine.rb | 655 | module SuperbTextConstructor
class Engine < ::Rails::Engine
isolate_namespace SuperbTextConstructor
initializer 'superb_text_constructor.view_helpers' do |app|
ActionView::Base.send :include, SuperbTextConstructor::ViewHelpers::RenderBlocksHelper
ActionView::Base.send :include, SuperbTextConstruc... | mit |
Sedatb23/DiscordBot | src/VoiceUDPClient.js | 2835 | const dgram = require('dgram');
const dns = require('dns');
class VoiceUDPClient {
constructor(voiceClient) {
this._bot = voiceClient._bot;
this._voiceClient = voiceClient;
}
initConnection(data) {
this._socket = dgram.createSocket('udp4');
this._socket.once('message', mess... | mit |
coolsgupta/machine_learning_nanodegree | Model_Evaluation_and_Validation/evaluation_metrics/precision_vs_recall.py | 1439 | # As with the previous exercises, let's look at the performance of a couple of classifiers
# on the familiar Titanic dataset. Add a train/test split, then store the results in the
# dictionary provided.
import numpy as np
import pandas as pd
# Load the dataset
X = pd.read_csv('titanic_data.csv')
X = X._get_numeric_d... | mit |
EdLeming/echidna | echidna/output/plot.py | 3068 | from mpl_toolkits.mplot3d import Axes3D
import pylab
import numpy
def _produce_axis(low, high, bins):
""" This method produces an array that represents the axis between low and
high with bins.
Args:
low (float): Low edge of the axis
high (float): High edge of the axis
bins (int): Number... | mit |
platoon-djs/platoon-se | app/views/emails/e-request.php | 4576 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head lang="sv">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style typ... | mit |
kenny-nelson/GomiBako | Tools/NayaNET/Naya/MainViewModel.cs | 2409 | //-----------------------------------------------------------------------
// <copyright file="MainViewModel.cs" company="none">
// Copyright (c) kenny-nelson All Rights Reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Naya
{
using System;
using Syst... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_batchai/lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_provisioning_state.rb | 481 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::BatchAI::Mgmt::V2018_03_01
module Models
#
# Defines values for FileServerProvisioningState
#
module FileServerProvisioningS... | mit |
aaronsaray/tell-me-about-my-browser | src/Util/Di.php | 1398 | <?php
/**
* The custom Dependency injection extension of Pimple
*
* @author Aaron Saray
*/
namespace AboutBrowser\Util;
/**
* Class Di
* @package AboutBrowser\Util
*/
class Di extends \Pimple\Container
{
/**
* @var \AboutBrowser\Util\Di
*/
protected static $instance;
/**
* Get the i... | mit |
facash/facoin | contrib/qt_translations.py | 612 | #!/usr/bin/env python
# Helpful little script that spits out a comma-separated list of
# language codes for Qt icons that should be included
# in binary facoin distributions
import glob
import os
import re
import sys
if len(sys.argv) != 3:
sys.exit("Usage: %s $QTDIR/translations $FACOINDIR/src/qt/locale"%sys.argv[... | mit |
rflynn/radixtree | src/example.py | 141 | # ex: set ts=4 et:
from radixtree import RadixTree, URLTree
r = RadixTree()
r.insert('foo.bar')
r.insert('foo')
r.insert('baz')
print r
| mit |
2Gramm/jQueryUIBundle | ZweigrammJQueryUIBundle.php | 299 | <?php
namespace Zweigramm\JQueryUIBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Class ZweigrammJQueryUIBundle
*
* @package Zweigramm\JQueryUIBundle
* @copyright 2Gramm Werbeagentur 2013
* @link http://www.2gramm.com
*/
class ZweigrammJQueryUIBundle extends Bundle
{
} | mit |
nosenseworrying/xmlsoccer | spec/spec_helper.rb | 62 | require 'xml_soccer'
RSpec.configure do |config|
end | mit |
moonglum/dncts | features/step_definitions/basic_steps.rb | 5223 | require "./features/support/server"
require "./features/support/graphs"
server = Server.instance
Given(/^player "(.*)" registered$/) do |player_name|
server.create_player(player_name)
end
Given(/^lobby "(.*)" was created$/) do |lobby_name|
server.create_lobby(lobby_name)
end
When(/^player "(.*)" joins lobby "(.... | mit |
frptools/collectable | packages/map/tests/getSize.ts | 655 | import test from 'ava';
import { empty, remove, set, size } from '../src';
test('returns 0 when the map empty', t => {
t.is(size(empty()), 0);
});
test('returns the correct size after adding entries', t => {
var map1 = set('x', 1, empty());
var map2 = set('x', 2, map1);
var map3 = set('y', 1, map1);
t.is(si... | mit |
MiguelMendonca/project-template | api/src/routes/hello.js | 850 | var server = require('./../index.js')
var resources = require('./../resources')
server.route({
method: 'GET',
path: '/hello',
handler: resources.hello.get
})
server.route({
method: 'POST',
path: '/hello',
handler: resources.hello.post
})
server.route({
method:'POST',
path: '/login',
handler: resource... | mit |
gubenkovalik/vgchat | resources/views/emails/confirmation.blade.php | 221 | <html>
<body>
<h3>Ссылка для подтверждения: <br/><a href="https://jencat.ml/confirmation/{{$token}}" target="_blank">https://jencat.ml/confirmation/{{$token}}</a></h3>
</body>
</html> | mit |
nicklandgrebe/caprese | spec/response_document_spec.rb | 34481 | require 'spec_helper'
describe 'Resource document structure', type: :request do
let!(:comments) { create_list :comment, 3 }
describe 'non-JSON url' do
before { get "/api/v1/static" }
it 'responds' do
expect(response.status).to eq(200)
end
it 'does not force a JSON resource document' do
... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/models/recommendation_rule.rb | 7448 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Web::Mgmt::V2016_03_01
module Models
#
# Represents a recommendation rule that the recommendation engine can
# perform.
#
... | mit |
Icenium/SignalR | SignalR.ServiceBus/IOThreadTimer.cs | 20521 | namespace SignalR.ServiceBus
{
using System;
using System.ComponentModel;
using System.Globalization;
using System.Threading;
using Microsoft.Win32.SafeHandles;
class IOThreadTimer
{
const int maxSkewInMillisecondsDefault = 100;
static long systemTimeResolutionTicks = -1;
... | mit |
rsdebest/pingtool | public/modules/checks/controllers/checks.client.controller.js | 1149 | 'use strict';
angular.module('checks').controller('ChecksController', ['$scope', '$http', 'Socket', '$location',
function($scope, $http, Socket, $location) {
this.init = function(){
$scope.checks = [];
$scope.totalChecks = $scope.checks.length;
// Refactor to a service...
this.fetchChecks();
if($l... | mit |
cschwarz/AppShell | src/AppShell.NativeMaps.Mobile.Android/Resources/Resource.Designer.cs | 237152 | #pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerate... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-08-01/generated/azure_mgmt_network/models/managed_rule_set.rb | 2296 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2019_08_01
module Models
#
# Defines a managed rule set.
#
class ManagedRuleSet
include MsRestAzure
... | mit |
liuyang1/toy264 | h261/test.py | 167 | import sys
sys.path.append("..")
print(sys.path)
import bin
import h261
fn = "video.261"
data = open(fn, "rb").read()
pic = h261.Picture(data)
print(pic)
pic.dump()
| mit |
patrick-russell/fullcontacter | fullcontacter/lookup.py | 1126 | '''
Fullcontacter: A wrapper for the excellent and helpful Fullcontact.com APIs
Fullcontacter version 0.3
Utility module that uses requests to do the heavy lifting and get the data for further handling
'''
import requests
#configuration
API_VERSION = 'v2'
END_POINT = 'https://api.fullcontact.com/{0}/'.format(API_V... | mit |
jleeothon/tknz | tknz/grammar/TknzParser.java | 19851 | // Generated from tknz\grammar\Tknz.g4 by ANTLR 4.5
package tknz.grammar;
import java.util.TreeMap;
import tknz.core.Automaton;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.ut... | mit |
rcalderonpy/PaginaSimons | src/PersonalBundle/Controller/DefaultController.php | 1288 | <?php
namespace PersonalBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use PersonalBundle\Form\EmpresaType;
use PersonalBundle\Entity\Empresa;
class DefaultController extends Controller
{
public function indexAction(){
return $t... | mit |
AndCake/zino | src/zino-light.js | 3331 | import {isObj, toArray, identity} from './utils';
import * as browser from './browser';
import {Zino, actions, setDocument, setComponentLoader} from './facade';
import {setDataRegistry} from './core';
let urlRegistry = window.zinoTagRegistry || {},
dirtyTags = [],
mountTags = [],
parseCode = identity,
tagObserver ... | mit |
k3v/dfx-and-more | src/ast/power.cc | 2936 | #include <math.h>
#include "dfxam.h"
using namespace dfxam::ast;
Power::Power(Expression* left, Expression* right)
: BinaryOperator(left, right) {}
// (f(x) ^ g(x))' = (e ^ ln(f(x) ^ g(x))) * (g(x)ln(f(x)))'
Expression* Power::derivative(repl::ExecutionEngine* eng, Function* respect) {
auto left = new Powe... | mit |
jbejar/QuietStreets | userscripts/QuietStreets - Booking.com.user.js | 1489 | // ==UserScript==
// @name QuietStreets - Booking.com
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Embed Crimereports.com
// @author jbejar
// @match https://www.booking.com/hotel/us/*
// @grant none
// ==/UserScript==
var address = $("span.hp_addres... | mit |
danlo/RSS-Collector | lib/index.js | 12614 | /**
* @author wilburlo@gmail.com Daniel Lo
* @license MIT License. See LICENSE.txt
*/
/*jslint devel: true, undef: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
/*global __dirname, require, setTimeout, clearTimeout */
"use strict";
var redis = require('redi... | mit |
xiaohuihuigh/cpp | acm/hdu/1434.cpp | 1222 | #include<bits/stdc++.h>
using namespace std;
#define sa(x) scanf("%d",&x)
const int maxn = 10005;
struct node{
string name;
int rp;
bool operator < (const node a) const {
if(rp == a.rp)return name<a.name;
return rp>a.rp;
}
}g;
int main(){
string a;
int n,m;
while(cin>>n>>m){... | mit |
EusthEnoptEron/Sketchball | Sketchball/Controls/ElementControl.Designer.cs | 1351 | namespace Sketchball.Controls
{
partial class ElementControl
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summar... | mit |
cdnjs/cdnjs | ajax/libs/tinymce/5.6.0/plugins/print/plugin.min.js | 847 | /**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.6.0 (2020-11-18)
*/
!function(){"use strict";var n=tinym... | mit |
vkolova/bgscena | wp-content/themes/Activello-master/inc/widgets/widget-instagram.php | 3381 | <?php
/**
* instagram Widget
* activello Theme
*/
class activello_instagram_widget extends WP_Widget
{
function activello_instagram_widget(){
$widget_ops = array('classname' => 'activello-instagram','description' => esc_html__( "activello instagram Widget" ,'activello') );
parent::__construct(... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb | 1248 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Storage::Mgmt::V2017_10_01
module Models
#
# The List service SAS credentials operation response.
#
class ListServiceSasResp... | mit |
dobakat/SharpMapTracker | TibiaCastDownloader/Properties/AssemblyInfo.cs | 1450 | 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: AssemblyTi... | mit |
MironovDmitry/dashing.net | src/dashing.net.jobs/TotalRequests.cs | 1552 | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading;
using MySql.Data.MySqlClient;
using dashing.net.common;
using dashing.net.streaming;
namespace dashing.net.jobs
{
[Export(typeof(IJob... | mit |
Azure/azure-sdk-for-ruby | data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/groups.rb | 42479 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::GraphRbac::V1_6
#
# The Graph RBAC Management Client
#
class Groups
include MsRestAzure
#
# Creates and initializes a new... | mit |
NikolaySpasov/Softuni | C# Advanced/01. Stacks-And-Queues/06. Math Potato/Properties/AssemblyInfo.cs | 1401 | 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("06.... | mit |
vektordev/javagames | src/client/ErrorWindow.java | 873 | package client;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
public class ErrorWindow extends JFrame {
public ErrorWindow(String enam... | mit |
sarahyablok/go-force | force/force_test.go | 1708 | package force
import (
"github.com/nimajalali/go-force/sobjects"
"testing"
"net/http"
)
func TestCreateWithAccessToken(t *testing.T) {
// Manually grab an OAuth token, so that we can pass it into CreateWithAccessToken
oauth := &forceOauth{
clientId: testClientId,
clientSecret: testClientSecret,
user... | mit |
cdnjs/cdnjs | ajax/libs/hls.js/1.1.2-0.canary.8062/hls.js | 993248 | typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... | mit |
cdnjs/cdnjs | ajax/libs/buefy/0.9.14/esm/progress.js | 6567 | import { _ as _defineProperty } from './chunk-2452e3d3.js';
import './helpers.js';
import { c as config } from './chunk-8cad1844.js';
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
import { P as ProviderParentMixin, I as InjectedChildMixin } from './chunk-91404fa9.js';
... | mit |
cdnjs/cdnjs | ajax/libs/json-editor/1.0.0/jsoneditor.js | 287278 | /*! JSON Editor v0.7.28 - JSON Schema -> HTML Editor
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
* Released under the MIT license
*
* Date: 2016-08-07
*/
/**
* See README.md for requirements and usage info
*/
(function() {
/*jshint loopfunc: true */
/* Simple JavaScript Inheritance
* By John Res... | mit |
cdnjs/cdnjs | ajax/libs/boosted/4.1.1/js/boosted.js | 163484 | /*!
* Boosted v4.1.1 (http://boosted.orange.com)
* Copyright 2014-2018 The Boosted Authors
* Copyright 2014-2018 Orange
* Licensed under MIT (https://github.com/orange-opensource/orange-boosted-bootstrap/blob/master/LICENSE)
* This a fork of Bootstrap : Initial license below
* Bootstrap v4.1.0 (https://getb... | mit |
cdnjs/cdnjs | ajax/libs/san/3.8.3/san.modern.js | 268004 | /**
* Copyright (c) Baidu Inc. All rights reserved.
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file San 主文件
*/
(function (root) {
// 人工调整打包代码顺序,通过注释手工写一些依赖
// // require('./util/guid');
// // require('./util/empty');
/... | mit |
fedspendingtransparency/data-act-broker-backend | tests/unit/dataactvalidator/test_fabs16_detached_award_financial_assistance.py | 3604 | from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'fabs16_detached_award_financial_assistance'
def test_column_headers(database):
expected_subset = {'row_number', 'legal_entity_country... | cc0-1.0 |
lfreneda/cepdb | api/v1/69905166.jsonp.js | 138 | jsonp({"cep":"69905166","logradouro":"Rua Nilo Bezerra","bairro":"Baixada da Habitasa","cidade":"Rio Branco","uf":"AC","estado":"Acre"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/06145126.jsonp.js | 144 | jsonp({"cep":"06145126","logradouro":"Rua Celso Daniel","bairro":"Concei\u00e7\u00e3o","cidade":"Osasco","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/13848767.jsonp.js | 162 | jsonp({"cep":"13848767","logradouro":"Rua Benedita Barbosa de Souza","bairro":"Jardim Eldorado","cidade":"Mogi Gua\u00e7u","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/88807173.jsonp.js | 169 | jsonp({"cep":"88807173","logradouro":"Rua Maria Borges da Silva","bairro":"Vila S\u00e3o Sebasti\u00e3o","cidade":"Crici\u00fama","uf":"SC","estado":"Santa Catarina"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/25270510.jsonp.js | 150 | jsonp({"cep":"25270510","logradouro":"Avenida Tr\u00eas de Maio","bairro":"Taquara","cidade":"Duque de Caxias","uf":"RJ","estado":"Rio de Janeiro"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/07846080.jsonp.js | 138 | jsonp({"cep":"07846080","logradouro":"Rua Holanda","bairro":"Vila Bela","cidade":"Franco da Rocha","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/19025520.jsonp.js | 177 | jsonp({"cep":"19025520","logradouro":"Rua Eduardo Rodrigues de Freitas","bairro":"Parque S\u00e3o Matheus","cidade":"Presidente Prudente","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/36309372.jsonp.js | 153 | jsonp({"cep":"36309372","logradouro":"Rua A-1","bairro":"Vila S\u00e3o Bento","cidade":"S\u00e3o Jo\u00e3o Del Rei","uf":"MG","estado":"Minas Gerais"});
| cc0-1.0 |
educobuci/gamelauncher | javascript/main.js | 1961 | const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window... | cc0-1.0 |
lfreneda/cepdb | api/v1/12244615.jsonp.js | 163 | jsonp({"cep":"12244615","logradouro":"Rua Serra das Vertentes","bairro":"Urbanova","cidade":"S\u00e3o Jos\u00e9 dos Campos","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/78635000.jsonp.js | 85 | jsonp({"cep":"78635000","cidade":"\u00c1gua Boa","uf":"MT","estado":"Mato Grosso"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/07856040.jsonp.js | 155 | jsonp({"cep":"07856040","logradouro":"Viela Vinte e Sete","bairro":"Parque Vit\u00f3ria","cidade":"Franco da Rocha","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/88122435.jsonp.js | 168 | jsonp({"cep":"88122435","logradouro":"Rua Jos\u00e9 Martins Neto","bairro":"Sert\u00e3o do Maruim","cidade":"S\u00e3o Jos\u00e9","uf":"SC","estado":"Santa Catarina"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/24942300.jsonp.js | 164 | jsonp({"cep":"24942300","logradouro":"Rua Francisco Thomas da Silva","bairro":"Ino\u00e3 (Ino\u00e3)","cidade":"Maric\u00e1","uf":"RJ","estado":"Rio de Janeiro"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/71010230.jsonp.js | 152 | jsonp({"cep":"71010230","logradouro":"Quadra QI 2 Conjunto X","bairro":"Guar\u00e1 I","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/01420903.jsonp.js | 148 | jsonp({"cep":"01420903","logradouro":"Alameda Ja\u00fa","bairro":"Jardim Paulista","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/05503070.jsonp.js | 144 | jsonp({"cep":"05503070","logradouro":"Rua C. Phisalix","bairro":"Butant\u00e3","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/12900410.jsonp.js | 156 | jsonp({"cep":"12900410","logradouro":"Rua Coronel Ladislau Leme","bairro":"Centro","cidade":"Bragan\u00e7a Paulista","uf":"SP","estado":"S\u00e3o Paulo"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/40230074.jsonp.js | 131 | jsonp({"cep":"40230074","logradouro":"Vila Verde","bairro":"Federa\u00e7\u00e3o","cidade":"Salvador","uf":"BA","estado":"Bahia"});
| cc0-1.0 |
lfreneda/cepdb | api/v1/66055171.jsonp.js | 135 | jsonp({"cep":"66055171","logradouro":"Rua Diogo M\u00f3ia","bairro":"Umarizal","cidade":"Bel\u00e9m","uf":"PA","estado":"Par\u00e1"});
| cc0-1.0 |