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 |
|---|---|---|---|---|---|
export default {
cancel: 'Cancelar',
reply: 'Responder',
onMyWay: 'Estou a caminho',
customMessage: 'Mensagem personalizada',
callMeBackIn: 'Ligue de novo em',
willCallYouBackIn: 'Você pode ligar de novo em',
min: 'min.',
hours: 'horas',
days: 'dias',
};
// @key: @#@"cancel"@#@ @source: @#@"Cancel"@#... | u9520107/ringcentral-js-widget | packages/ringcentral-widgets/components/ReplyWithMessage/i18n/pt-BR.js | JavaScript | mit | 754 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Entrustcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... | entrustcoin/eTRUST | src/qt/locale/bitcoin_bg.ts | TypeScript | mit | 116,997 |
import chance = require('../../extlibs/wrap_chance');
export class Question {
num: number;
constructor() {
this.num = chance.natural({ min: 20, max: 20000 });
}
get avg() {
return this.num + 0.5;
}
get cans() {
return this.num + 2;
}
get qtxt() {
... | pskhodad/mathmate-templates | src/templates/numericals/q_00006.ts | TypeScript | mit | 406 |
# encoding: utf-8
require 'rake'
require 'minitest/autorun'
require 'rake/helpers/unittest'
require 'rake/helpers/string'
class TestString < MiniTest::Unit::TestCase
def test_prepend
assert_equal('prefix_a', 'a'.prepend('prefix_'))
end
def test_starts_with
assert 'android32'.... | ashumkin/rake-delphi | test/test-string.rb | Ruby | mit | 1,089 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | KattMingMing/vscode | src/vs/workbench/parts/feedback/electron-browser/feedbackStatusbarItem.ts | TypeScript | mit | 3,410 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_express_route_connections_operations.py | Python | mit | 22,003 |
# -*- coding: utf-8 -*-
import unittest
from pyparsing import ParseException
from tests.utils.grammar import get_record_grammar
"""
CWR Non-Roman Alphabet Agreement Party Name grammar tests.
The following cases are tested:
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
__status__ = 'Development'
... | weso/CWR-DataApi | tests/grammar/factory/record/test_npa.py | Python | mit | 4,113 |
package com.goutplay.loc_androidsdk.utils;
import android.content.Context;
import android.telephony.NeighboringCellInfo;
import android.telephony.TelephonyManager;
import android.telephony.cdma.CdmaCellLocation;
import android.telephony.gsm.GsmCellLocation;
import android.util.Log;
import java.util.List;
/**
* Crea... | GOutPlay/LBS | Client/LBS-AndroidClient/loc_androidsdk/src/main/java/com/goutplay/loc_androidsdk/utils/GSMCellLocationLbs.java | Java | mit | 2,123 |
WP Fast Search
==============
"A blazingly fast drop-down search widget for Wordpress."
Responds to key press, instantly presents a drop-down menu of post titles for
the user to select from (with ten-post max per result set).
The user can scroll through the list of posts using the mouse or keyboard
(pressing enter... | graemeboy/wp-fast-search | README.md | Markdown | mit | 824 |
'use strict';
var cocktail = require('cocktail');
var senchaCmd = require('./cmd/sencha');
var listCmd = require('./cmd/list');
var useCmd = require('./cmd/use');
var versionCmd = require('./cmd/version');
var noOpCmd = require('./cmd/noop.js');
//TODO: Review this, maybe using nopts
var CMD_OPTIONS = {... | elmasse/sencha-cmd-plus | src/cli.js | JavaScript | mit | 1,142 |
/*
goroutine
*/
package tips_dir
import (
"fmt"
"github.com/tlorens/go-ibgetkey"
"io/ioutil"
"math"
"os"
"runtime/pprof"
"strconv"
"sync"
"time"
)
//---------------------------------------------------
// goroutineを生成する
//---------------------------------------------------
/*
goroutineはスレッドのようなものです。
joinはない... | ashitani/golangtips | pkg/tips_goroutine/tips_goroutine.go | GO | mit | 9,125 |
@import Foundation;
@interface DSMessageContext: NSObject<NSCoding>
@end
| diejmon/DSLibAlerts | Pod/Classes/DSMessageContext.h | C | mit | 76 |
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Using RingOpenGL and RingAllegro for 3D Graphics — Ring 1.17 documentation</title>
<link rel="stylesheet" href="_static/css/them... | ring-lang/ring | documents/build/html/usingopengl2.html | HTML | mit | 167,763 |
#include <Point.h>
Point::Point(double x, double y) {
this->x = x;
this->y = y;
}
void Point::setX(double x) {
this->x = x;
}
void Point::setY(double y) {
this->y = y;
}
double Point::getX() {
return x;
}
double Point::getY() {
return y;
}
| mikehelmick/teaching | uc/computerScience1/materials/labs/lab10/Point.cpp | C++ | mit | 257 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<title>The Component Hierarchy</title>
</head>
<body BGCOLOR="#ffffff">
<table width="100%">
<tr>
<td align=left>
<a href="egClasses.html"><img src="../../images/PreviousArrow.gif" width=26 height=26 align=bottom border=0 alt="Previo... | pitpitman/GraduateWork | Java_tutorial/ui/overview/compHierarchy.html | HTML | mit | 6,051 |
namespace Microsoft.ApplicationInsights.AspNetCore.Tests.Helpers
{
using System;
using Microsoft.ApplicationInsights.AspNetCore.DiagnosticListeners;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc... | pharring/ApplicationInsights-dotnet | NETCORE/test/Microsoft.ApplicationInsights.AspNetCore.Tests/Helpers/HttpContextAccessorHelper.cs | C# | mit | 2,566 |
---
authors: Moritz Neujeffski
date: 2016-10-04 11:00:00
picture:
src: /files/blog/2016/10/Industrie.jpg
title:
license: "Public Domain, via pixabay"
license_url: "https://wiki.creativecommons.org/wiki/Public_domain"
tags:
- workshop
- umwelt
title: "Einladung zum Workshop: Analyse und Visualisierung von Schad... | okfde/datenschule.de | blog/_posts/2016/2016-10-04-DS-Codeweek-Workshop.md | Markdown | mit | 1,923 |
import { block, insertAfter, clearSelection, prepend, detach, freeSelect } from "../../domUtils";
import { updateGrid } from "../index";
import { addChange } from "../changes";
import { Toast } from "../../toast";
import { getKeywordView } from "./keyword";
import MANIFEST from "./MANIFEST";
import { MEMBER_SECTIONS, g... | ZitRos/cache-visual-editor | source/client/js/classEditor/class/member.js | JavaScript | mit | 9,395 |
# Find Duplicate Subtrees
Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them.
Two trees are duplicate if they have the same structure with same node values.
Example 1:
```
1
/ \
2 3
/ / \
... | hanleilei/leetcode | python/652_Find_Duplicate_Subtrees.md | Markdown | mit | 1,408 |
## Particle Motion Simulation
1. motion.cpp : Particle motion inside triangle in 2D
2. motion1.cpp : Particle motion inside triangle in 2D with collision between
particles and the output is displayed as OpenGL window
3. motion2.cpp : Particle motion inside triangle in 2D with collision between
particles and the ou... | prasetiyohadi/learn-computations | particle-motion/README.md | Markdown | mit | 3,615 |
<?php
use Tester\Assert;
use UniMapper\Query;
use UniMapper\Entity\Reflection;
require __DIR__ . '/../bootstrap.php';
/**
* @testCase
*/
class QueryDeleteTest extends TestCase
{
/** @var array $adapters */
private $adapters = [];
/** @var \Mockery\Mock */
private $connectionMock;
/** @var \M... | unimapper/unimapper | tests/cases/Query.Delete.phpt | PHP | mit | 2,348 |
// Copyright (c) 2011-2013 The BeCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "becoinunits.h"
#include "clientmodel.h"
#include "guiconstan... | MasterX1582/bitcoin-becoin | src/qt/overviewpage.cpp | C++ | mit | 11,072 |
/**
* primary:3a9aff 2989ee
* success:8fbe33 7ead22
* info:8fbeef 7eadde
* warning:ff6700 ee5600
* danger:e53935 d42824
* */
*{
font-family: 'Microsoft Yahei';
}
body,html{
font-size: 10px;
/* width: 100%;
height: 100%;
padding: 0;
margin: 0; */
}
@media screen and (max-width:960px) {
body,html{font-size: ... | Hishengs/heyui | css/base/base.css | CSS | mit | 4,222 |
#include "List.hpp"
#include "Numbers.hpp"
#include "unity.h"
void test_empty_list(void) {
std::shared_ptr<const ISeq> e = List::Empty;
TEST_ASSERT_EQUAL_STRING("()", e->toString().c_str());
}
void test_empty_list_seq(void) {
std::shared_ptr<const ISeq> e = List::Empty;
TEST_ASSERT_EQUAL_STRING("()", e->seq()->t... | degustaf/lisp-compiler | unittest/TestList.cpp | C++ | mit | 3,594 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>AngularJS Tutorials</title>
<link href="../Content/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div ng-app="app">
<dumb-password></dumb-password>
</div>
<script src="../scripts/angular.min.js"></script>
... | danielmackay/Angular-Egghead | AngularEggHead/app17-elements/Index.html | HTML | mit | 373 |
# PlanChat
A group chatting app for planning things
| kylebshr/PlanChat | README.md | Markdown | mit | 52 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<title>Class ApiAxleTest\AllTests | fillup/apiaxle</title>
<script type="text/javascript" src="resources/combined.js?3551695169"></script>
<script type="text/javasc... | fillup/apiaxle-module | docs/class-ApiAxleTest.AllTests.html | HTML | mit | 3,198 |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.... | JackWolfskind/Tannte-Emma | LICENSE.md | Markdown | mit | 734 |
#!/bin/bash
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
| dartmedved/ubuntu-postinstall-v2 | lang/nodejs/install-node.sh | Shell | mit | 108 |
package com.client.core;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang3.RandomStringUtils;
import o... | bullhorn/starter-kit-spring-maven | src/main/java/com/client/core/SessionFilter.java | Java | mit | 3,987 |
#ifndef __THREADS_H__
#define __THREADS_H__
#include <lpc_types.h>
void thread_init(uint32_t quantaUs);
void thread_go(); // THIS WILL NEVER RETURN
int thread_create(void (*run)(void*), void* userdata);
void thread_kill(int thread_id);
void thread_self_term();
#endif
| slugonamission/cortexm3-threads | threads.h | C | mit | 271 |
/*
* main.cpp
*
* Created on: Nov 29, 2015
* Author: Gianluca Tiepolo <tiepolo.gian@gmail.com>
*/
#include "MQ.h"
#include <chrono>
int main(int argc, char *argv[]) {
if(argc < 2) {
std::cout << "Usage: ./example client|server" << std::endl;
return 1;
}
MQ *messageQ;
if(std::str... | tiepologian/MQ | example/main.cpp | C++ | mit | 1,015 |
package com.hn.nishant.nvhn.network;
import com.google.firebase.FirebaseApp;
import com.hn.nishant.nvhn.App;
import com.hn.nishant.nvhn.BuildConfig;
import com.hn.nishant.nvhn.HNTestRunner;
import com.hn.nishant.nvhn.model.Story;
import com.hn.nishant.nvhn.view.activity.StoryActivity;
import org.junit.Before;
import ... | nishant304/hacker-news-client | app/src/test/java/com/hn/nishant/nvhn/network/RetrofitImplTest.java | Java | mit | 1,011 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Mon Jun 30 01:29:13 PDT 2014 -->
<title>algorithms.compGeometry.clustering.twopointcorrelation</title>
<meta name="date" content... | tectronics/two-point-correlation | docs/api/algorithms/compGeometry/clustering/twopointcorrelation/package-summary.html | HTML | mit | 17,410 |
namespace Lithogen.Core.Interfaces
{
/// <summary>
/// Determine whether a filename under the Views folder should be processed or totally ignored.
/// Typically used to filter out junk like .gitignore or partials, which are dealt with separately
/// by convention.
/// </summary>
public i... | PhilipDaniels/Lithogen | Lithogen/Lithogen.Core/Interfaces/IViewFileNameFilter.cs | C# | mit | 850 |
@extends('layout')
@section('content')
<form method="post" action="{{ route('user.role.store') }}">
{!! csrf_field() !!}
<div class="flexy mb-24 full-width sticky" id="publish-controls">
<h1 class="fill">{{ translate('cp.creating_role') }}</h1>
<div class="controls">
... | ICJIA/icjia-tvpp | statamic/resources/views/roles/create.blade.php | PHP | mit | 552 |
package org.lst.trading.lib.series;
import java.util.List;
import java.util.function.Function;
public class DoubleSeries extends TimeSeries<Double> {
String mName;
DoubleSeries(List<Entry<Double>> data, String name) {
super(data);
mName = name;
}
public DoubleSeries(String name) {
... | Coderaio/quant | src/main/java/org/lst/trading/lib/series/DoubleSeries.java | Java | mit | 2,531 |
# spec/features/authentication_process_spec.rb
#
feature "Authentication process for all users.", js: true do
context "Users " do
given(:user) { user_estester }
scenario "Sign in with username and password credentials." do
visit signin_url
fill_in 'Username', :with => user.username
fill_... | skoona/SknServices | spec/features/processes/authentication_process_spec.rb | Ruby | mit | 3,733 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content = "user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-b... | vinceallenvince/FloraJS-Flocking | public/roll.html | HTML | mit | 881 |
# -*- coding:utf-8 -*-
from collections import defaultdict
import numpy
class ThompsonAgent:
def __init__(self, seed=None):
self._succeeds = defaultdict(int)
self._fails = defaultdict(int)
self._np_random = numpy.random.RandomState(seed)
def choose(self, arms, features=None):
... | ohtaman/pynm | pynm/reinforce/bandit/thompson.py | Python | mit | 683 |
<?php
namespace UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\UserInterface;
use FOS\UserBundle\Model\User as BaseUser;
/**
* Admin
*
* @ORM\Table(name="admin")
* @ORM\Entity(repositoryClass="UserBundle\Repository\AdminRepository")
*/
class Admin extends BaseUser
{... | manolo317/fil-rouge | src/UserBundle/Entity/Admin.php | PHP | mit | 463 |
#include <iostream>
using std::cout;
const int MAX = 20;
void sum_matrices(int first_matrix[][MAX], int second_matrix[][MAX],
int m, int n, int result_matrix[][MAX]) {
for (int i = 0; i < m; ++i) {
for (int j = 0; j < n; ++j) {
result_matrix[i][j] = first_matrix[i][j] + second_matrix[i]... | dimitaruzunov/up-2016 | exercises/09/sum-matrices.cpp | C++ | mit | 860 |
<?php defined('PHPFOX') or exit('NO DICE!'); ?>
<?php /* Cached: February 25, 2013, 5:25 am */ ?>
<?php
/**
* [PHPFOX_HEADER]
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox
* @version $Id: menu.html.php 3346 2011-10-24 15:20:05Z Raymond_Benc $
*/
?>
<?php if (( $this->_... | edbiler/BazaarCorner | file/cache_for_deletion/template/advancedmarketplace_template_default_block_menu.html.php.php | PHP | mit | 5,108 |
import React from 'react';
import Link from 'gatsby-link';
import '../css/tags.css';
export default function Tags({ list = [] }) {
return (
<div className="tag-list">
{list.map(tag =>
<Link className="tag" to={`/tags/${tag}`}>
{tag}
</Link>
)}
</div>
);
}
| HugoReeves/tfr-blog | src/components/Tags.js | JavaScript | mit | 314 |
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
width: 100%;
height: 100%;
font-family: Lora,"Helvetica Neue",Helvetica,Arial,sans-serif;
color: #fff... | theredfoxfire/lc | src/Lc/LcBundle/Resources/public/css/grayscale.css | CSS | mit | 8,156 |
package database;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.NavigableSet;
import org.mapdb.BTreeMap;
import org.mapdb.Bind;
import org.mapdb.DB;
import org.mapdb.DBMaker;
import org.mapdb.Fun;
import qora.crypto.Base58;
import qora.crypto... | Qoracoin/Qora | Qora/src/database/ATMap.java | Java | mit | 8,118 |
<template>
<h1>Order Search</h1>
</template> | cmichaelgraham/aurelia-axel-northwind | aurelia-axel-northwind/views/search/order/search-order.html | HTML | mit | 51 |
var webpack = require('webpack'),
webpackConfig = require('./webpack.config.base'),
DefinePlugin = require('webpack/lib/DefinePlugin'),
SourceMapDevToolPlugin = require('webpack/lib/SourceMapDevToolPlugin'),
env = require('../environment/dev.env');
webpackConfig.module.rules = [{
test: /\.ts$/,
exclude... | bamboo-c/vue-vuex-boilerplate | template/config/webpack.config.test.js | JavaScript | mit | 1,183 |
package pav.sprykerFileCreator.model.definition.spryker;
import pav.sprykerFileCreator.model.definition.ClassDefinitionInterface;
import pav.sprykerFileCreator.model.generator.SprykerConstants;
public class ZedBusinessFactoryDefinition implements ClassDefinitionInterface {
@Override
public String getClassTyp... | project-a/idea-php-spryker-plugin | src/pav/sprykerFileCreator/model/definition/spryker/ZedBusinessFactoryDefinition.java | Java | mit | 1,109 |
package images
import (
"image"
"github.com/go-chi/chi"
"github.com/spf13/viper"
)
type ProductImageSet struct {
Thumbnail image.Image
Main image.Image
Original image.Image
}
type ProductImageLocations struct {
Thumbnail string
Main string
Original string
}
type ImageStorer interface {
Init(c... | dairycart/dairycart | storage/v1/images/main.go | GO | mit | 508 |
package isbn
import (
"errors"
"math"
"strconv"
"unicode"
)
func IsValidISBN(isbn string) bool {
isbn = dropHyphen(isbn)
ary, err := strToSlice(isbn)
if len(ary) != 10 || err != nil {
return false
}
return calcCheckDigit(ary)
}
func dropHyphen(isbn string) string {
var result string
for _, char := ra... | leenipper/xgo | exercises/isbn-verifier/example.go | GO | mit | 946 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.provide("frappe.ui.form");
frappe.ui.form.Toolbar = Class.extend({
init: function(opts) {
$.extend(this, opts);
this.make();
this.add_update_button_on_dirty();
this.appframe.add_module_icon(this.frm... | gangadharkadam/office_frappe | frappe/public/js/frappe/form/toolbar.js | JavaScript | mit | 8,259 |
using SQLite;
namespace SQLite_net_PCL_Demo.Core
{
public class Entity
{
[PrimaryKey]
[AutoIncrement]
public int Id { get; set; }
public string Name { get; set; }
}
}
| rafaelromao/SQLite-net_PCL_Demo | SQLite-net_PCL_Demo.Core/Entity.cs | C# | mit | 215 |
<!DOCTYPE html>
<html>
<title>Chen's Resume</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="w3.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto'>
<link rel="stylesheet" href="https://fonts.googleapis.com/cs... | wangc528/portfolio | myresume.html | HTML | mit | 7,605 |
<?php get_template_part('templates/content', 'single-program'); ?>
| tworzenieweb/jinternsjip | app/themes/ji/single-mcm_programs.php | PHP | mit | 67 |
/**
* 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.management.network.v2020_06_01;
import java.util.Collection... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/EffectiveRouteSource.java | Java | mit | 1,675 |
FROM ubuntu:bionic
ENV LANG=en_US.UTF-8
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN \
apt update && \
apt upgrade -y && \
apt install -y --allow-unauthenticated \
locales \
ca-certificates tzdata python2.7 netcat htop less curl libmysqlcl... | andriyg76/docker | python2.7-bionic-nonginx/Dockerfile | Dockerfile | mit | 743 |
/**
* VM UI Framework
* A modern, grid-based CSS, layout, and UI framwork for HTML5
* Copyright Virtuosi Media, Inc. 2012
* Released under an MIT-License
*/
/**
* Auto-complete
*/
.autocompleteList, .autocompletePrompt {
background: #FFF;
border: 0.1em solid #CCC;
-moz-box-sizing: border-box;
... | VirtuosiMedia/VM-UI-Framework | templates/skeleton/css/plugins/autocomplete.css | CSS | mit | 654 |
# timedPress
A JavaScript function for measuring the length of time an element is pressed. Supports both mouse and touch events.
#### Dependencies
None
#### Browser Compatibility
IE10+. Currently, a single `classList` call keeps `timedPress` from IE9+.
Current versions of Chrome, FireFox, Safari and Opera.
#### Para... | niftinessafoot/timedPress.js | README.md | Markdown | mit | 1,715 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\DependencyInjection;
use Symfony\Component\Dependency... | mihai-stancu/symfony | src/Symfony/Component/DependencyInjection/Definition.php | PHP | mit | 22,478 |
---
layout: post
title: 新装vps的一些一键脚本整理
categories: [IT&数码]
description: 新购 vps 有很多需要部署的内容,而这些内容中又有很多可以说是必备内容,何不利用脚本去完成呢?在此我整理一些常用的脚本,待补充。
keywords: VPS, 一键, 脚本, oneinstack, LAMP, LNMP
---
新购vps有很多需要部署的内容,而这些内容中又有很多可以说是必备内容,何不利用脚本去完成呢?在此我整理一些常用的脚本,待补充。
## 系统检测
**io测试脚本**
```wget -qO- bench.sh | bash```
**网络测试脚本... | berrythinking/berrythinking.github.io | _posts/blog/2017-08-20-新装vps的一些一键脚本整理.md | Markdown | mit | 1,337 |
"""
Simple evaluators implement a single objective function, and use the genotype
of a species when performing the evaluation (as opposed to using some later
stage of development).
"""
type SimpleEvaluator <: Evaluator
evaluator::Function
stage::AbstractString
threads::Int
end
"""
Provides a definition for a sim... | ChrisTimperley/Wallace.jl | src/evaluator/_simple.jl | Julia | mit | 1,219 |
<style>
.section .reveal .state-background {
background: #ffffff;
}
.section .reveal h1,
.section .reveal h2,
.section .reveal p {
color: black;
margin-top: 50px;
text-align: center;
}
</style>
Multivariate distributions part I
========================================================
autosize: true
increm... | cgrudz/cgrudz.github.io | teaching/stat_445_645_2021_fall/lesson_notes/2021_11_08/lesson_21_11_08.md | Markdown | mit | 23,563 |
<?php
namespace ErenMustafaOzdal\LaravelUserModule\Http\Requests\Role;
use ErenMustafaOzdal\LaravelModulesBase\Requests\BaseRequest;
use Sentinel;
class StoreRequest extends BaseRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function a... | erenmustafaozdal/laravel-user-module | src/Http/Requests/Role/StoreRequest.php | PHP | mit | 724 |
"""Sensitive variant calling using VarDict.
Defaults to using the faster, equally sensitive Java port:
https://github.com/AstraZeneca-NGS/VarDictJava
if 'vardict' or 'vardict-java' is specified in the configuration. To use the
VarDict perl version:
https://github.com/AstraZeneca-NGS/VarDict
specify 'vardict-perl'.... | lpantano/bcbio-nextgen | bcbio/variation/vardict.py | Python | mit | 15,244 |
"""add account id
Revision ID: 3734300868bc
Revises: 3772e5bcb34d
Create Date: 2013-09-30 18:07:21.729288
"""
# revision identifiers, used by Alembic.
revision = '3734300868bc'
down_revision = '3772e5bcb34d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('account_profile', sa.Colu... | vsilent/smarty-bot | alembic/versions/3734300868bc_add_account_id.py | Python | mit | 391 |
---
layout: "docs_api"
title: Supersonic API reference
header_sub_title: <%= apiPath %> overview
section_id: <%= section %>
subsection_id: <%= subsection %>
---
{% assign entry = <%= liquidDataPath %> %}
## Namespace: {{entry.namespace}}.{{entry.name}}
{{entry.description}}
| AppGyver/supersonic | tasks/templates/api_overview_entry.md | Markdown | mit | 276 |
<?php
class ShopGroup extends ShopGroupCore
{
}
| timetre/tnk | web/store/override/classes/shop/ShopGroup.php | PHP | mit | 51 |
'use strict';
import React from 'react';
const Page = ({children}) => (
<div className="page-component container">
<div className="page-box">
{children}
</div>
</div>
);
export default Page; | raapperez/qm | frontend/src/js/components/page.js | JavaScript | mit | 229 |
require 'spec_helper'
describe "shops/index" do
before(:each) do
assign(:shops, [
stub_model(Shop,
:number => 1,
:name => "Name",
:town => 2,
:street => 3,
:bldg => "Bldg",
:housing => "Housing",
:floor => "Floor",
:id_hard => 4,
:id_s... | AlexKich/Doit | spec/views/shops/index.html.erb_spec.rb | Ruby | mit | 1,660 |
//select all
$(".input-select-all").change(function () {
var target = $(this).attr("data-target");
// alert(target)
var checked = $(this).is(":checked");
$(target + " input[type=checkbox]").attr("checked", checked);
});
$(function () {
//////////////check group checkboxes/////////
$("body ... | kgidion1/Hive-Projects | public/js/custom.js | JavaScript | mit | 6,602 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Chris Turner" />
<meta name="description" content="Personal blog and resume">
<l... | lenamasek/lenamasek.github.io | _site/art-of-delegation.html | HTML | mit | 9,992 |
---
author: robmyers
comments: true
date: 2012-10-03 05:04:47+00:00
layout: page
slug: nineteen-sixty-nine
title: '1969'
permalink: /nineteen-sixty-nine/
wordpress_id: 2168
---
* 
* 
* ![belgrade for man... | robmyers/robmyers.org | _pages/nineteen-sixty-nine.md | Markdown | mit | 1,803 |
/*
* Copyright (c) 2014-2021 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
import { TranslateModule, TranslateService } from '@ngx-translate/core'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { MatCardModule } from '@angular/material/card'
import { MatFormFieldModule } from '@... | bkimminich/juice-shop | frontend/src/app/address-create/address-create.component.spec.ts | TypeScript | mit | 8,994 |
/*
*
* @author Benoit Vinay
*
* ben@benoitvinay.com
* http://www.benoitvinay.com
*
*/
//////////////////////////////////////////////////////////////////////////////////////////
// Sound Object
//
// use in loader.sound.js
////////////////////////////////////////////////////////////////////////////////////////... | losrebellos/Los-Rebellos-Library-js | src/losrebellos/sound/sound.tag.js | JavaScript | mit | 2,438 |
<?php
namespace Drupal\migrate_infob\Plugin\migrate\source;
use Drupal\migrate\Row;
use Drupal\node\Plugin\migrate\source\d6\Node;
/**
* Drupal 6 node source from database.
*
* @MigrateSource(
* id = "youtube_video_node"
* )
*/
class YoutubeVideoNode extends Node {
/**
* {@inheritdoc}
*/
public func... | amutylo/IB-d8-migration | migrate_infob/src/Plugin/migrate/source/YoutubeVideoNode.php | PHP | mit | 4,966 |
#![feature(core)]
extern crate core;
#[cfg(test)]
mod tests {
use core::hash::Hash;
use core::hash::Hasher;
use core::hash::SipHasher;
// pub struct SipHasher {
// k0: u64,
// k1: u64,
// length: usize, // how many bytes we've processed
// v0: u64, // hash state
... | athenainn/rust-trace | libcore/hash/mod/impl/i64/hash.rs | Rust | mit | 10,589 |
// app/models/tools.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ToolsSchema = new Schema({
name: String,
tooltype: String,
weight: Number,
damagedflag: Boolean,
serialnumber: String
});
module.exports = mongoose.model('Tools', ToolsSchema); | MatthewGreen/ToolsManagerAppExternalAPI | app/models/tools.js | JavaScript | mit | 277 |
module.exports = parse
/**
* expected argument lengths
* @type {Object}
*/
var length = {a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0}
/**
* segment pattern
* @type {RegExp}
*/
var segment = /([astvzqmhlc])([^astvzqmhlc]*)/ig
/**
* parse an svg path data string. Generates an Array
* of comma... | jkroso/parse-svg-path | index.js | JavaScript | mit | 1,204 |
<!doctype>
<html>
<head>
<title>CSS GRID</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#particles-js {
position: ... | filR/course-advanced-web-dev-2017 | 02 - Particles Library/solution/index.html | HTML | mit | 1,522 |
/*
* getdents64.c
* by WN @ Aug. 03, 2010
*/
#include "syscall_handler.h"
#include <common/debug.h>
#ifndef PRE_LIBRARY
DEF_HANDLER(getdents64)
{
TRACE(LOG_SYSCALL, "getdents64\n");
int r = regs->eax;
if (r > 0)
BUFFER((void*)(regs->ecx), r);
return 0;
}
#endif
// vim:ts=4:sw=4
| pi3orama/Snitchaser | src/arch/x86/interp/syscalls/getdents64.c | C | mit | 293 |
using System;
using System.Reflection;
using System.Runtime.InteropServices;
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior ... | kainazzzo/FRBInput | Apache.NMS/src/main/csharp/CommonAssemblyInfo.cs | C# | mit | 1,255 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | kainazzzo/FRBInput | Apache.NMS/src/test/csharp/XmlMessageTest.cs | C# | mit | 6,413 |
---
layout: post
microblog: true
audio:
photo:
date: 2012-02-29 12:01:06 -0600
guid: http://craigmcclellan.micro.blog/2012/02/29/t174917121690701824.html
---
New Avengers Trailer! [t.co/Zwv44xG1](http://t.co/Zwv44xG1)
| craigwmcclellan/craigwmcclellan.github.io | _posts/2012-02-29-t174917121690701824.md | Markdown | mit | 220 |
import PluginManager from 'tinymce/core/api/PluginManager';
import * as Commands from './api/Commands';
import * as Options from './api/Options';
import * as FilterContent from './core/FilterContent';
import * as ResolveName from './core/ResolveName';
import * as Buttons from './ui/Buttons';
export default (): void =... | tinymce/tinymce | modules/tinymce/src/plugins/pagebreak/main/ts/Plugin.ts | TypeScript | mit | 535 |
import { inject, TestBed } from '@angular/core/testing';
import { E2EImportsModule } from '../../../e2e-imports.module';
import { WebsocketService } from './websocket.service';
describe('WebsocketService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [E2EImportsModule],... | jwinzer/OpenSlides | client/src/app/core/core-services/websocket.service.spec.ts | TypeScript | mit | 523 |
#define COMPONENT amf_interact
#define PREFIX e12
#include "script_macros.hpp"
| Echo12/amf_a2 | e12_amf_interact/script_component.hpp | C++ | mit | 84 |
Array.prototype.removePlayer = function (player) {
var index = this.findIndex(function (e) {
return e.client.steamId === player.client.steamId;
});
if (index >= 0) this.splice(index, 1);
return this;
}
'use strict';
const fs = require('fs');
const path = require('path');
module.exports = class Utility ... | maltoc76/BattleRoyale | Battleroyale_base/gm/utility.js | JavaScript | mit | 7,365 |
/*
Copyright (c) 2010 by Genstein
This file is (or was originally) part of Trizbort, the Interactive Fiction Mapper.
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 wit... | Tymian/trizbort | MainForm.cs | C# | mit | 31,910 |
.demo-blog .coffee-pic .mdl-card__media {
background-image: url('../images/coffee.jpg');
}
.demo-blog .about-pic .mdl-card__media {
background-image: url('../images/keyboard.jpg');
}
.demo-blog .avatar-pic .mdl-card__media {
background-image: url('../images/avatar.jpg');
}
.demo-blog .brown-color .mdl-card__med... | hackerchai/android-blog | assets/themes/material-card/css/pic.css | CSS | mit | 898 |
<html>
<head>
<title>SIGEDUC</title>
<link rel="stylesheet" href="<?= base_url('assets/css/bootstrap.min.css') ?>"/>
<link rel="stylesheet" href="<?= base_url('assets/css/matrix-login.css') ?>"/>
<link rel="stylesheet" href="<?= base_url('assets/css/login.css') ?>"/>
<m... | guilherme00/sigeduc | application/views/login.php | PHP | mit | 2,431 |
<?php
namespace IfRPGMaker\HistoireBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Scenario
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="IfRPGMaker\HistoireBundle\Entity\ScenarioRepository")
*/
class Scenario
{
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="IfRPGMaker\HistoireBundle\Ent... | itzala/ifrpgmaker_web | src/IfRPGMaker/HistoireBundle/Entity/Scenario.php | PHP | mit | 2,765 |
pkg_dnf = {
'collectd': {},
'collectd-chrony': {},
'collectd-curl': {},
'collectd-curl_json': {},
'collectd-curl_xml': {},
'collectd-netlink': {},
'rrdtool': {},
}
if node.os == 'fedora' and node.os_version >= (26):
pkg_dnf['collectd-disk'] = {}
svc_systemd = {
'collectd': {
... | rullmann/bundlewrap-collectd | items.py | Python | mit | 5,646 |
#pragma once
#include "mesh/Mesh.h"
#include <string>
#include <fstream>
#include <map>
NS_BEGIN_NAMESPACE
enum VTKOutputOptions
{
VOO_ElementDeterminant = 0x1,
VOO_ElementMatrix = 0x2,
VOO_ElementGradient = 0x4,
VOO_VertexBoundaryLabel = 0x8,
VOO_VertexImplicitLabel = 0x10,
VOO_IsQuadratic = 0x80
};
templa... | PearCoding/NumericSim | src/lib/export/VTKExporter.h | C | mit | 689 |
#Change Log
## v0.1.0-alpha.1
- Added/Updated command `php artisan mecenas:create {package}`
- Enhancement/Patch of tests
## v0.1.0-alpha
- Added command `php artisan mecenas:create {package}`
- Initial testing release
| cristiancmello/laravel-mecenas | CHANGELOG.md | Markdown | mit | 222 |
/* global module, require */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n * <%= pkg.name %> - <%= pkg.description %>\n' +
' * Copyright (c) 2010 <%= pkg.author.name %> <<%= pkg.author.email %>>\n' +
... | nbish11/microjs | gruntfile.js | JavaScript | mit | 3,703 |
module Instances where
import Language.Haskell.Syntax
import qualified Language.Haskell.Pretty as P
import Niz
import Data.List
-------------------------------------------------------------------------------
---------------- INSTANCE DECLARATIONS ----------------------------------------
----------------------------... | arnizamani/occam | Instances.hs | Haskell | mit | 19,725 |
jui.define("chart.brush.map.selector", [ "util.base" ], function(_) {
/**
* @class chart.brush.over
* @extends chart.brush.core
*/
var MapSelectorBrush = function(chart, axis, brush) {
var g = null,
activePath = null;
this.drawBefore = function() {
g = chart.svg.group();
}
this.dra... | juijs/store.jui.io | public/jui-all/jui-chart/js/brush/map/selector.js | JavaScript | mit | 1,524 |
import tkinter as tk
from time import sleep
from playsound import playsound
import config
import fasttick
from helpmessage import fasttick_help_message
import misc
from tickerwindow import TickerWindow
class GUIfasttick(TickerWindow):
def __init__(self, app):
super().__init__(app)
misc.delete_anci... | JevinJ/Bittrex-Notify | src/GUIfasttick.py | Python | mit | 3,213 |
import React, {Component} from 'react';
// require('./style.scss');
export default class WorkDetails extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
document.title = "Profile | Work Details";
}
render() {
return (
<div>WorkDetailsWorkDetailsWorkDetailsWorkDetailsWork... | AcrylicInc/totalblu | web/src/scenes/Profile/components/ProfilePanel/components/WorkDetails/index.js | JavaScript | mit | 359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.