repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
largetalk/tenbagger | draw/colors.py | 2176 | import random
color_names=[
'aliceblue',
'antiquewhite',
'aqua',
'aquamarine',
'azure',
'beige',
'bisque',
'blanchedalmond',
'blue',
'blueviolet',
'brown',
'burlywood',
'cadetblue',
'chartreuse',
'chocolate',
'coral',
'cornflowerblue',
'cornsilk'... | mit |
andrewlock/blog-examples | BlazorPreRender/BlazorApp1/SourceGenerators/Templates.cs | 2345 | using System.Collections.Generic;
using System.Text;
namespace SourceGenerators
{
internal static class Templates
{
public static string AppRoutes(IEnumerable<string> allRoutes)
{
// hard code the namespace for now
var sb = new StringBuilder(@"
using System.Collections.G... | mit |
mulhod/bob_dylan_lyrics | songs/html/jokerman_1.html | 13790 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</meta>
<meta content="width=device-width, initial-scale=1" name="viewport">
</meta>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</link>
<link href="../../resources/stof-style.css" rel="stylesheet">
</link>
<s... | mit |
DNNCommunity/DNN.Wiki | Views/RecentChanges.ascx.cs | 4659 | #region Copyright
//--------------------------------------------------------------------------------------------------------
// <copyright file="RecentChanges.ascx.cs" company="DNN Corp®">
// DNN Corp® - http://www.dnnsoftware.com Copyright (c) 2002-2013 by DNN Corp®
//
// Permission is hereby granted, free... | mit |
NaosProject/Naos.Database | Naos.Database.Domain.Test/Operations/Classes/Stream/External/Write/GetNextUniqueLongOpTest.designer.cs | 109983 | // --------------------------------------------------------------------------------------------------------------------
// <auto-generated>
// Generated using OBeautifulCode.CodeGen.ModelObject (1.0.177.0)
// </auto-generated>
// ---------------------------------------------------------------------------------------... | mit |
go-playground/locales | ku_TR/ku_TR_test.go | 19303 | package ku_TR
import (
"testing"
"time"
"github.com/go-playground/locales"
"github.com/go-playground/locales/currency"
)
func TestLocale(t *testing.T) {
trans := New()
expected := "ku_TR"
if trans.Locale() != expected {
t.Errorf("Expected '%s' Got '%s'", expected, trans.Locale())
}
}
func TestPluralsRan... | mit |
gothere/gothere.github.io | _posts/2015-1-9-Graph-Prim.md | 331 | ---
layout: post
title: Prim外部算法资料
published: true
category: nosql
tags: [data_structure, maizi]
---
Stanford大学Schwarz老师的代码 ([Prim算法的Java实现](http://keithschwarz.com/interesting/code/?dir=prim)) 构建
Fabonacci Heap 维基百科 ((Fabonacci Heap)[http://en.wikipedia.org/wiki/Fibonacci_heap])
| mit |
JosephJNK/async-for | tests/data.tests.js | 1126 | var _for = require ('../index');
var should = require ('should');
describe ('passing data', function () {
it ('should call the loop with the passed data', function (done) {
var results = '';
var loop = _for (
0,
function (i) { return i < 2; },
function (i) { return i + 1; },
functio... | mit |
devxkh/FrankE | Editor/VEF/VEF.Core.Shared/Interfaces/Converters/MenuVisibilityConverter.cs | 2235 | #region License
// Copyright (c) 2013 Chandramouleswaran Ravichandran
//
// 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, c... | mit |
BrighterCommand/Darker | src/Paramore.Darker/Builder/RegistryActionWrapper.cs | 407 | using System;
namespace Paramore.Darker.Builder
{
internal sealed class RegistryActionWrapper : IQueryHandlerDecoratorRegistry
{
private readonly Action<Type> _action;
public RegistryActionWrapper(Action<Type> action)
{
_action = action;
}
public void Regis... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.0-2.0.6/released/8.11.1/exact-real-arithmetic/8.6.0.html | 6951 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>exact-real-arithmetic: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | mit |
zhaoguobin/company_website | app/uploaders/logo_photo_uploader.rb | 1512 | # encoding: utf-8
class LogoPhotoUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
# include CarrierWave::RMagick
include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
storage :file
# storage :fog
# Override the directory where uploaded f... | mit |
Aladdin-ADD/eslint | lib/rules/prefer-const.js | 16721 | /**
* @fileoverview A rule to suggest using of const declaration for variables that are never reassigned after declared.
* @author Toru Nagashima
*/
"use strict";
const astUtils = require("../util/ast-utils");
//------------------------------------------------------------------------------
// Helpers
//----------... | mit |
linsalrob/PhiSpy | scripts/compare_predictions_to_phages.py | 8988 | """
Compare the regions predicted to be prophages to the regions that are marked as prophages in our testing set
Probably the hardest part of this is the identifiers!
"""
import os
import sys
import argparse
import gzip
from Bio import SeqIO, BiopythonWarning
from PhiSpyModules import message, is_gzip_file
__author_... | mit |
jorisroovers/pymarkdownlint | pymarkdownlint/tests/test_config.py | 1809 | from pymarkdownlint.tests.base import BaseTestCase
from pymarkdownlint.config import LintConfig, LintConfigError
from pymarkdownlint import rules
class LintConfigTests(BaseTestCase):
def test_get_rule_by_name_or_id(self):
config = LintConfig()
# get by id
expected = rules.MaxLineLengthRu... | mit |
bdunnette/meleagris | client/views/sightings/sightingsEdit.js | 482 | Template.SightingsEdit.helpers({
onDelete: function () {
return function (result) {
//when record is deleted, go back to record listing
Router.go('SightingsList');
};
},
});
Template.SightingsEdit.events({
});
Template.SightingsEdit.rendered = function () {
};
AutoForm.hooks({
updateSight... | mit |
egorpushkin/iremote | dev/iRemote.Android/src/com/scientificsoft/iremote/platform/net/Socket.java | 2463 | /**
* Copyright (c) 2013 Egor Pushkin. 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 without limitation the rights
* to use, cop... | mit |
yangosoft/cocos2d-x-arm-opengles | editor-support/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.h | 2447 | /****************************************************************************
Copyright (c) 2014 cocos2d-x.org
http://www.cocos2d-x.org
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... | mit |
Lokua/lokua.net.logger | test/test.html | 210 | <!DOCTYPE html>
<html>
<head>
<title>Logger Test</title>
</head>
<body>
<small>(open the console)</small>
<script src="../dist/logger.js"></script>
<script src="logger.test.js"></script>
</body>
</html> | mit |
GKotfis/csharp | exercises/roman-numerals/README.md | 1698 | # Roman Numerals
Write a function to convert from normal numbers to Roman Numerals.
The Romans were a clever bunch. They conquered most of Europe and ruled
it for hundreds of years. They invented concrete and straight roads and
even bikinis. One thing they never discovered though was the number
zero. This made writin... | mit |
zenframework/easy-services | easy-services-core/src/main/java/org/zenframework/easyservices/update/CollectionUpdateAdapter.java | 657 | package org.zenframework.easyservices.update;
import java.util.Collection;
@SuppressWarnings("rawtypes")
public class CollectionUpdateAdapter implements UpdateAdapter<Collection> {
@Override
public Class<Collection> getValueClass() {
return Collection.class;
}
@SuppressWarnings("unchecked")
... | mit |
badele/home-assistant | homeassistant/components/binary_sensor/__init__.py | 1321 | """
homeassistant.components.binary_sensor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Component to interface with binary sensors (sensors which only know two states)
that can be monitored.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/binary_sensor/
"""
im... | mit |
jbfavre/jbfavre.org | _posts/fr/2014-12-12-compilation-veille-twitter-rss.md | 19481 | ---
layout: post
title: "Compilation veille Twitter & RSS #23"
category: veille
---
La moisson de liens pour les semaine du 8 au 12 décembre 2014.
Ils ont, pour la plupart été publiés sur mon compte Twitter.
Les voici rassemblés pour ceux qui les auraient raté.
### Architecture
[Monoliths, Cookie-Cutter or Micro... | mit |
seeseekey/jenet | libs/commons-configuration-1.7/site/apidocs/src-html/org/apache/commons/configuration/StrictConfigurationComparator.html | 7263 | <HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT> /*<a name="line.1"></a>
<FONT color="green">002</FONT> * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a>
<FONT color="green">003</FONT> * contributor license agreements. See the NOTICE file distributed... | mit |
SnceGroup/snce-website | web/var/cache/translation/f1fa2db4683ed697d014961bf03dd47c/ita-IT/e1865bb9511c2e58519696970e878347.php | 32257 | <?php
$eZTranslationCacheCodeDate = 1058863428;
$CacheInfo = array (
'charset' => 'utf-8',
);
$TranslationInfo = array (
'context' => 'design/admin/content/edit',
);
$TranslationRoot = array (
'd5c6e07de8b9dccaac1d0452dee0b581' =>
array (
'context' => 'design/admin/content/edit',
'source' => 'Edit <%... | mit |
bootstrapbrasil/bootstrap | site/docs/4.1/extend/approach.md | 8071 | ---
layout: docs
title: Abordagem
description: Aprenda sobre o princípio deste guia, estratégias e técnicas usadas para construir e manter o Bootstrap de forma que você possa extender e customizá-lo mais facilmente.
group: extend
---
Enquanto as páginas _getting started_ servem como um _tour_ introdutório do projeto, ... | mit |
Rimbit/Wallets | src/kernel.cpp | 18814 | // Copyright (c) 2012-2013 The PPCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "kernel.h"
#include "txdb.h"
using namespace std;
extern int nStakeMaxAge;
exte... | mit |
abclive/Lightning | Core/Html.php | 729 | <?php
class Html
{
public static function LinkCSS($filename)
{
$link = Configuration::$base_dir."/Ressources/css/".$filename;
return($link);
}
public static function LinkImage($filename)
{
$link = Configuration::$base_dir."/Ressources/images/".$filename;
return($link);
}
public static function LinkJS(... | mit |
thiagoa/super_form | lib/presenter/cnpj.rb | 120 | require 'cnpj'
module Presenter
class CNPJ < Each
def output
::CNPJ.new(value).formatted
end
end
end
| mit |
fthomasmorel/reimburse-me-golang | routes.go | 2108 | package main
import (
"net/http"
"github.com/freehaha/token-auth"
"github.com/freehaha/token-auth/memory"
"github.com/gorilla/mux"
)
// Route type is used to define a route of the API
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
// Routes type i... | mit |
khangpng/VietnameseBible | app/content/texts/eng_web/PX151.html | 3303 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Psalm 151 151 (WEB)</title>
<link href="../../../build/mobile.css" rel="stylesheet" />
<script src="../../../build/mobile.js"></script>
</head>
<body dir="ltr" class="... | mit |
rafaellincoln/Source-Priston-Tale | J_Server/smLib3d/smStage3d.cpp | 55585 |
#include "smd3d.h"
#define SMSFACE_MAX 1000
//Àӽà ÆäÀ̽º ¸ñ·Ï ÀúÀå Àå¼Ò
smSTAGE_FACE *smFaceList[ SMSFACE_MAX ];
int smFaceListCnt;
//°É¾î ´Ù´Ò¼ö ÀÖ´Â ÃÖ´ë °íÀúÂ÷
int Stage_StepHeight = 10*fONE;
int smStage_WaterChk; //¹° ýũ¿ë Ç÷¢
smSTAGE_FACE *CheckFace=0;
//Æò¸é°ú 1Á¡ÀÇ À§Ä¡ÀÇ °ªÀ» ±¸ÇÔ ( Æò¸é ¹æ... | mit |
DiamondOhana/jphacks | web_main/style.css | 1761 | body{
font-size:80px;
font-family:"HG丸ゴシックM-PRO", "メイリオ", Meiryo, Osaka, "MS Pゴシック", "MS PGothic", sans-serif;
}
.register{
font-size:80px;
color:#ffffff;
background-color:#404040;
text-align:center;
padding:0.1px 0 0.1px 0;
}
article{
color:#029f49;
background-color:#f2f2f2;
pa... | mit |
vs-team/Papers | 0. MonadicCoroutines/Src/MonadicCoroutines/CSharp/main.py | 3063 | #! /usr/bin/env python
import sys
sys.setrecursionlimit(150000)
import time
count = 0
def my_yield():
global count
count = count + 1
yield
def run_co(c):
global count
count = 0
t0 = time.clock()
for r in c: ()
t = time.clock()
dt = t-t0
print(dt,count,count / dt)
return r
def parallel_(p1,p2)... | mit |
reactivesw/customer_server | src/main/java/io/reactivesw/order/order/infrastructure/enums/OrderState.java | 327 | package io.reactivesw.order.order.infrastructure.enums;
/**
* Created by Davis on 16/11/17.
*/
public enum OrderState {
/**
* Open order state.
*/
Open,
/**
* Confirmed order state.
*/
Confirmed,
/**
* Complete order state.
*/
Complete,
/**
* Cancelled order state.
*/
Cancel... | mit |
annonnim/magsoft | src/Ibw/MagSoftBundle/Entity/ProiecteRepository.php | 3167 | <?php
namespace Ibw\MagSoftBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ProiecteRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ProiecteRepository extends EntityRepository {
public function getLastProiectGeneratId() {
... | mit |
Vatarus/vatarus.github.io | news/2016/05/13/welcome-to-jekyll.html | 7912 | <!DOCTYPE html>
<html>
<!-- debag: HEAD section -->
<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 content="Vatarus's blog" property="og:site_name"><meta content="This is first post!" property="og:title">... | mit |
opendataby/city-dashboard | scripts/README.md | 533 | Скрипты, написанные на хакатоне и не только. Не все доделанные, поэтому требуют описания
JavaScript
* car-parkings.js - Попытка рассчитать количество мест для парковки
* package.json - Файл для установки JavaScript зыависимостей
Python
* csv2sqlite.py - Скрипт для конвертации CSV в SQLite
* osm-extract.py - Попы... | mit |
DukeMobileTech/AndroidSurvey | app/src/main/java/org/adaptlab/chpir/android/survey/utils/AuthUtils.java | 543 | package org.adaptlab.chpir.android.survey.utils;
import org.adaptlab.chpir.android.survey.models.DeviceUser;
public class AuthUtils {
private static DeviceUser sCurrentUser = null;
public static boolean isSignedIn() {
return sCurrentUser != null;
}
public static void signOut() {
... | mit |
flyelmos/Software-University | 07. MSSQL Server - Databases Basics/04. Data Aggregation Exercises/Data Aggregation Exercises/01. Records Count.sql | 63 | USE Gringotts
SELECT COUNT(Id) AS [Count] FROM WizzardDeposits | mit |
littlenag/scala-enthusiasts | scala-decompiled-pt-2/04_trait_extends_trait/04_traits.scala | 114 | trait Printer {
def print:String
}
trait ConstantPrinter extends Printer {
override def print = "constant"
}
| mit |
riteshkukreja/window10 | README.md | 205 | # window 10 Mockup
The project consists of window 10 mock up for the Web. Supports Data storage in a familiar environment and tools to modify the data.
# [Demo](https://riteshkukreja.github.io/window10/)
| mit |
isdnu/DotNetSDK | SDNUMobile.SDK/Entity/Bathroom/BathroomUsageAmount.cs | 809 | using System;
namespace SDNUMobile.SDK.Entity.Bathroom
{
/// <summary>
/// 浴室使用用量实体
/// </summary>
public class BathroomUsageAmount
{
#region 字段
private DateTime _logTime;
private Int32[] _amount;
#endregion
#region 属性
/// <summary>
... | mit |
xabinapal/verlag | extensions/mailer.js | 1288 | ;(function() {
'use strict';
const nodemailer = require('nodemailer');
const htmlToText = require('nodemailer-html-to-text').htmlToText;
module.exports = Extension => class Mailer extends Extension {
_constructor() {
this.send.context = Extension.ROUTER;
}
send(ctx) {
let subject = ct... | mit |
saidurwd/muradschool | backend/_accounts_view.php | 3202 | <?php
include('dbconnect.php');
include('_admin_session.php');
if(isset($_POST['form1'])){
$acc_date = $_POST['acc_date'];
$acc_desc = $_POST['acc_desc'];
$acc_amo = $_POST['acc_amo'];
$acc_dr_cr = $_POST['acc_dr_cr'];
$acc_total = $_POST['acc_total'];
$result = mysql_query("insert into accounts (acc_date, ac... | mit |
fortesinformatica/iesde | spec/concerns/linkable_spec.rb | 514 | require 'spec_helper'
require_relative '../../lib/concerns/linkable'
describe Linkable do
context 'link' do
class Example
include Linkable
def initialize(response)
@response = response
end
end
it 'removes all \ from strings' do
e = Example.new("\"https:\\/\\/ead.local.co... | mit |
ferrugemjs/library | src/example/ui-vendor-example/vendor-test.ts | 144 | export class VendorTest {
private expe: string = 'z100123';
constructor(props:any){
//console.log(props);
//this.expe = props;
}
} | mit |
chaocodes/playlist-manager-django | manager/search/forms.py | 135 | from django import forms
class SearchForm(forms.Form):
criteria = forms.CharField(label='Criteria', max_length=100, required=True) | mit |
digitalocean/droplet_kit | lib/droplet_kit/mappings/domain_mapping.rb | 400 | # frozen_string_literal: true
module DropletKit
class DomainMapping
include Kartograph::DSL
kartograph do
mapping Domain
root_key plural: 'domains', singular: 'domain', scopes: [:read]
property :name, scopes: [:read, :create]
property :ttl, scopes: [:read]
property :zone_file,... | mit |
andifalk/spring-rest-docs-demo | src/main/java/com/example/author/boundary/AuthorServiceImpl.java | 1838 | package com.example.author.boundary;
import com.example.author.entity.Author;
import com.example.author.repository.AuthorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.... | mit |
ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.Controllers.cs | 4843 | using System.Collections.Generic;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
{
/// <summary>
/// CPCHawk: Core Class
/// * Controllers *
/// </summary>
public partial class AmstradCPC
{
/// <summary>
/// The one CPCHawk ControllerDefi... | mit |
ahmedengu/URI-solutions | Beginner/1072 - Interval 2.cpp | 354 | #include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <math.h>
#include<cstdio>
#include<string.h>
using namespace std;
int main(){
int in=0,x,o=0,n;
cin>>n;
for (int i = 0; i < n; i++) {
cin>>x;
if(x>=10&&x<=20)
in++;
else
o++;
}
printf("%d ... | mit |
DimitarIvanov8/software-university | C#_OOP_Basics/Polymorphism/p03_WildFarm/Models/Foods/Vegetable.cs | 164 | namespace p03_WildFarm.Models.Foods
{
public class Vegetable : Food
{
public Vegetable(int quantity) : base(quantity)
{
}
}
} | mit |
cigiko/brdnc.cafe24.com | os/PHPExcel/Classes/PHPExcel/Reader/SYLK.php | 14181 | <?php
/**
* PHPExcel
*
* Copyright (c) 2006 - 2013 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... | mit |
andrewedstrom/cs638project | raw_data/arkive-endangered-html/phelsuma-vanheygeni.html | 3069 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Phelsuma factsheet on ARKive - Phelsuma vanheygeni</title>
... | mit |
justin-espedal/polydes | Common/src/com/polydes/common/comp/utils/HierarchyLeaveListener.java | 1420 | package com.polydes.common.comp.utils;
import java.awt.AWTEvent;
import java.awt.Component;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.MouseEvent;
public class HierarchyLeaveListener extends TemporaryAWTListener implements FocusListener
{
private boolean inHierarchy;... | mit |
hoalongntc/aurelia-material | src/components/layout/sidebar-left.js | 122 | import {bindable} from 'aurelia-framework';
export class SideBarLeft {
@bindable router;
@bindable layoutCnf = {};
}
| mit |
balupton/jquery-sparkle | scripts/jquery.sparkle.js | 134797 | /**
* @depends nothing
* @name core.array
* @package jquery-sparkle {@link http://balupton.com/projects/jquery-sparkle}
*/
/**
* Remove a element, or a set of elements from an array
* @version 1.0.0
* @date June 30, 2010
* @copyright John Resig
* @license MIT License {@link http://creativecommons.org/licenses... | mit |
Neochic/Woodlets | js/content-area-manager.js | 7553 | /* globals document, ajaxurl, tinymce, window */
define([
'jquery',
'modal',
'jquery-ui.sortable'
], function ($, modal) {
return function(areas, callback) {
var $areas = $(areas).filter(':not(.initialized)');
$areas.addClass('initialized');
var updateData = function() {
... | mit |
dkd/palani | spec/factories/content_element_text_factory.rb | 146 | Factory.define :content_element_text do |p|
p.content_element { |c| c.association(:content_element, :element_type => "ContentElementText") }
end | mit |
aloy/aloy.github.io | _pages/for-students.md | 1367 | ---
title: "Information for Students"
layout: single
permalink: "/for-students/"
author_profile: true
---
## Office Hours
My office is 410 Briggs Hall. My office hours this fall are
* Monday 3:10-5:00 p.m.
* Tuesday 1:50-3:20 p.m.
* Thursday 1:50-3:20 p.m.
* Friday 3:10 - 4:20 p.m.
## Lawrence's Academic Calendar ... | mit |
mir3z/jquery.typographer | test/jquery.typographer.punctuation.test.js | 4996 | $(document).ready(function() {
var $sandbox = $('#sandbox');
module('typographer_punctuation', {
teardown: function() {
teardownSandbox($sandbox);
}
});
var bdquo = '\u201E'; // „
var rdquo = '\u201D'; // ”
var laquo = '\u00AB'; // «
var raquo ... | mit |
amaslenn/Codility | Lesson 8 - Leader/EquiLeader.md | 1339 | A non-empty array `A` consisting of `N` integers is given.
The leader of this array is the value that occurs in more than half of the elements of `A`.
An equi leader is an index `S` such that `0 ≤ S < N − 1` and two sequences `A[0], A[1], ..., A[S]` and `A[S + 1], A[S + 2], ..., A[N − 1]` have leaders of the same val... | mit |
jiadaizhao/LeetCode | 0201-0300/0271-Encode and Decode Strings/README.md | 1186 | # 271. Encode and Decode Strings
Difficulty: Medium
https://leetcode.com/problems/encode-and-decode-strings/
Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings.
Machine 1 (sender) has the function:
```
str... | mit |
jnugh/php-miniupload | tpl/default/list.php | 603 | <?php
include('head.php');
global $TPL;
?>
<div class="page-header">
<h1>Dateiliste</h1>
</div>
<?php
if($_SESSION['login_msg']) {
$_SESSION['login_msg']=false;
?>
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>Erfolgreich eingeloggt.</h4>
Willkommen
... | mit |
apita1973/firego | README.md | 1523 | # Firego
A Firebase client written in Go
##### Under Development
The API may or may not change radically within the next upcoming weeks.
## Installation
```bash
go get -u github.com/zabawaba99/firego
```
## Usage
Import firego
```go
import "github.com/zabawaba/firego"
```
Create a new firego reference
```go
f... | mit |
FaCuZ/torrentmedia | app/js/configs.js | 2228 | module.exports = {
general: {
lenguage (){ temp['locale'] = event.target.value },
close (){ temp['exit_without_ask'] = event.target.checked },
minimize (){ temp['exit_forced'] = event.target.checked },
hide (){ temp['start_hide'] = event.target.checked },
delete (){ temp['ask_on_delete'] = event.ta... | mit |
jbrantly/yabble | test/modules1.0/wrappedTests/relative/program.js | 356 | /* This file has been generated by yabbler.js */
require.define({
"program": function(require, exports, module) {
var test = require('test');
var a = require('submodule/a');
var b = require('submodule/b');
test.assert(a.foo == b.foo, 'a and b share foo through a relative require');
test.print('DONE', 'info');
}}, ["te... | mit |
bitcoin-s/bitcoin-s-core | core-test/src/test/scala/org/bitcoins/core/protocol/transaction/TransactionWitnessSpec.scala | 1167 | package org.bitcoins.core.protocol.transaction
import org.bitcoins.core.crypto.{ECPrivateKey, EmptyDigitalSignature}
import org.bitcoins.testkit.core.gen.WitnessGenerators
import org.bitcoins.core.protocol.script._
import org.scalacheck.Prop
import org.scalatest.{FlatSpec, MustMatchers}
/**
* Created by chris on 11... | mit |
LuukMoret/gulp-angular-examples | es5/material/src/app/main/main.controller.js | 906 | (function() {
'use strict';
angular
.module('material')
.controller('MainController', MainController);
/** @ngInject */
function MainController($timeout, webDevTec, toastr) {
var vm = this;
vm.awesomeThings = [];
vm.classAnimation = '';
vm.creationDate = 1437577753474;
vm.showToas... | mit |
Intrainos/SamsungLTool | src/main/java/io/github/intrainos/samsungltool/Main.java | 5768 | package io.github.intrainos.samsungltool;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
public class Main extends Activity {
@Override
protected void onCre... | mit |
standart-n/sn-oz-client | view/feed/feedNews.html | 3386 |
<li data-post-id="[%= id %]" class="media">
<div class="pull-left"><img width="48px" height="48px" src="http://oz.st-n.ru/publish/users/userpics/48x48/photo.png" class="media-object"/></div>
<div class="media-body">
<h4 class="media-heading">
[%= author.company %]
<small class="muted">[%= aut... | mit |
nabdsharqi/nabdsharqi.github.io | _site/abroad/migrationsverket/index.html | 16555 | <!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<html prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>مصلحة الهجرة السويدية تدعو طالبي لعدم تصديق الشائعات</title>
<link href="//cdnjs.cloudflar... | mit |
diegodoumecq/joymap | examples/Main/styles.ts | 872 | import { makeStyles } from '@material-ui/core/styles';
const drawerWidth = 240;
export const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
height: '100vh',
},
appBar: {
width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth,
},
drawer: {
width: drawerWidth,
f... | mit |
ohduran/CrowdFinanceInfographic | README.md | 2956 | # Crowd Finance Infographic
## Intro
This assessment has been deployed showcasing my abilities as a Data Scientist. For more information on how to make use of this project, please read the [Documentation](docs/index.md).
## Assessment
A user wants to produce an infographic that summaries the state of the crowdfundin... | mit |
budparr/thenewdynamic | content/tool/gatsby.md | 793 | ---
title: Gatsby
repo: gatsbyjs/gatsby
date: 2015-10-02T21:18:00.000+00:00
posted_date: '2015-10-02T21:18:00.000+00:00'
featured: true
slug: gatsby
tools:
- Hosting-Deployment
- Static Site Generator
urls:
website: https://www.gatsbyjs.org/
github: https://github.com/gatsbyjs/gatsby
twitter: https://twitter.com/... | mit |
Flexberry/FlexberryStudy2015 | Belikova Anastasiya/Individual work/Objects/ТоварНаСкладе.cs | 11027 | //------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
// </auto-ge... | mit |
melvin0008/quizcreator | css/quiz.css | 4738 | *{
margin:0px;
padding:0px;
}
body{
text-align:left;
font-family:Arial;
font-size:20px;
display:-webkit-box;
-webkit-box-pack:center;
margin:0px;
background-image: url('../images/gray.jpg');
}
#time{float:left;
color:#ddd;
padding: 20px;
}
#wrapper{/*position:relative;*/
height:665px;
width: 100%;
... | mit |
chafey/cornerstoneWADOImageLoader | src/imageLoader/wadors/metaData/getOverlayPlaneModule.js | 1430 | import getValue from './getValue.js';
import getNumberValue from './getNumberValue.js';
export default function getOverlayPlaneModule(metaData) {
const overlays = [];
for (let overlayGroup = 0x00; overlayGroup <= 0x1e; overlayGroup += 0x02) {
let groupStr = `x60${overlayGroup.toString(16)}`;
if (groupStr... | mit |
rahul-ramadas/leetcode | combinations/Solution.6808610.py | 132 | class Solution:
def combine(self, n, k):
return [list(elem) for elem in itertools.combinations(xrange(1, n + 1), k)]
| mit |
e2themillions/swaggatar | public/js/app.js | 1462 | 'use strict';
/**********************************************************************
* Angular Application (client side)
**********************************************************************/
angular.module('SwagApp', ['ngRoute', 'appRoutes', 'ui.bootstrap', 'ui.bootstrap.tpls' , 'MainCtrl', 'LoginCtrl', 'MySwag... | mit |
z2s8/erettsegit | test_erettsegit.py | 1186 | import os
import unittest
from erettsegit import argparse, yearify, monthify, levelify
from erettsegit import MessageType, message_for
class TestErettsegit(unittest.TestCase):
def test_yearify_raises_out_of_bounds_years(self):
with self.assertRaises(argparse.ArgumentTypeError):
yearify(2003)
... | mit |
fooheads/boxy | lib/boxy/homesick.rb | 505 | module Boxy
class HomesickHandler
def install(url, options)
url = URI.parse(url)
name = File.basename(url.path)
unless castle_cloned?(name)
system "homesick clone #{url.to_s}"
system "homesick symlink #{name}"
else
puts "skipping #{name}, already installed"
en... | mit |
A425/django-nadmin | nadmin/views/list.py | 25811 | from django.core.exceptions import PermissionDenied, ObjectDoesNotExist
from django.core.paginator import InvalidPage, Paginator
from django.db import models
from django.http import HttpResponseRedirect
from django.template.response import SimpleTemplateResponse, TemplateResponse
from django.utils.datastructures import... | mit |
lboulay/sonata | src/Dragoon/MoviesBundle/DragoonMoviesBundle.php | 134 | <?php
namespace Dragoon\MoviesBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DragoonMoviesBundle extends Bundle
{
}
| mit |
aurelia-ui-toolkits/aurelia-bootstrap-bridge | src/button/button.js | 1041 | import { bindable, customAttribute, inject } from 'aurelia-framework';
import { AttributeManager } from '../common/attributeManager';
@customAttribute('b-button')
@inject(Element)
export class BButton {
@bindable bStyle = 'default';
@bindable bSize = null;
@bindable bBlock = null;
@bindable bDisabled ... | mit |
Odder/OddRace | src/room/room.style.css | 382 | .leftColumn {
flex-grow: 1;
}
.rightColumn {
max-width: 500px;
display: flex;
flex-flow: column;
flex-grow: 1;
}
.box {
width: 480px;
height: calc(50vh - 20px);
border-radius: 2px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 5px 0px rgba(120, 120, 120,0.5);
ma... | mit |
Grosloup/multisite3 | src/ZPB/AdminBundle/Entity/AnimationProgramRepository.php | 1680 | <?php
namespace ZPB\AdminBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* AnimationProgramRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class AnimationProgramRepository extends EntityRepository
{
public function animationsInMonth($mont... | mit |
WarToaster/HangOn | libraries/lithium/tests/cases/net/http/RouterTest.php | 22379 | <?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2011, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace lithium\tests\cases\net\http;
use lithium\action\Request;
use lithium\net\http\Route;
use lithium\... | mit |
SuperWangKai/DirectX-Graphics-Samples | Samples/Desktop/D3D12MeshShaders/src/MeshletCull/CullDataVisualizer.cpp | 7493 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | mit |
silmerusse/fudge_pathfinding | include/load_matrix.h | 776 | #ifndef FUDGE_LOAD_MATRIX_H_
#define FUDGE_LOAD_MATRIX_H_
#include <string>
#include <vector>
#include <fstream>
#include "util/log.h"
namespace fudge {
template <typename WeightType>
static std::vector<WeightType> load_matrix(const std::string &filename) {
std::vector<WeightType> v;
std::ifstream ifs(filename)... | mit |
thelinmichael/spotify-web-api-java | src/test/java/com/wrapper/spotify/requests/data/player/GetUsersCurrentlyPlayingTrackRequestTest.java | 4985 | package com.wrapper.spotify.requests.data.player;
import com.wrapper.spotify.TestUtil;
import com.wrapper.spotify.enums.CurrentlyPlayingType;
import com.wrapper.spotify.enums.ModelObjectType;
import com.wrapper.spotify.exceptions.SpotifyWebApiException;
import com.wrapper.spotify.model_objects.miscellaneous.CurrentlyP... | mit |
georgewfraser/vscode-javac | src/main/java/org/javacs/rewrite/JavaType.java | 307 | package org.javacs.rewrite;
/** JavaType represents a potentially parameterized named type. */
public class JavaType {
final String name;
final JavaType[] parameters;
public JavaType(String name, JavaType[] parameters) {
this.name = name;
this.parameters = parameters;
}
}
| mit |
armonge/voxa | src/ssml.ts | 1552 | /*
* Copyright (c) 2018 Rain Agency <contact@rain.agency>
* Author: Rain Agency <contact@rain.agency>
*
* 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 wi... | mit |
yasuyuki/m-activerecord | .travis_build_config.rb | 122 | MRuby::Build.new do |conf|
toolchain :gcc
conf.gembox 'default'
conf.gem '../m-activerecord'
conf.enable_test
end
| mit |
JoseSoto33/proyecto-sismed | assets/js/funciones-formulario-evento.js | 1944 | $(document).ready(function(){
var nav = navigator.userAgent.toLowerCase(); //La variable nav almacenará la información del navegador del usuario
if(nav.indexOf("firefox") != -1){ //En caso de que el usuario este usando el navegador MozillaFirefox
$("#fecha_inicio").mask("9999-99-99",{placehold... | mit |
mrlew/react-number-picker | dist/react-number-picker.js | 10328 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["shared-components"]... | mit |
DeRossi/Training_CI | application/config/config.php | 18210 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | mit |
TejasM/picasso | picasso/yellow_pages.py | 3125 | import json
import re
from pygeocoder import Geocoder
from pygeolib import GeocoderError
import requests
# from picasso.index.models import Tag
from picasso.index.models import Address, Listing, Tag
__author__ = 'tmehta'
url = 'http://www.yellowpages.ca/ajax/search/music+teachers/Toronto%2C+ON?sType=si&sort=rel&pg=1&... | mit |
wpxgit/docker-atlassian-jira | spec/support/shared_examples/using_a_mysql_database_shared_example.rb | 678 | require 'timeout'
require 'spec_helper'
shared_examples 'using a mysql database' do
before :all do
within 'form#jira-setup-database' do
# select using external database
choose 'jira-setup-database-field-database-external'
# allow some time for the DOM to change
sleep 1
# fill in database configuratio... | mit |