repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
flowtype/flow-typed | definitions/npm/cookie_v0.3.x/flow_v0.104.x-/cookie_v0.3.x.js | 711 | type SerializeOptions = {
domain?: string,
encode?: (stringToDecode: string) => string,
expires?: Date,
httpOnly?: boolean,
maxAge?: number,
path?: string,
sameSite?: boolean | 'lax' | 'strict',
secure?: boolean,
...
};
type ParseOptions = { // Library itself does not specify output for decode functi... | mit |
jmptrader/JRIAppTS | RIAppDemo/RIAPP.DataService/Utils/STAThreadSync/StaSynchronizationContext.cs | 1996 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Security.Permissions;
namespace StaThreadSyncronizer
{
[SecurityPermission(SecurityAction.Demand, ControlThread = true)]
public class StaSynchronizationContext : SynchronizationContext, IDi... | mit |
xieta/mincoin | src/qt/locale/bitcoin_sv.ts | 124283 | <TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Högerklicka för att ändra adressen eller etiketten.</translation>
</message>
<message>
<source>Create a new address</source>
... | mit |
stanwmusic/bootstrap | js/src/dom/selector-engine.js | 2277 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.3.1): dom/selector-engine.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import { find as findFn, findOn... | mit |
42wim/matterircd | vendor/github.com/mattermost/mattermost-server/v5/shared/mlog/levels.go | 2097 | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package mlog
// Standard levels
var (
LvlPanic = LogLevel{ID: 0, Name: "panic", Stacktrace: true}
LvlFatal = LogLevel{ID: 1, Name: "fatal", Stacktrace: true}
LvlError = LogLevel{ID: 2, Name: "error"}
Lv... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/mathjax/1.1a/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:9e5db06495724b6fedb3e06776242c7ddb55da8532eb678a5a5b88757b8108df
size 1211
| mit |
zhaopei0418/maintain | src/main/resources/templates/payments/list.html | 23669 | <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
layout:decorate="layout">
<head>
<title>支付单管理</title>
</head>
<body>
<div layout:fragment="header">
<div class="title_left">
<h3>支付单查询</h3>
</div>
<div class="title_right">
<div class="c... | mit |
3sidedcube/react-native-navigation | lib/ios/RNNLayoutInfo.h | 304 | #import "RNNLayoutNode.h"
#import <Foundation/Foundation.h>
@interface RNNLayoutInfo : NSObject
- (instancetype)initWithNode:(RNNLayoutNode *)node;
@property(nonatomic, strong) NSString *componentId;
@property(nonatomic, strong) NSString *name;
@property(nonatomic, strong) NSDictionary *props;
@end
| mit |
ungdev/integration-UTT | app/Jobs/matchNewcomerGodfather.php | 750 | <?php
namespace App\Jobs;
use App\Classes\NewcomerMatching;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class matchNewcomerGodfather implements ShouldQueue
{
u... | mit |
N6UDP/LightweightInfluxDb | src/LightweightInfluxDb/ISeriesPoint.cs | 312 | using System;
using System.Collections.Generic;
namespace LightweightInfluxDb
{
public interface ISeriesPoint
{
string Name { get; }
Dictionary<string, string> Tags { get; }
List<string> Fields { get; }
List<object> Values { get; }
DateTime? Timestamp { get; }
}
} | mit |
aleju/ImageAugmenter | changelogs/master/improved/20200308_prefetching.md | 1925 | # Added Automatic Prefetching of Random Number Samples #634
This patch adds automatic prefetching of random samples,
which performs a single large random sampling call instead
of many smaller ones. This seems to improve the
performance of most augmenters by 5% to 40% for longer
augmentation sessions (50+ consecutive b... | mit |
DURAARK/microservice-sipgenerator | bindings/rosetta/app.js | 5477 | var spawn = require('child_process').spawn,
Promise = require('bluebird'),
uuid = require('node-uuid'),
path = require('path'),
fs = require('fs'),
mkdirp = require('mkdirp'),
_ = require('underscore'),
fs = require('fs'),
Sftp = require('sftp-upload');
var rosettaExecutable = path.join(__dirname, '../... | mit |
brunetto/sltools-dev | cmd/kiraWrap/kiraWrap.go | 1700 | package main
import (
"log"
"time"
"github.com/spf13/cobra"
"github.com/brunetto/goutils/debug"
"github.com/brunetto/sltools/slt"
)
var (
noGPU, tf, as, noBinaries bool
icsFileName string
intTime string
randomNumber string
)
var kiraWrapCmd = &cobra.Command{
Use: "kiraWrap",
Short: "Wrapper for th... | mit |
cs3250-team6/msubanner | src/main/java/edu/msudenver/cs3250/group6/msubanner/entities/Professor.java | 698 | package edu.msudenver.cs3250.group6.msubanner.entities;
/**
* The professor class.
*/
public final class Professor extends User {
/**
* Default constructor, creates blank professor.
*/
public Professor() {
}
/**
* Constructor.
*
* @param firstName professors first name
... | mit |
GerHobbelt/gulp-jison | LICENSE.md | 1098 | The MIT License (MIT)
Copyright (c) 2014 Matt Eckert <me@matteckert.com>
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 |
CharlieGreenman/pixelatorV2_with_react | app/js/_grid.js | 3948 | import elem from "./_elem.js";
import clrPckr from "./_color-picker.js";
var s, x, y, z,
colorNum = 0,
arrMap = [],
c = document.getElementById("canvasGrid"),
ctx = c.getContext("2d");
var grid = {
//create grid and create boxes
createGridIllustrator: () => {
//module for creating a g... | mit |
kellyrowland/openmc | tests/test_many_scores/test_many_scores.py | 212 | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.pardir)
from testing_harness import TestHarness
if __name__ == '__main__':
harness = TestHarness('statepoint.5.*', True)
harness.main()
| mit |
k-sheth/hapi-getting-started | tasks/test.js | 1713 | 'use strict';
//https://gist.github.com/yannickcr/6129327b31b27b14efc5
const instrumenter = require('isparta').Instrumenter;
module.exports = function (gulp, $, {src, testSrc, requires, coverageDir, disableCoverage}) {
const runTest = function runTest() {
return gulp.src(testSrc, {read: false})
... | mit |
chefspec/chefspec | examples/group/spec/create_spec.rb | 724 | require 'chefspec'
describe 'group::create' do
platform 'ubuntu'
describe 'creates a group with the default action' do
it { is_expected.to create_group('default_action') }
it { is_expected.to_not create_group('not_default_action') }
end
describe 'creates a group with an explicit action' do
it { i... | mit |
gvaish/objectify-appengine | javadoc/com/googlecode/objectify/cache/package-frame.html | 2711 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Wed Jan 25 23:03:17 EST 2012 -->
<TITLE>
com.googlecode.objectify.cache (Objectify-AppEngine Javadoc)
</TITLE>
<META NAME="date" CONTENT="201... | mit |
daryllabar/XrmUnitTest | DLaB.Xrm.Entities/OptionSets/QueueItem_ObjectTypeCode.cs | 3210 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------... | mit |
bertucho/moviestalk | venv/Scripts/activate.bat | 570 | @echo off
set VIRTUAL_ENV=c:\webs\moviestalk\venv
if not defined PROMPT (
set PROMPT=$P$G
)
if defined _OLD_VIRTUAL_PROMPT (
set PROMPT=%_OLD_VIRTUAL_PROMPT%
)
if defined _OLD_VIRTUAL_PYTHONHOME (
set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
)
set _OLD_VIRTUAL_PROMPT=%PROMPT%
set PROMPT=(venv) %PROMPT%
if... | mit |
vimeo/bosun | cmd/scollector/collectors/network_windows.go | 16465 | package collectors
import (
"fmt"
"math"
"regexp"
"strings"
"time"
"bosun.org/_third_party/github.com/StackExchange/wmi"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/slog"
)
func init() {
collectors = append(collectors, &IntervalCollector{F: c_network_windows, init: winNetworkInit})
c := &Interva... | mit |
biotcm/biotcm | bm/biotcm/bm_table.rb | 1478 | require_relative '../bm_helper'
RUN_TIMES = 10
MyBenchmark.group 'Table initialization' do |b|
# Current method used by Table#new
b.report('String#to_table') do
RUN_TIMES.times do
File.open('bm/fixtures/table_1.txt').read.to_table
end
end
b.report('Table#row:Hash') do
RUN_TIMES.times do
... | mit |
DMDcoin/Diamond | src/qt/walletview.h | 4689 | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_WALLETVIEW_H
#define BITCOIN_QT_WALLETVIEW_H
#include "amount.h"
#include "masternodelist.h"
#include <QS... | mit |
dplarson/gitlabhq | lib/github/representation/pull_request.rb | 3306 | module Github
module Representation
class PullRequest < Representation::Issuable
delegate :user, :repo, :ref, :sha, to: :source_branch, prefix: true
delegate :user, :exists?, :repo, :ref, :sha, :short_sha, to: :target_branch, prefix: true
def source_project
project
end
def ... | mit |
mozu-customer-success/Mozu.Integrations.Quickbooks | src/main/java/com/mozu/qbintegration/model/qbmodel/allgen/CheckModRsType.java | 5304 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.09.07 at 0... | mit |
sgpm-generator/sgpm-generator | singapore-gurkha-photography-museum/singapore-gurkhas-050116-gcspf-gurkha-contingent-archives-cbg-18.html | 8592 | <!DOCTYPE html>
<html>
<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> Singapore Gurkhas 050116 Gcspf Gurkha Contingent Archives Cbg 18</title>
<!-- URL Structures -->
<link rel="canonical" hr... | mit |
Lokidottir/ebnf-bff | ebnf-test/ebnf-test.hs | 645 | import Text.EBNF hiding (main)
import Text.EBNF.Informal (syntax)
import Text.EBNF.SyntaxTree
import Text.EBNF.Helper
import Text.EBNF.Build.Parser
import Text.EBNF.Build.Parser.Except
main :: IO ()
main = print . raiseBk
raiseBk :: SyntaxTree -> SyntaxTree
raiseBk = raise ((`elem` [
"defin... | mit |
gopheracademy/gcon | assets/public/2015/talks/dmitry-vyukov/index.html | 14704 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="GopherCon is organized by GopherAcademy... | mit |
hpi-swt2/workshop-portal | spec/features/event_spec.rb | 16955 | require 'rails_helper'
describe 'Event', type: :feature do
describe 'index page' do
it "should link to the show page when an event's read more button is clicked" do
event = FactoryGirl.create :event
visit events_path
click_link event.name
expect(page).to have_current_path(event_path(event... | mit |
chain24/ebayprocess-lumen | vendor/dts/ebay-sdk-php/src/Trading/Types/CheckoutStatusType.php | 3035 | <?php
/**
* The contents of this file was generated using the WSDLs as provided by eBay.
*
* DO NOT EDIT THIS FILE!
*/
namespace DTS\eBaySDK\Trading\Types;
/**
*
* @property \DTS\eBaySDK\Trading\Enums\PaymentStatusCodeType $eBayPaymentStatus
* @property \DateTime $LastModifiedTime
* @property \DTS\eBaySDK\Tra... | mit |
jiaaro/django-alert | alert/exceptions.py | 180 |
class CouldNotSendError(Exception): pass
class AlertIDAlreadyInUse(Exception): pass
class AlertBackendIDAlreadyInUse(Exception): pass
class InvalidApplicableUsers(Exception): pass | mit |
judovana/jenkins-scm-koji-plugin | fake-koji/src/main/java/org/fakekoji/core/utils/FileFileFilter.java | 1407 | /*
* The MIT License
*
* Copyright 2015 user.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | mit |
instantchow/home-assistant | homeassistant/components/media_player/universal.py | 13920 | """
Combination of multiple media players into one for a universal controller.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.universal/
"""
import logging
# pylint: disable=import-error
from copy import copy
from homeassistant.components.... | mit |
revile/fastlane | spaceship/spec/test_flight/client_spec.rb | 10676 | require 'spec_helper'
require_relative '../mock_servers'
##
# subclass the client we want to test so we can make test-methods easier
class TestFlightTestClient < Spaceship::TestFlight::Client
def test_request(some_param: nil, another_param: nil)
assert_required_params(__method__, binding)
end
def handle_res... | mit |
chaosagent/pandacoin | src/qt/aboutdialog.cpp | 1047 | #include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include "clientmodel.h"
#include "clientversion.h"
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2014;
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
... | mit |
willsimmons/markedit | node_modules/showdown/test/karlcow/code-4-spaces-escaping.html | 62 | <pre><code>10 PRINT < > &
20 GOTO 10
</code></pre> | mit |
barriquello/iotstack | openwsn-fw-work/firmware/openos/openwsn/03a-IPHC/iphc.h | 5314 | #ifndef __IPHC_H
#define __IPHC_H
/**
\addtogroup LoWPAN
\{
\addtogroup IPHC
\{
*/
#include "openwsn.h"
//=========================== define ==========================================
#define IPHC_DEFAULT_HOP_LIMIT 65
#define IPv6HOP_HDR_LEN 3
enum IPHC_enums {
IPHC_DISPATCH = 5,
IPH... | mit |
cucumber/cucumber-expressions-ruby | spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb | 863 | require 'yaml'
require 'json'
require 'cucumber/cucumber_expressions/cucumber_expression_tokenizer'
require 'cucumber/cucumber_expressions/errors'
module Cucumber
module CucumberExpressions
describe 'Cucumber expression tokenizer' do
Dir['testdata/tokens/*.yaml'].each do |testcase|
expectation = YA... | mit |
s1rius/fresco | static-webp/src/main/jni/static-webp/webp/webp_codec.cpp | 3114 | /*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <jni.h>
#include <webp/demux.h>
#include <webp/decode.h>
#include "exceptions.h"
#include "decoded_image.h"
#include "streams.h... | mit |
liks79/choosealicense.com | assets/css/application.css | 8612 | body {
background-image: url(../img/bg.jpg);
color: #5c5855;
font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a {
color: #149ad4;
font-weight: bold;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1, h2, h3, h5 {
color: #443a33;
font-family: Chivo, "Helvetica Neue"... | mit |
FBRTMaka/ooi-ui | ooiui/static/js/views/science/HighChartsStreamingDataView.js | 23076 | "use strict";
/*
* ooiui/static/js/views/science/HighChartsStreamingDataView.js
*/
var HighchartsStreamingContainerView = Backbone.View.extend({
subviews : [],
showControls: true,
initialize: function(options) {
if (options && 'showControls' in options){
this.showControls = options.show... | mit |
XinwLi/Interop-TestSuites-1 | ExchangeMAPI/Source/MS-OXCFXICS/Model/Model.cs | 359170 | [assembly: Microsoft.Xrt.Runtime.NativeType("System.Diagnostics.Tracing.*")]
namespace Microsoft.Protocols.TestSuites.MS_OXCFXICS
{
using Microsoft.Modeling;
using Microsoft.Protocols.TestSuites.Common;
/// <summary>
/// Model program.
/// </summary>
public static class Model
{
... | mit |
jamiboy16/bearded-ninja | public/app/components/home/homeController.js | 179 | /*
* homeController.js
* Jami Boy Mohammad
*/
var homeController = angular.module('homeController', []);
homeController.controller('homeController', function($scope) {
}); | mit |
maritaria/terratech-mod | src/Sylver.PreciseSnapshots/XMLSave.cs | 3819 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using System.Xml;
using System.Xml.Linq;
using System.IO;
using Nuterra;
namespace Sylver.PreciseSnapshots
{
public static class XMLSave
{
/// <summary>
/// Sa... | mit |
ikerib/sf2-instrucciones | src/Ikerib/IkasiBundle/Tests/Controller/QuestionControllerTest.php | 1945 | <?php
namespace Ikerib\IkasiBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class QuestionControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
... | mit |
166MMX/Dune-II---The-Maker | resources/tools/LogViewer/src/logviewer/LogReader.java | 2290 | package logviewer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
/**
*
* @author Rene Zwanenburg
*/
public final class LogReader
{
private LogReader(){}
public static ArrayList<Unit> readFile(File f) {
ArrayList<Unit> l = new ArrayList<... | mit |
eHealthExperts/gematik-specifications | README.md | 6689 | # gematik-specifications
Dieses Projekt bietet eine Java-Interpretation der gematik-AFOs, die in diversen gematik-Spezifikationen verteilt sind und durch gematik-Produkttypsteckbriefe querreferenziert werden. Die Umsetzung unterteilt die AFOs in jeweilige Namensräume (Java-Packages) und bietet global entsprechende API... | mit |
DragonBones/DragonBonesJS | Pixi/5.x/src/dragonBones/pixi/PixiTextureAtlasData.ts | 4172 | /**
* The MIT License (MIT)
*
* Copyright (c) 2012-2018 DragonBones team and other contributors
*
* 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... | mit |
navalev/azure-sdk-for-java | sdk/cognitiveservices/ms-azure-cs-computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java | 4218 | /**
* 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.
*/
package com.microsoft.azure.cognitiveservices.vision.computervision.models;
import java... | mit |
LukeTowers/oc-queencityhack2k17-site | plugins/rainlab/user/lang/it/lang.php | 10511 | <?php
return [
'plugin' => [
'name' => 'Utenti',
'description' => 'Gestione Utenti Front-End.',
'tab' => 'Utenti',
'access_users' => 'Gestisci Utenti',
'access_groups' => 'Gestisci Gruppi di Utenti',
'access_settings' => 'Gestisci Impostazioni Utenti'
],
'use... | mit |
QuiteQuiet/Pokemon-Showdown | data/aliases.js | 43883 | 'use strict';
/**@type {{[k: string]: string}} */
let BattleAliases = {
// formats
"randbats": "[Gen 8] Random Battle",
"uber": "[Gen 8] Ubers",
"ag": "[Gen 8] Anything Goes",
"mono": "[Gen 8] Monotype",
"randdubs": "[Gen 8] Random Doubles Battle",
"doubles": "[Gen 8] Doubles OU",
"dubs": "[Gen 8] Doubles OU",... | mit |
imasaru/sabbath-school-lessons | src/th/2021-01/01/01.md | 4127 | ---
title: วิกฤติด้านเอกลักษณ์
date: 26/12/2020
---
### อ่านข้อพระคัมภีร์สำหรับบทเรียนสัปดาห์นี้
อิสยาห์ 1:1-9; อิสยาห์ 1:10-17; อิสยาห์ 1:18; อิสยาห์ 1:19-31; อิสยาห์ 5:1-7
> <p>ข้อควรจำ</p>
> “พระยาห์เวห์ตรัสว่า ‘มาเถิด ให้พวกเราสู้ความกัน ถึงบาปของเจ้าเป็นเหมือนสีแดงเข้ม ก็จะขาวอย่างหิมะ ถึงมันจะแดงเหมือนผ้าแดงก็... | mit |
kataras/gapi | core/router/handler_execution_rules_test.go | 3347 | package router_test
import (
"testing"
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/core/router"
"github.com/kataras/iris/v12/httptest"
)
var (
finalExecutionRulesResponse = "1234"
testExecutionResponse = func(t *testing.T, app *iris.Application, path strin... | mit |
quantosobra/ember-data-table-light | tests/integration/components/data-table-test.js | 602 | import { moduleForComponent, test } from 'ember-qunit';
import wait from 'ember-test-helpers/wait';
import hbs from 'htmlbars-inline-precompile';
import startMirage from '../../helpers/setup-mirage';
moduleForComponent('data-table', 'Integration | Component | data table', {
integration: true,
setup: function() {
... | mit |
tf/pageflow | entry_types/scrolled/package/src/entryState/theme.js | 548 | import {useEntryStateConfig} from "./EntryStateProvider";
/**
* Returns an object containing theme asset paths.
*
* @example
*
* const theme = useTheme();
* theme // =>
* {
* assets: {
* logoDesktop: 'path/to/logoDesktop.svg',
* logoMobile: 'path/to/logoMobile.svg'
* },
* options:... | mit |
Wowu/WikiEduDashboard | spec/support/shared_contexts/survey_assignment.rb | 2341 | # frozen_string_literal: true
shared_context 'survey_assignment' do
before do
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.deliveries = []
@user = create(:user, username: 'Jonathan', email: 'jonathan@wintr.us')
@user2 = create(:user, u... | mit |
Donslayer/Introduction-to-programming-Javascript- | laptopWampInfoFiles/oppgave3/nas.proxy.php | 190 | <?php
header("Content-type: text/xml");
$fil = fopen("https://www.yr.no/sted/Norge/%C3%98stfold/Halden/Halden/varsel.xml","r")
while($linjer = fopen($fil)) {
echo $linjer;
}
?> | mit |
MCHacker/git | pack.sh | 857 | #!/bin/bash
set -e
cd "$(dirname "$0")"
git clean -f -d -x app web
echo ">> Prepare parameters.yml"
touch app/config/parameters.yml
if [ ! -f composer.phar ]; then
echo ">> Download composer"
curl -s http://getcomposer.org/installer | php
fi
echo ">> Install dependencies"
php composer.phar install --optimiz... | mit |
LukeWinikates/dotnet-toolbox | src/dotnet-toolbox.api/Query/ILatestPackagesIndex.cs | 219 | using System.Collections.Generic;
namespace dotnet_toolbox.api.Query {
public interface ILatestPackagesIndex
{
IEnumerable<string> Get();
void Update(long timestamp, string packageName);
}
} | mit |
b3j0f/simpleneed | www/www/css/style.css | 30 | .icons path {
fill: white;
}
| mit |
fate83/MailAdmin | app/controllers/users_controller.rb | 2318 | class UsersController < ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy]
# GET /users
# GET /users.json
def index
@users = current_admin.admin? ? User.all : current_admin.users
authorize! :read, User
@users.each do |user|
authorize! :read, user
end
... | mit |
aspyatkin/themis-quals-frontend | src/html/category-list.html | 418 | <% if (categories.length === 0) { %>
<p class="lead">No categories have been created yet.</p>
<% } else { %>
<% var sortedCategories = _.sortBy(categories, 'createdAt').reverse() %>
<% for (var i=0; i<sortedCategories.length; ++i) { %>
<% var category = sortedCategories[i] %>
<%= templates.categoryPartial({ _: _... | mit |
aanton03/language-list | data/nl_BE/language.php | 14046 | <?php return array (
'ab' => 'Abchazisch',
'ada' => 'Adangme',
'ady' => 'Adygees',
'om' => 'Afaan Oromo',
'aa' => 'Afar',
'afh' => 'Afrihili',
'af' => 'Afrikaans',
'agq' => 'Aghem',
'ain' => 'Ainu',
'ak' => 'Akan',
'akk' => 'Akkadisch',
'ach' => 'Akoli',
'bss' => 'Akoose',
'akz' => 'Alabama'... | mit |
relateiq/ews-java-api | src/main/java/microsoft/exchange/webservices/data/core/service/schema/ItemSchema.java | 24413 | /*
* The MIT License
* Copyright (c) 2012 Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use,... | mit |
kentaromiura/sugo | node_modules/wrapup/node_modules/prime/cov/node_modules/wrapup/lib/main.js | 145 | // this exports a "masked" version of the WrapUp class.
var WrapUp = require("./wrapup")
module.exports = function(x){
return new WrapUp(x)
}
| mit |
alu0100600643/Practica12 | lib/matriz.rb | 7713 | #Practica realizada por: Miguel Aurelio García González y Daura Hernández Díaz
#En esta practica desarrollamos tres clases, la clase Matriz, MatrizDensa y MatrizDispersa.
#La clase Matriz será la madre de las otras dos.
class Matriz
attr_accessor :m, :t
#definición del método initialize, donde crearemos la matriz... | mit |
mammix2/boostcoin-core | src/qt/overviewpage.cpp | 7949 | #include "overviewpage.h"
#include "ui_overviewpage.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "askpassphrasedialog.h"
#include "util.h"
#include <QAbstra... | mit |
mkwiatkowski/pythoscope | test/test_code_trees_manager.py | 4388 | import gc
import os.path
from mock import Mock
from pythoscope.code_trees_manager import CodeTreeNotFound, \
FilesystemCodeTreesManager
from pythoscope.store import CodeTree, Module
from assertions import *
from helper import TempDirectory
class TestFilesystemCodeTreesManager(TempDirectory):
def setUp(self... | mit |
inikoo/fact | libs/yui/yui3-gallery/src/gallery-datatable-row-expansion/assets/skins/sam/gallery-datatable-row-expansion-skin.css | 444 | .yui3-skin-sam .yui3-datatable tr.row-expansion td.post-row-expansion
{
border-top:1px solid #CBCBCB;
}
.yui3-skin-sam .yui3-datatable .row-toggle a.row-expand-nub
{
padding:0 8px;
height:14px;
margin-left:2px;
*display:inline-block;
}
.yui3-skin-sam .yui3-datatable .row-closed a.row-expand-nub
{
background:url(... | mit |
callemall/material-ui | packages/material-ui/src/TextareaAutosize/TextareaAutosize.js | 6538 | import * as React from 'react';
import PropTypes from 'prop-types';
import debounce from '../utils/debounce';
import useForkRef from '../utils/useForkRef';
import useEnhancedEffect from '../utils/useEnhancedEffect';
import ownerWindow from '../utils/ownerWindow';
function getStyleValue(computedStyle, property) {
ret... | mit |
benoitc/socketpool | socketpool/util.py | 4541 | # -*- coding: utf-8 -
#
# This file is part of socketpool.
# See the NOTICE for more information.
import errno
import os
import platform
import select
import socket
import sys
try:
from importlib import import_module
except ImportError:
import sys
def _resolve_name(name, package, level):
"""Retur... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.8.0/calendarnavigator/calendarnavigator.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:ec9603f026a2a1295d751178e7e48bf8b945506e9b05818112c5166e1e950a67
size 9557
| mit |
final-ci/travis-support | lib/travis/support/async.rb | 1467 | require 'thread'
require 'core_ext/module/prepend_to'
module Travis
module Async
require 'travis/support/async/inline'
require 'travis/support/async/sidekiq'
require 'travis/support/async/threaded'
class << self
attr_writer :enabled
def enabled?
!!@enabled
end
def r... | mit |
phpManufakturHeirs/kfBasic | Control/CMS/LEPTON/InstallSearch.php | 509 | <?php
/**
* kitFramework::Basic
*
* @author Team phpManufaktur <team@phpmanufaktur.de>
* @link https://kit2.phpmanufaktur.de
* @copyright 2013 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
namespace phpManufaktur\Basic\Control\CMS\LEPTON;
u... | mit |
Coding/Coding-iPad | CodingForiPad/Utility/ZLPhotoLib/ZLPhotoBrowser/Views/ZLPhotoPickerBrowserPhotoImageView.h | 734 | //
// ZLPhotoPickerBrowserPhotoImageView.h
// ZLAssetsPickerDemo
//
// Created by 张磊 on 14-11-14.
// Copyright (c) 2014年 com.zixue101.www. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol ZLPhotoPickerBrowserPhotoImageViewDelegate;
@interface ZLPhotoPickerBrowserPhotoIm... | mit |
darshanhs90/Java-Coding | src/Feb2021Leetcode/_1051HeightChecker.java | 390 | package Feb2021Leetcode;
import java.util.Arrays;
public class _1051HeightChecker {
public static void main(String[] args) {
System.out.println(heightChecker(new int[] { 1, 1, 4, 2, 1, 3 }));
System.out.println(heightChecker(new int[] { 5, 1, 2, 3, 4 }));
System.out.println(heightChecker(new int[] { 1, 2, 3, ... | mit |
watir/watirspec | pre_spec.rb | 4436 | # encoding: utf-8
require File.expand_path("../spec_helper", __FILE__)
describe "Pre" do
before :each do
browser.goto(WatirSpec.url_for("non_control_elements.html"))
end
# Exists method
describe "#exist?" do
it "returns true if the 'p' exists" do
expect(browser.pre(id: "rspec")).to exist
... | mit |
ericoporto/Pixel.Tools | color_conversion.js | 3896 | /**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green colo... | mit |
oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/CopyrightRounded.js | 915 | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-... | mit |
MarkUsProject/Markus | config/initializers/compressors.rb | 164 | if Rails.env.production?
Rails.application.config.assets.js_compressor = Uglifier.new(harmony: true)
Rails.application.config.assets.css_compressor = :sass
end
| mit |
ashnewport/elasticsearch | kibana-5.0.2-linux-x86_64/plugins/x-pack/plugins/monitoring/public/directives/shard_allocation/lib/labels.js | 1250 | /**
* ELASTICSEARCH CONFIDENTIAL
* _____________________________
*
* [2014] Elasticsearch Incorporated All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Elasticsearch Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
... | mit |
misuqian/ExcelTool | eclipse/poi-3.12/docs/apidocs/org/apache/poi/ddf/class-use/EscherProperties.html | 4315 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Class org.apache.poi.ddf.EscherProperties (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title=... | mit |
isabo/onfire | src/externs/outgoing/onfire-externs.js | 28432 | /**
* OnFire
* Copyright (c) 2013 - 2015 Itzy Sabo
* Licensed under the MIT License: https://github.com/isabo/onfire/blob/master/LICENSE
*/
var onfire = {};
/**
* An analogue of a Firebase reference.
* @see https://www.firebase.com/docs/web/api/firebase/constructor.html
*
* @param {string|!Firebase} urlOrRe... | mit |
MiracleBlue/html-significant-other | CHANGELOG.md | 562 | ## 0.2.2 - Cleanup
## 0.2.1 - APM Publishing
## 0.1.2 - Cleanup
* Cleaned up docs, menus
## 0.1.1 - Bugfixes
* Fixed a bug where typing a '>' between an opening and closing pair of tags would...behave poorly
## 0.1.0 - First Release
* Closes any tag with entire opening tag on same line when typing '>'
* Places your... | mit |
dacap/loseface | third_party/clapack/SRC/zungtr.c | 6823 | #include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
static integer c_n1 = -1;
/* Subroutine */ int zungtr_(char *uplo, integer *n, doublecomplex *a,
integer *lda, doublecomplex *tau, doublecomplex *work, integer *lwork,
integer *info)
{
/* System generated locals *... | mit |
alvinvarghese/MMFlowView | Classes/osx/MMFlowView+NSResponder.h | 1367 | /*
The MIT License (MIT)
Copyright (c) 2014 Markus Müller https://github.com/mmllr All rights reserved.
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 wit... | mit |
crofty/sensor_js_message_parsing | vendor/sproutcore-metal/lib/observer.js | 4614 | // ==========================================================================
// Project: SproutCore Metal
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
/*globals sc_assert */
re... | mit |
Schumix/CsharpSQLite | Tests/System.Data.SQLite.Tests/CollateFixture.cs | 2066 | using NUnit.Framework;
using NUnit.Framework.Constraints;
using System;
using System.IO;
using System.Data.SQLite;
namespace System.Data.SQLite.Tests
{
[TestFixture]
public class CollateFixture
{
[Test]
public void NoCaseCollateTest()
{
using(var con = new SQLiteConnection("Data Source=:memory:"))
usin... | mit |
schacon/git-ruby | lib/git-ruby/raw/internal/mmap.rb | 1176 | #
# converted from the gitrb project
#
# authors:
# Matthias Lederhofer <matled@gmx.net>
# Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
#
# provides native ruby access to git objects and pack files
#
begin
require 'mmap'
rescue LoadError
module GitRuby
module Raw
module Internal
class Mmap... | mit |
Aprila/laboratory | vendor/nette/application/src/Bridges/ApplicationLatte/UIMacros.php | 4523 | <?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\Bridges\ApplicationLatte;
use Latte;
use Latte\CompileException;
use Latte\MacroNode;
use Latte\PhpWriter;
use Nette;
use Nette\Utils\Strings;
/**
* Macros for N... | mit |
ringcentral/ringcentral-js-client | src/paths/Dictionary.ts | 1573 | // This is Generated Source.
import PathSegment from "../PathSegment";
import FaxCoverPage from "./FaxCoverPage";
import Greeting from "./Greeting";
import Language from "./Language";
import Country from "./Country";
import Location from "./Location";
import State from "./State";
import Timezone from "./Timezone";
impo... | mit |
namjoker/flarumfull | vendor/flarum/flarum-ext-akismet/js/admin/dist/extension.js | 2370 | 'use strict';
System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/components/SettingsModal'], function (_export, _context) {
var SettingsModal, AkismetSettingsModal;
return {
setters: [function (_flarumComponentsSettingsModal) {
SettingsModal = _flarumComponentsSettingsModal.defaul... | mit |
gaborkolozsy/XChange | xchange-luno/src/main/java/org/knowm/xchange/luno/dto/trade/LunoOrders.java | 3625 | package org.knowm.xchange.luno.dto.trade;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
public class LunoOrders {
private final Order[] orders;
public LunoOrders(@JsonProperty(value = "orders", required = true) Order[] orders)... | mit |
dpep/theusualrb | test/test_numeric.rb | 527 | require 'minitest/autorun'
require 'theusual'
TheUsual::load :numeric
class NumericTest < Minitest::Test
def test_delimiter
# Integers
assert_equal(
'1,000',
1_000.with_delimiter
)
assert_equal(
'1,000,000',
1_000_000.with_delimiter
)
assert_equal(
'1_000',
... | mit |
peppy/osu | osu.Game.Tournament/TournamentSceneManager.cs | 9933 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shape... | mit |
gabeg805/Extensible-Login-Manager | src/elmloginmanager.c | 14442 | /* *****************************************************************************
*
* Name: elmloginmanager.c
* Author: Gabriel Gonzalez
* Email: gabeg@bu.edu
* License: The MIT License (MIT)
*
* Description: Control setting up, building, and displaying the ELM.
*
* Notes: None.
*
* ****************... | mit |
brentstineman/PersonalStuff | Presentations/Service Fabric/RealWorldDemo/WebFrontEnd/Program.cs | 1348 | using Microsoft.ServiceFabric.Services.Runtime;
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace WebFrontEnd
{
internal static class Program
{
/// <summary>
/// This is the entry point of the service host process.
/// </summary>
... | mit |
OlivierCoue/invow | server/helpers/item-content/createItemTweet.js | 1490 | module.exports = function createItemTweet (url, user, callback) {
var fs = require("fs");
var https = require('https');
var models = require('../../models');
var itemTypes = require('../../models/item/itemTypes.json');
var tweetUrl = url;
var options = {
host: 'publish.twitte... | mit |