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
body { font-family: 'Rancho', cursive; font-weight: bold; margin: auto; padding: 5%; background-color: #F49D37; } .score, .game { color: #0A1128; font-size: 28px; } #board { width: 450px; height: 450px; } #board .square { width: 33.333333333%; height: 33.333333333%; background-color: #496DD...
delamoe/fcc-tic-tac-toe
ttt.css
CSS
mit
911
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Couch411 | Login</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/boot...
couchbaselabs/touchbase
TouchbaseModular/public/deprecated/pictureUpload.html
HTML
mit
3,981
package com.ms.meizinewsapplication.features.meizi.model; import android.content.Context; import com.ms.meizinewsapplication.features.base.pojo.ImgItem; import com.ms.retrofitlibrary.web.MyOkHttpClient; import org.loader.model.OnModelListener; import java.util.List; import rx.Observable; import rx.Subscription; /...
qq137712630/MeiZiNews
app/src/main/java/com/ms/meizinewsapplication/features/meizi/model/DbGroupBreastModel.java
Java
mit
1,004
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("12...
nellypeneva/SoftUniProjects
01_ProgrFundamentalsMay/11_Data-Types-Exercises/12_RectangleProperties/Properties/AssemblyInfo.cs
C#
mit
1,420
import logging.handlers import os _pabotlog = logging.getLogger('PABot') _pabotlog.setLevel(logging.DEBUG) _logPath = os.path.abspath("./logging/pabot.log") _formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s') _consoleStreamHandler = logging.StreamHandler() _consoleStreamHandler.s...
KevinJMcGrath/Symphony-Ares
modules/plugins/PABot/logging.py
Python
mit
796
{# ------------------------------------------------------- #} {# INDIVIDUAL VIEW FOR EACH storycontributor #} {# This page can use any data from http:localhost:2000/cms/#/form/storycontributor/ #} {# Webhook uses the SWIG.js (like Djagno/Twig) templating system. Their documentation is here: #} {# http://paularmstrong.g...
ericwebster/project-crayfish
templates/storycontributor/individual.html
HTML
mit
4,116
// // BBBClockViewController.h // BBBLayer // // Created by LinBin on 16/7/23. // Copyright © 2016年 LinBin. All rights reserved. // #import <UIKit/UIKit.h> @interface BBBClockViewController : UIViewController @end
0bin/Project-collection
BBBLayer/BBBLayer/BBBClockViewController.h
C
mit
224
<?php namespace Phpmvc\Comment; /** * To attach comments-flow to a page or some content. * */ class CommentController implements \Anax\DI\IInjectionAware { use \Anax\DI\TInjectable; /** * View all comments. * * @return void */ public function viewAction($page) { $comm...
frjf14/Projekt
vendor/phpmvc/comment/src/Comment/CommentController.php
PHP
mit
3,878
#!/bin/bash # Exit immediately if any commands return non-zero set -e # Output the commands we run set -x # This is a modified version of the Cloud Foundry Blue/Green deployment guide: # https://docs.pivotal.io/pivotalcf/devguide/deploy-apps/blue-green.html test $URL # Update the blue app cf unmap-route citizenship...
AusDTO/citizenship-appointment-server
bin/cideploy.sh
Shell
mit
886
import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matplotlib/issues/5907 says this should fix "Exceeded cell ...
vdods/heisenberg
heisenberg/plot/__main__.py
Python
mit
4,283
def send_simple_message(): return requests.post( "https://api.mailgun.net/v3/sandbox049ff464a4d54974bb0143935f9577ef.mailgun.org/messages", auth=("api", "key-679dc79b890e700f11f001a6bf86f4a1"), data={"from": "Mailgun Sandbox <postmaster@sandbox049ff464a4d54974bb0143935f9577ef.mailgun.org>", ...
nicorellius/pdxpixel
pdxpixel/core/mailgun.py
Python
mit
1,073
<?php namespace Ooxif\LaravelSpecSchema\SqlServer; trait BlueprintTrait { }
ooxif/laravel-spec-schema
src/Ooxif/LaravelSpecSchema/SqlServer/BlueprintTrait.php
PHP
mit
77
def load_keys(filepath): """ Loads the Twitter API keys into a dict. :param filepath: file path to config file with Twitter API keys. :return: keys_dict :raise: IOError """ try: keys_file = open(filepath, 'rb') keys = {} for line in keys_file: key, value =...
nhatbui/LebronCoin
lebroncoin/key_loader.py
Python
mit
654
// Copyright (c) 2009 Satoshi Nakamoto // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. // // Why base-58 instead of standard base-64 encoding? // - Don't want 0OIl characters that look the same in some fonts and // ...
originalbitcoin/original-bitcoin-client-0.1.0
base58.h
C
mit
5,438
"""Main entry points for scripts.""" from __future__ import print_function, division from argparse import ArgumentParser from collections import OrderedDict from copy import copy from datetime import datetime import glob import json import logging import math import os import scipy.stats import numpy as np from .ve...
snfactory/cubefit
cubefit/main.py
Python
mit
26,267
--- title: "Aggregates" description: "Reference documentation for Sensu Named Aggregates." product: "Sensu Core" version: "1.8" weight: 4 menu: sensu-core-1.8: parent: reference --- ## Reference documentation - [What is a Sensu named aggregate?](#what-is-a-check-aggregate) - [When should named aggregates be us...
sensu/sensu-docs
archived/sensu-core/1.8/reference/aggregates.md
Markdown
mit
5,864
module IncomeTax module Countries class Morocco < Models::Progressive register 'Morocco', 'MA', 'MAR' currency 'MAD' level 30_000, '0%' level 50_000, '10%' level 60_000, '20%' level 80_000, '30%' level 180_000, '34%' remainder '38%' end end end
askl56/income-tax
lib/income_tax/countries/morocco.rb
Ruby
mit
310
<!DOCTYPE html> <html> <head lang="ru"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Template</title> <link href="http://themesanytime.com/startui/demo/img/favicon.144x144.png" rel="apple-...
racerx2000/ne_stenka
application/demo/profile.html
HTML
mit
69,361
using System; namespace sep20v1.Areas.HelpPage { /// <summary> /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. /// </summary> public class TextSample { public TextSample(string text) { ...
peteratseneca/dps907fall2013
Week_03/sep20v1/sep20v1/Areas/HelpPage/SampleGeneration/TextSample.cs
C#
mit
883
# bot-away [![Build Status](https://secure.travis-ci.org/sinisterchipmunk/bot-away.png)](http://travis-ci.org/sinisterchipmunk/bot-away) * http://github.com/sinisterchipmunk/bot-away Unobtrusively detects form submissions made by spambots, and silently drops those submissions. The key word here is "unobtrusive" -- th...
sinisterchipmunk/bot-away
README.md
Markdown
mit
12,801
<?php namespace YB\Bundle\RemoteTranslationsBundle\Tests\Translation\Loader; use PHPUnit_Framework_TestCase; /** * Class AwsS3LoaderTest * @package YB\Bundle\RemoteTranslationsBundle\Tests\Translation\Loader */ class AwsS3LoaderTest extends PHPUnit_Framework_TestCase { /** * @param mixed $expected *...
yurijbogdanov/symfony-remote-translations-bundle
Tests/Translation/Loader/AwsS3LoaderTest.php
PHP
mit
636
package com.syncano.android.lib.modules.users; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.syncano.android.lib.modules.Params; import com.syncano.android.lib.modules.Response; /** * Params to create new user. */ public class ParamsUserNew extends Params {...
Syncano/syncano-android-demo
Eclipse/SyncanoLib/src/com/syncano/android/lib/modules/users/ParamsUserNew.java
Java
mit
1,864
XHCyclicReuseScrollView ======================= XHCyclicReuseScrollView is an extensible, reusable, recyclable rolling scrollView element.
RyanTech/XHCyclicReuseScrollView
README.md
Markdown
mit
140
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>[POJ] 1276. Cash Machine &mdash; amoshyc&#39...
amoshyc/CPsolution
docs/poj/p1276.html
HTML
mit
21,542
class BeachApiCore::TeamUpdate include Interactor def call if context.team.update context.params context.status = :ok else context.status = :bad_request context.fail! message: context.team.errors.full_messages end end end
beachio/beach-api-core
app/interactors/beach_api_core/team_update.rb
Ruby
mit
259
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/wait.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include "server.h" #include "rio.h" int wri...
cheniison/Experiment
OS/WebServer/server.c
C
mit
4,428
# -*- coding: utf-8 -*- def calc_note(count, value): qnt = 0 if count >= value: qnt = int(count) / value print '%d nota(s) de R$ %d.00' % (qnt, value) return count - qnt * value n = float(raw_input()) print 'NOTAS:' n = calc_note(n, 100) n = calc_note(n, 50) n = calc_note(n, 20) n = calc_no...
vicenteneto/online-judge-solutions
URI/1-Beginner/1021.py
Python
mit
907
## PostCSS 插件列表 [![npm version](https://img.shields.io/npm/v/postcss-plugins.svg)](https://www.npmjs.com/package/postcss-plugins) [![contributors](https://img.shields.io/github/contributors/himynameisdave/postcss-plugins.svg)](https://github.com/himynameisdave/postcss-plugins/blob/master/docs/authors.md) 开箱即用型"官方和非官方...
himynameisdave/postcss-plugins
README-zh_CN.md
Markdown
mit
3,442
<!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.6.0_18) on Thu Dec 18 17:18:35 PST 2014 --> <title>Uses of Interface java.net.SocketImplFactory (Java Platform SE 7 )</title> <meta name="d...
fbiville/annotation-processing-ftw
doc/java/jdk7/java/net/class-use/SocketImplFactory.html
HTML
mit
7,301
'use strict'; module.exports = function (grunt) { var exec = require('child_process').exec; grunt.registerMultiTask('install-dependencies', 'Installs npm dependencies.', function () { var cb, options, cp; cb = this.async(); options = this.options({ cwd: '', stdout: true, stderr: tru...
justhamade/grunt-install-dependencies
tasks/install-dependencies.js
JavaScript
mit
949
// Copyright slx7R4GDZM // Distributed under the terms of the MIT License. // Refer to the License.txt file for details. #pragma once #include "Common-Things.h" const string BRIGHTNESS_OPTIONS[] = { "BRIGHTNESS 15", "BRIGHTNESS 12", "BRIGHTNESS 7", "BRIGHTNESS 0" }; const string GLOBAL_SCALE_OPTIONS...
slx7R4GDZM/Sine-Toolkit
Source/Other/Text.h
C
mit
4,630
<?php ini_set('display_errors', 1); ini_set('error_reporting', -1); $loader = require __DIR__ . '/../vendor/autoload.php'; $loader->add('ThisPageCannotBeFound', __DIR__);
thispagecannotbefound/php-signals
tests/bootstrap.php
PHP
mit
173
<?php /* Safe sample input : get the field userData from the variable $_GET via an object, which store it in a array SANITIZE : use of preg_replace construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee,...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_95/safe/CWE_95__object-indexArray__func_preg_replace__echo-sprintf_%s_simple_quote.php
PHP
mit
1,579
ActionController::Dispatcher.to_prepare do # Extend :account model to add :issues association. Account.send(:include, AccountServiceRequestAssociations) # Make issues observable. ActivityObserver.instance.send :add_observer!, ServiceRequest # Add :issues plugin helpers. ActionView::Base.send(:include, ...
jensonzhao/crm_fieldservices
lib/crm_fieldservices.rb
Ruby
mit
470
<style type="text/css"> .escondido { display: none; } </style> <div id="div1" class="xxx">div1</div> <div id="div2" class="escondido">2</div>
massahud/zf2-testeunidade
js-test/fixtures/exemplos/divs.html
HTML
mit
157
--- layout: post title: How the Go team could track what to include in release notes date: 2021-03-13 author: Paschalis Ts tags: [golang, foss] mathjax: false description: "" --- Release notes can sometimes be exciting to read. Condensing the work since the last release into a couple of paragraphs, announcing n...
tpaschalis/tpaschalis.github.io
_posts/2021-03-13-relnote-yes.markdown
Markdown
mit
6,148
import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'chips-demo', templateUrl: 'chips-demo.html', styleUrls: ['chips-demo.css'] }) export class ChipsDemoComponent { }
liuy97/angular2-material-seed
src/client/app/material/demo-app/chips/chips-demo.ts
TypeScript
mit
211
<section data-ng-controller="ConsumersController"> <div class="page-header"> <h1>New Order</h1> </div> <div class="row" ng-show="errors.has()"> <div class="alert alert-danger" ng-repeat="err in errors.all"> {{ err }} </div> </div> <div class="col-md-12" data-ng-...
foysalit/hive-customer
public/modules/consumers/views/create-consumer.client.view.html
HTML
mit
4,740
using System; using System.Collections.Generic; using System.Text; public interface IIdentifiable { string Id { get; } }
giggals/Software-University
Exercises-Interfaces/2. Multiple Implementation/IIdentifiable.cs
C#
mit
131
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2015 - 2019 Dr. Marc Mültin (V2G Clarity) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
V2GClarity/RISE-V2G
RISE-V2G-EVCC/src/main/java/com/v2gclarity/risev2g/evcc/states/WaitForAuthorizationRes.java
Java
mit
4,963
/** * TatoSSO Single Sign On (SSO) system * * Copyright (C) 2014 Allan SIMON <allan.simon@supinfo.com> * See accompanying file COPYING.TXT file for licensing details. * * @category TatoSSO * @author Allan SIMON <allan.simon@supinfo.com> * @package Contents * */ #ifndef TATO_SSO_CONTENTS_TOKENS_H #define...
allan-simon/tatoSSO
app/src/contents/Tokens.h
C
mit
1,177
<?php declare(strict_types=1); namespace Phpcq\Runner\Test\Console\Definition; use Phpcq\Runner\Console\Definition\OptionDefinition; use Phpcq\Runner\Console\Definition\OptionValue\OptionValueDefinition; use PHPUnit\Framework\TestCase; /** @covers \Phpcq\Runner\Console\Definition\OptionDefinition */ final class Opt...
phpcq/phpcq
tests/Console/Definition/OptionDefinitionTest.php
PHP
mit
2,135
<?php if (isset($user_data['id'])) { ?> <script> var $records_per_page = '<?php echo $this->security->get_csrf_hash(); ?>'; var page_url = '<?php echo base_url(); ?>'; var $user_data ="<?php echo $user_data['id']?>"; </script> <script s...
akashbachhania/jeet99
application/views/includes/navbar.php
PHP
mit
45,301
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The NovaCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "miner.h"...
eddietributecoin/EddieCoin
src/miner.cpp
C++
mit
19,965
using System.Threading.Tasks; using Lykke.Service.ExchangeConnector.Client.Models; using MarginTrading.Backend.Core; using MarginTrading.Contract.RabbitMqMessageModels; namespace MarginTrading.Backend.Services.Notifications { public interface IRabbitMqNotifyService { Task AccountHistory(string transactionId, stri...
LykkeCity/MT
src/MarginTrading.Backend.Services/Notifications/IRabbitMqNotifyService.cs
C#
mit
1,359
require 'ims/lti' class GuideController < ApplicationController def home end def xml_builder @placements = CanvasExtensions::PLACEMENTS end def xml_config tc = IMS::LTI::Services::ToolConfig.new(:title => "Example Tool Provider", :launch_url => blti_launch_url) tc.description = "This is a Sample...
instructure/lti_tool_provider_example
app/controllers/guide_controller.rb
Ruby
mit
2,081
require_relative '../../../spec_helper' require_relative 'shared/constants' require_relative '../../../core/file/shared/read' describe "Digest::SHA512.file" do describe "when passed a path to a file that exists" do before :each do @file = tmp("md5_temp") touch(@file, 'wb') {|f| f.write SHA512Constan...
ruby/rubyspec
library/digest/sha512/file_spec.rb
Ruby
mit
1,321
--- layout: post title: "ASP.NET Core基本原理(7)-日志" subtitle: "ASP.NET Core Fundamentals-Logging" tags: [netcore, fundamentals, logging] --- ASP.NET Core内置了对日志的支持。通过依赖注入请求`ILoggerFactory`或者`ILogger<T>`可以为应用程序添加日志功能。 ## 在应用程序中实现日志 如果请求了`ILoggerFactory`,那么日志记录器(Logger)就必须通过它的`CreateLogger`方法来创建: ```csharp var...
charliethinker/charliethinker.github.io
_posts/2016-12-07-fundamentals-7-logging.markdown
Markdown
mit
6,820
using System; using System.Threading.Tasks; using Anotar.NLog; using CroquetAustralia.Domain.Services.Serializers; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; namespace CroquetAustralia.Domain.Services.Queues { public abstract class QueueBase : IQueueBase { privat...
croquet-australia/api.croquet-australia.com.au
source/CroquetAustralia.Domain/Services/Queues/QueueBase.cs
C#
mit
1,778
module ModPlanet use ModConstants use ModSizeGITM implicit none ! Modified (01/18/07) : SWB : Aij, s-exponents for mutual diffusion ! Modified (06/12/08) : SWB : ordering to species revised ! Modified (06/12/08) : SWB : nSpecies = 6; nSpeciesTotal = 11 ! Majors (6): COntrol the Pressures Gradients and w...
dpawlows/MGITM
src/ModMars.f90
FORTRAN
mit
45,867
class CreatePhrases < ActiveRecord::Migration def change create_table :phrases do |t| t.belongs_to :country t.string :hello t.string :please t.string :thanks t.string :bathroom t.timestamps end end end
cicadas-2014/Elsewhere
db/migrate/20140626220711_create_phrases.rb
Ruby
mit
250
const electron = require('electron'); const ipcRenderer = electron.ipcRenderer; window.onload = function() { ipcRenderer.send('game-preview-loaded'); } ipcRenderer.on('game-preview-start', function(event, data) { var app = new Application({ // resize: true, fullscreen: true, antyAliasing: true, ...
Baransu/Amble-Engine
src/game-preview/js/index.js
JavaScript
mit
1,676
module.exports = { token: 'TELEGRAM_BOT_TOKEN', polling: { timeout: 3, limit: 100 } };
yurich/vow-telegram-bot
examples/settings.js
JavaScript
mit
115
/* ColorComboBoxTest.cs -- * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Status: poor */ #region Using directives using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using ...
amironov73/ManagedIrbis
Source/UITests/Sources/Tests/ColorComboBoxTest.cs
C#
mit
1,565
<?php return array( '_root_' => 'admin/index', // The default route '_404_' => 'welcome/404', // The main 404 route 'admin/detail/:id' => array('admin/detail/$1', 'name' => 'detail'), 'admin/write' => '/admin/write/', 'test'=> 'api/test', 'blog'=> 'api/blog', 'blog/insert'=> 'api/blog/inser...
yyoshinori/CastlePortal
fuel/app/config/routes.php
PHP
mit
636
Installing Sencha Touch ----------------------- [Download the Sencha Touch SDK][sdk], and unzip the archive. Assuming that you've saved the SDK into your downloads folder (`~/Downloads/sencha-touch-2-b3`), you can run the following commands in the terminal: cd path/to/sencha-touch-2-recipes/recipe2 cp -R ~/Do...
bradscode/sencha-touch-2-recipes
recipe2/touch/README.md
Markdown
mit
515
<!-- Modal --> <div class="modal fade" id="explor_post" tabindex="-1" role="dialog" aria-labelledby="post_structlLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span...
freon-lunarion/dew
application/modules/om/views/_element/orgPostStruct_modal.php
PHP
mit
1,450
using System.Collections.ObjectModel; using ActiproSoftware.Text; using ActiproSoftware.Text.Utility; using ActiproSoftware.Windows.Controls.SyntaxEditor; using ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation; using NQuery.Authoring.ActiproWpf.SymbolContent; using NQuery.Authoring.ActiproWp...
terrajobst/nquery-vnext
src/NQuery.Authoring.ActiproWpf/QuickInfo/NQueryQuickInfoProvider.cs
C#
mit
2,436
#include <iostream> using namespace std; void display(const int *xPos, const int *yPos); void move(int *xPos, int *yPos); int main(void) { int x = 10; int y = 20; display(&x, &y); move(&x, &y); display(&x, &y); return 0; } void display(const int *xPos, const int *yPos) { // btw const not needed for this c...
BedrockDev/Sunrin2017
Software/Game Programming/Codes/ConsoleApplication5/ConsoleApplication5/ConstPointer.cpp
C++
mit
468
<!DOCTYPE html> <HTML><head><TITLE>Manpage of TRUE</TITLE> <meta charset="utf-8"> <link rel="stylesheet" href="/css/main.css" type="text/css"> </head> <body> <header class="site-header"> <div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div> <div class="site-description">...
yuweijun/yuweijun.github.io
manpages/man1/true.1.html
HTML
mit
2,980
class Room < ActiveRecord::Base validates :name, :presence => true has_many :users has_many :room_logs end
ichylinux/chat
app/models/room.rb
Ruby
mit
114
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="/static/img/ruby.ico" /> <title>43基本的面向对象分析和设计 - LJZN</tit...
Ljzn/ljzn.github.io
_site/lrthw/2016/07/04/lrhw-43.html
HTML
mit
23,201
Template.friendPosts.onCreated(function() { Bisia.Notification.resetNotify('note', 'post'); }) Template.friendPosts.helpers({ getPost: function(postId) { var post = Posts.findOne(postId); if (post) { var user = Users.findOne({ '_id': post.authorId }, { 'fields': { 'username': 1, 'profile.city': 1, ...
redbaron76/Bisiacaria.com
client/pages/friend_posts.js
JavaScript
mit
1,141
import { all, takeEvery } from 'redux-saga/effects'; import actions from '#actions'; import handleShareFormChange from './startAlbumsSharingService/handleShareFormChange'; import handleShareFormSubmit from './startAlbumsSharingService/handleShareFormSubmit'; import handleShareItemsSelect from './startAlbumsSharingSer...
pathephone/pathephone-desktop
src/renderer/sagas/startApp/startServices/startAlbumsSharingService.js
JavaScript
mit
680
var fs = require('fs'), eol = require('eol'), path = require('path'), mkdirp = require('mkdirp'), watch = require('watch'); var specialFiles = { 'welcome.md': function(fileContent, consoleContent) { consoleContent.welcome = processFileContent(fileContent); }, 'config.json': function...
furti/mighty-quest-for-tux
parse-content.js
JavaScript
mit
3,541
#!/bin/bash set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" channel() { if [ -n "${TRAVIS}" ]; then if [ "${TRAVIS_RUST_VERSION}" = "${CHANNEL}" ]; then pwd (set -x; cargo "$@") fi elif [ -n "${APPVEYOR}" ]; then if [ "${APPVEYOR_RUST_CHANNEL}" = "${...
tomasvdw/bitcrust
serde_json/travis.sh
Shell
mit
1,072
<?php include_once('conexao.class.php'); class Disciplina{ public $id_disciplina; public $nome; public $professor; public $curso; public $carga_horaria; public function __construct(){ //print "Disciplina instanciada!"; } public function gravar(){ $sql = "insert into disciplina (nome, professo...
STRVIRTU/tcc-2017
less/disciplina.class.php
PHP
mit
960
{{{ "bodyClass" : "bg-white", "screenshot" : { "background-size" : "contain" } }}} <div class="cf"> <div class="fl w-50 w-20-ns tc pv5 bg-black-05"> 1 </div> <div class="fl w-50 w-20-ns tc pv5 bg-black-10"> 2 </div> <div class="fl w-100 w-20-ns tc pv5 bg-black-20"> 3 </div> <div cla...
tachyons-css/tachyons-css.github.io
src/components/layout/five-column-collapse-alternate.html
HTML
mit
449
// // MIT License // // Copyright 2019 // // 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, merge, publi...
thejunkjon/jones
source/jones/controller/controller.cc
C++
mit
6,251
{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block title %}Flasky - Edit Teacher Profile{% endblock %} {% block side_content %} <div class="page-header"> <h1>Edit Student's Info</h1> </div> <div class="col-md-4"> {{ wtf.quick_form(form) }} </div> {% endblock %}
siwl/test_website
app/templates/student/edit_student.html
HTML
mit
296
export const Camera = ` <svg viewBox="0 0 28 28"> <g fill="none" fill-rule="evenodd"> <path d="M3 3h22a2 2 0 012 2v18a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2z" stroke="currentColor"/> <circle stroke="currentColor" cx="14" cy="14" r="5"/> <path d="M22 7h1" stroke="currentColor" stroke-linecap="round" str...
clair-design/clair
packages/icons/icons/Camera.ts
TypeScript
mit
359
# BitForm Playing around with the idea of replacing XForms with Custom Property.
b1thunt3r/BitForm
README.md
Markdown
mit
80
import datetime import time import boto import redis import requests import random import zlib from django.shortcuts import get_object_or_404 from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.template.loader import render_to_string from django.db import IntegrityE...
slava-sh/NewsBlur
apps/reader/views.py
Python
mit
95,205
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
JiachengSHI/JiachengSHI.github.io
_layouts/post.html
HTML
mit
4,430
const determineTestFilesToRun = ({ inputFile, inputArgs = [], config }) => { const path = require("path"); const fs = require("fs"); const glob = require("glob"); let filesToRun = []; if (inputFile) { filesToRun.push(inputFile); } else if (inputArgs.length > 0) { inputArgs.forEach(inputArg => files...
ConsenSys/truffle
packages/core/lib/commands/test/determineTestFilesToRun.js
JavaScript
mit
744
import "reflect-metadata"; import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../utils/test-utils"; import {Connection} from "../../../src/connection/Connection"; import {Post} from "./entity/Post"; import {expect} from "chai"; import {PostStatus} from "./model/PostStatus"; des...
ReaxDev/typeorm
test/github-issues/182/issue-182.ts
TypeScript
mit
2,660
// nodejs按行读取文件流 var Stream = require('stream').Stream, util = require('util'); var LineStream = function() { this.writable = true; this.readable = true; this.buffer = ''; }; util.inherits(LineStream, Stream); LineStream.prototype.write = function(data, encoding) { if (Buffer.isBuffer(data)) { data = data.to...
SBFE/js-combine-pack
lib/tool/lineStream.js
JavaScript
mit
680
using LibrarySystem.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Collections.Generic; using System.Linq; namespace LibrarySystem.Account { public partial class Manage : System.Web.UI.Page { protected string SuccessMessage ...
krasimirkrustev/ta-library-system
LibrarySystem/LibrarySystem/Account/Manage.aspx.cs
C#
mit
4,298
__author__ = "Guillaume" __license__ = "MIT" __copyright__ = "2015, ESRF" import numpy from freesas.model import SASModel class Grid: """ This class is used to create a grid which include all the input models """ def __init__(self, inputfiles): """ :param inputfiles: list of pdb files...
kif/freesas
freesas/average.py
Python
mit
9,116
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software" // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm // // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan. #include "btree.h" namespace structural { namespace flywe...
rachwal/DesignPatterns
structural/src/flyweight/btree.cc
C++
mit
1,119
# OpenMultiplayerRobot This is a work in progress. ## Install ```bash npm install npm install -g typings gulp typings install gulp npm start ``` ## Credits - Developed by [Andreas Carlson](http://andreascarlson.se) Thanks to: - [iggyfisk](https://github.com/iggyfisk) - Based on [electron-typescript-react quickstar...
minimalism/omr-client
README.md
Markdown
mit
389
#include <assert.h> #include <math.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // #include <antlr3.h> #include "toml.h" #include "toml-parser.h" // #include "tomlParser.h" // #include "tomlLexer.h" struct _TOMLStringifyData { TOMLError *error; int bufferSi...
mzgoddard/tomlc
toml.c
C
mit
25,919
Enefele::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test s...
anamartinez/enefele
config/environments/test.rb
Ruby
mit
1,561
<!doctype html> <html class="no-js" lang=""> <head> <title>Zabuun - Learn Egyptian Arabic for English speakers</title> <meta name="description" content=""> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?> <?php inc...
javanigus/zabuun
essay/0006-the-first-song.php
PHP
mit
1,193
package main import ( "os" "github.com/codegangsta/cli" ) func main() { app := cli.NewApp() app.Name = "nano-client" app.Usage = "Send a request to service" app.Version = Version app.Flags = []cli.Flag{ cli.StringFlag{ Name: "service, s", Usage: "Service endpoint to send request to (Required)", },...
mouadino/go-nano
cli/nano-client/main.go
GO
mit
551
import logger from './logger'; import app from './app'; const port = app.get('port'); const server = app.listen(port); process.on('unhandledRejection', (reason, p) => logger.error('Unhandled Rejection at: Promise ', p, reason) ); server.on('listening', () => logger.info('Feathers application started on http://%s...
feathersjs/generator-feathers
generators/app/templates/ts/src/index.ts
TypeScript
mit
352
# Gistoria [**Gistoria**](http://gistoria.drteam.rocks/) it's a **Gist** of the some of **Stories** - a project devoted to Russian literature. Online development streams every Monday, Wednesday and Friday. https://www.twitch.tv/evilfreelancer If you can help to **Gistoria** it will be great! ## How to install ...
EvilFreelancer/gistoria
README.md
Markdown
mit
1,172
package test import akka.actor.ActorSystem import akka.pattern.AskTimeoutException import github.gphat.datadog._ import java.nio.charset.StandardCharsets import org.json4s._ import org.json4s.native.JsonMethods._ import org.specs2.mutable.Specification import scala.concurrent.duration._ import scala.concurrent.Executi...
gphat/datadog-scala
src/test/scala/ServiceCheckSpec.scala
Scala
mit
1,484
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>class RubyXL::CellStyle - rubyXL 3.3.29</title> <script type="text/javascript"> var rdoc_rel_prefix = "../"; var index_rel_prefix = "../"; </script> <script src="../js/jquery.js"></script> <script src="../js/darkfish.js"></script> <link href="../css/f...
mezza/rubyXL
rdoc/RubyXL/CellStyle.html
HTML
mit
2,528
// Template Source: BaseEntityCollectionResponse.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------...
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/ContactFolderCollectionResponse.java
Java
mit
765
/* * Copyright 2013 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
zxing-js/library
src/test/core/common/reedsolomon/ReedSolomon.spec.ts
TypeScript
mit
32,086
require "capybara/rspec" require "webmock/rspec" require "plek" require "gds_api/test_helpers/publishing_api" WebMock.disable_net_connect!(allow_localhost: true) RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true en...
alphagov/service-manual-publisher
spec/spec_helper.rb
Ruby
mit
463
#!/usr/bin/env python """ Project-wide application configuration. DO NOT STORE SECRETS, PASSWORDS, ETC. IN THIS FILE. They will be exposed to users. Use environment variables instead. See get_secrets() below for a fast way to access them. """ import os """ NAMES """ # Project name used for display PROJECT_NAME = 'q...
18F/quotable
app_config.py
Python
mit
1,915
{ "date": "2019-12-01", "type": "post", "title": "Report for Sunday 1st of December 2019", "slug": "2019\/12\/01", "categories": [ "Daily report" ], "images": [], "health": { "weight": 82.9, "height": 173, "age": 14228 }, "nutrition": { "ca...
aquilax/quantified.avtobiografia.com
content/post/2019-12-01.md
Markdown
mit
1,298
<table class="legend-table" *ngIf="units"> <thead> <tr class="header"> <th>Chraracter</th> <th>Length (seconds)</th> </tr> </thead> <tbody> <tr> <th>Dot ( ● )</th> <td class="red">{{ units.dot }} Seconds</td> </tr> <tr> <th>Dash ( - )</th> <td class="red">{{...
rabbitfighter81/reMORSE
src/app/components/legend/legend.component.html
HTML
mit
749
--- layout: post date: '2015-10-13' title: "Watters - Wtoo Wtoo Maids Dress 891 2015 Spring Sleeveless Knee-Length Aline/Princess" category: Watters - Wtoo tags: [Watters - Wtoo,Wtoo,Aline/Princess ,Jewel,Knee-Length,Sleeveless,2015,Spring] --- ### Watters - Wtoo Wtoo Maids Dress 891 Just **$189.99** ### 2015 Spring Sl...
variousweddingdress/variousweddingdress.github.io
_posts/2015-10-13-Watters-Wtoo-Wtoo-Maids-Dress-891-2015-Spring-Sleeveless-KneeLength-AlinePrincess.md
Markdown
mit
1,244
#include "udivmodti4.h" __int128 __modti3(__int128 a, __int128 b) { unsigned __int128 r; unsigned __int128 sign = a >> 127; udivmodti4_(a + sign ^ sign, b < 0 ? -b : b, &r); return r + sign ^ sign; }
jdh8/metallic
src/soft/integer/modti3.c
C
mit
219
# # Swaggy Jenkins # Jenkins API clients generated from Swagger / Open API specification # Version: 1.1.2-pre.0 # Contact: blah@cliffano.com # Generated by OpenAPI Generator: https://openapi-generator.tech # Describe -tag 'PSOpenAPITools' -name 'EmptyChangeLogSet' { Context 'EmptyChangeLogSet' { It 'Initia...
cliffano/swaggy-jenkins
clients/powershell/generated/tests/Model/EmptyChangeLogSet.Tests.ps1
PowerShell
mit
615
class AddIndexToSkillTotals < ActiveRecord::Migration def change add_index :skill_totals, :name add_index :skill_totals, :date end end
thatguyandy27/SkillsCompiler
skills_app/db/migrate/20140316173555_add_index_to_skill_totals.rb
Ruby
mit
147
<!DOCTYPE html> <html> <head lang="en"> <title>柱柱签收-移动互联网时代的物流,运输全程可视,让物流更简单</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="keywords" content="柱柱签收,物流管理系统,车队系统,第三方物流系统,物流签收, 签收单, 回单,车队管理,车辆管理,TMS,运输管理系统,OT...
hardylake8020/youka-server
web/home_page/views/index.client.view.html
HTML
mit
13,908