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 |
|---|---|---|---|---|---|
# frozen_string_literal: true
begin
require 'ripper'
require 'test/unit'
ripper_test = true
module TestRipper; end
rescue LoadError
end
class TestRipper::Filter < Test::Unit::TestCase
class Filter < Ripper::Filter
def on_default(event, token, data)
if data.empty?
data[:filename] = filename... | pmq20/ruby-compiler | ruby/test/ripper/test_filter.rb | Ruby | mit | 2,276 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Class org.apache.poi.ss.formula.ptg.DeletedArea3DPtg (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../style... | misuqian/ExcelTool | eclipse/poi-3.12/docs/apidocs/org/apache/poi/ss/formula/ptg/class-use/DeletedArea3DPtg.html | HTML | mit | 4,526 |
package de.tuberlin.dima.ti.analysis;
import org.apache.flink.api.common.functions.RichFlatMapFunction;
import org.apache.flink.api.java.tuple.Tuple7;
import org.apache.flink.api.java.tuple.Tuple8;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.util.Collector;
import java.util.Collection... | rwaury/pcb | src/main/java/de/tuberlin/dima/ti/analysis/MIDTCapacityEmitter.java | Java | mit | 4,721 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3 Append</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
</head>
<body>
<p>Here is a paragraph.</p>
<p>And one more.</p>
<p>Third one.</p>
<p>Fourth one.</p>
<script>
var p = ... | CS171/CS171.github.io | 2016_Spring/lectures/lecture-d3/d3_append.html | HTML | mit | 413 |
Yet another post
[meta:author]: <> (Jonas Colmsjo)
[meta:title]: <> (Development-architecture.md)
[meta:date]: <> (2012-01-01)
[meta:nested:key]: <> (Metadata value)
##!!truncate
[[wiki]] > [[Technical Architecture]]
h1. Development Architecture
h2. Overview
The development architecture consists of the followin... | colmsjo/myblog.old | migration/output/Development-architecture.md | Markdown | mit | 5,059 |
$client = new Paymill\Models\Request\Client();
$client->setId('client_88a388d9dd48f86c3136')
->setEmail('updated-client@example.com')
->setDescription('Updated Client');
$response = $request->update($client);
| paymill/paymill-php | samples/clients/update_client.php | PHP | mit | 224 |
FactoryGirl.define do
# Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them.
#
# Example adding this to your spec_helper will load these Factories for use:
# require 'spree_rtl/factories'
end
| mshirdel/spree_rtl | lib/spree_rtl/factories.rb | Ruby | mit | 274 |
Deployment guide
================
JARVIS is a [Flask](http://flask.pocoo.org) application, see the
[uWSGI docs](https://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html)
for a more detailed uWSGI deployment guide or check out the other deployment
options described in the [Flask docs](http://flask.pocoo.org/docs... | mpolden/jarvis2 | docs/INSTALL.md | Markdown | mit | 1,972 |
using System.Drawing.Imaging;
using Aspose.BarCode.Generation;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.BarCode for .NET API reference
when the project is build. Please check https://docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you ... | asposebarcode/Aspose_BarCode_NET | Examples/CSharp/ManageBarCodes/SetSupplementData.cs | C# | mit | 1,413 |
/**
* Interface C4BoardIntf specifies the interface for an object that implements
* the Connect Four game board. The methods in this interface are queried to
* display the game board.
*
* @author Alan Kaminsky
* @version 13-Oct-2014
*/
public interface C4BoardIntf
{
/**
* Number of rows.
*/
public stati... | mooman219/CSCI251 | project4-c4server/src/C4BoardIntf.java | Java | mit | 1,401 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Storm</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc">
<link rel="stylesheet" href="css/norma... | nsarno/storm | doc/Storm.html | HTML | mit | 4,983 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Series Evaluation</title>
<link rel="stylesheet" href="../../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="Math Toolkit 1.9.0">
<link... | rkq/cxxexp | third-party/src/boost_1_56_0/libs/math/doc/html/math_toolkit/internals1/series_evaluation.html | HTML | mit | 20,787 |
using System;
using System.Threading;
using JetBrains.Annotations;
namespace Jasily.Extensions.System.Threading
{
public static class SynchronizationContextExtensions
{
public static void Send([NotNull] this SynchronizationContext context, [NotNull] Action action)
{
if (context == ... | Jasily/jasily-csharp | Jasily.Extensions.System/Threading/SynchronizationContextExtensions.cs | C# | mit | 3,171 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>API documentation</title>
<link rel="stylesheet" href="css/foundation.min.css" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="styleshe... | vickvu/supersamples | example-docs/admin.html | HTML | mit | 5,856 |
<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... | azyobuzin/JexlSample | assets/commons-jexl-2.1.1/apidocs/src-html/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.html | HTML | mit | 31,155 |
/* Tomorrow Night Theme */
/* https://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* https://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Tomorrow Comment */
.hljs-comment {
color: #969896;
}
/* Tomorrow Red ... | narcan/narcan.github.io | assets/vendor/highlight/styles/tomorrow-night.css | CSS | mit | 1,667 |
'use strict';
describe('Suite', function suiteName() {
it('should finish immediately', function testCase1Name() {});
it('should finish after 100ms', function testCase2Name(done) { setTimeout(done, 100); });
it('should fail', function testCase3Name() { throw new Error('foo'); });
});
| mmotkina/mocha-parallel-tests | test/reporter-custom-mochawesome/suite.js | JavaScript | mit | 297 |
THIS_SRCS = longjmp.s setjmp.s
include $(MENUET_LIBC_TOPDIR)/Make.rules
| devlato/kolibrios-llvm | programs/develop/libraries/menuetlibc/src/libc/ansi/setjmp/Makefile | Makefile | mit | 73 |
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code... | devlato/kolibrios-llvm | programs/develop/open watcom/trunk/clib/mbyte/mbisdbcs.c | C | mit | 1,638 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Profile extends CI_Controller {
public function __construct()
{
parent::__construct();
{
//inlcude a better hashing library
include('./resources/password/password.php');
if($this->session->userdata('is... | ignitedcms/ignitedcms | application/controllers/admin/Profile.php | PHP | mit | 3,581 |
<div class="mat-calendar-header">
<div class="mat-calendar-controls">
<button mat-button type="button" class="mat-calendar-period-button"
(click)="currentPeriodClicked()" [attr.aria-label]="periodButtonLabel"
[attr.aria-describedby]="_buttonDescriptionId"
cdkAriaLive="polite">
... | josephperrott/material2 | src/material/datepicker/calendar-header.html | HTML | mit | 1,124 |
<?php
declare(strict_types=1);
/**
* This file is part of Narrowspark Framework.
*
* (c) Daniel Bannert <d.bannert@anolilab.de>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Viserio\Contract\Cookie;
interface Factory
{
/**
... | narrowspark/framework | src/Viserio/Contract/Cookie/Factory.php | PHP | mit | 1,964 |
<?php
/**
* @package framework
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Hubzero\Config\Tests\Processor;
use Hubzero\Test\Basic;
use Hubzero\Config\Processor\Ini;
use stdClass;
/**
* Ini Processor tests
*/
class IniTest exten... | zweidner/framework | src/Config/Tests/Processor/IniTest.php | PHP | mit | 5,575 |
/**
* TagController
*
* @description :: Server-side logic for managing Tags
*/
module.exports = {
find: (req,res) => {
Tag.findAll({
where: ActionUtil.parseWhere(req),
limit: ActionUtil.parseLimit(req),
offset: ActionUtil.parseSkip(req),
order: ActionUtil.parseSort(req),
include:... | badfuture/huoshui-backend-api | api/controllers/TagController.js | JavaScript | mit | 821 |
<?php
/**
* Hoa
*
*
* @license
*
* New BSD License
*
* Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must ... | Halleck45/PhpMetricsZendServer | zray/vendor/hoa/compiler/Llk/Rule/Invocation.php | PHP | mit | 4,064 |
define(['angular'], function (ng) {
'use strict';
return ng.module('app.directives', []);
});
| prolativ/simulConf | public/js/directives/module.js | JavaScript | mit | 103 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for /Applications/XAMPP/xamppfiles/htdocs/printpbw/application/views/user/login.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link hre... | faiqpurnomo/kppl | tests/build/coverage/views_user_login.php.html | HTML | mit | 45,925 |
input {
outline: none;
padding: 10px;
font-size: 18px;
}
| gilbox/elegant-react | examples/form-validation/app.css | CSS | mit | 63 |
# -*- coding: utf-8 -*-
"""
handler base
~~~~~~~~~~~~
Presents a reasonable base class for a ``Handler`` object, which handles
responding to an arbitrary "request" for action. For example, ``Handler``
is useful for responding to HTTP requests *or* noncyclical realtime-style
requests, and acts as a base c... | momentum/canteen | canteen/base/handler.py | Python | mit | 17,022 |
#pragma once
#include <xenon/ict/unit.h>
class itu_unit {
public:
void register_tests(ict::unit_test<itu_unit> &ut) {
ut.add(&itu_unit::host);
ut.add(&itu_unit::bit_lengths);
ut.add(&itu_unit::splits);
ut.add(&itu_unit::sanity);
}
/* Tests */
void host();
void bit... | intrig/xenon | unit/itu/ituunit.h | C | mit | 373 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LionFire.ObjectBus
{
public class CannotOverwriteException : OBusException // REVIEW: Should this be OBaseException?
{
public CannotOverwriteException() { }
public CannotOverwriteException(string m... | jaredthirsk/Core | src/LionFire.ObjectBus.Abstractions/OBus/CannotOverwriteException.cs | C# | mit | 467 |
# -*-coding: utf-8 -*-
import math
import numpy as np
import relations
def _avg_difference(npiece, side):
if side == relations.LEFT:
difference = npiece[:, 0] - npiece[:, 1]
elif side == relations.RIGHT:
difference = npiece[:, -1] - npiece[:, -2]
elif side == relations.UP:
differe... | typeinference/jigsaw-puzzle | src/measures.py | Python | mit | 1,631 |
import RPi.GPIO as GPIO
import os
import time
import datetime
import glob
import MySQLdb
from time import strftime
import serial
ser = serial.Serial(
port='/dev/ttyACM0',
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=1
)
counter = ... | Shashank95/Intellifarm | logdata.py | Python | mit | 1,310 |
#!/usr/bin/env node
require("./proof")(1, function (step, parse, deepEqual) {
step(function () {
parse("CancelSpotInstanceRequests", step());
}, function (object) {
var expected =
{ requestId: "59dbff89-35bd-4eac-99ed-be587ed81825"
, spotInstanceRequestSet: [ { spotInstanceRequestId: 'sir-e95fae02'... | defunct/node-ec2 | t/response/cancel-spot-instance-requests.t.js | JavaScript | mit | 434 |
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
}
span {
height: 100%;
... | bokand/bokand.github.io | bugs/1017748/testcase2.html | HTML | mit | 605 |
# frozen_string_literal: true
require 'rails_helper'
require "#{Rails.root}/lib/importers/article_importer"
describe ArticleImporter do
before { stub_wiki_validation }
let(:en_wiki) { Wiki.default_wiki }
let(:es_wiki) { create(:wiki, language: 'es', project: 'wikipedia') }
describe '.import_articles' do
... | alpha721/WikiEduDashboard | spec/lib/importers/article_importer_spec.rb | Ruby | mit | 1,824 |
<?php
class Exception {
protected $message;
protected $code;
protected $file;
protected $line;
public function __construct($message = "", $code = 0, $previous = NULL) {
$this->message = $message;
$this->line = 1;
}
final public function getMessage() {
return $this... | niklasvh/php.js | templates/classes/Exception.php | PHP | mit | 925 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | jjas0nn/solvem | tensorflow/lib/python2.7/site-packages/tensorflow/contrib/learn/__init__.py | Python | mit | 2,083 |
<?php
// MyCompanyMyProjectSysBundle:AdminLocale:admin_locale.html.twig
return array (
);
| ithone/pam | app/cache/test/assetic/config/7/7ea99c7a54cfc2c514ed659b03d8764f.php | PHP | mit | 91 |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static doublecomplex c_b1 = {0.,0.};
static doublecomplex c_b2 = {1.,0.};
static integer c__1 = 1;
/* Subroutine */ int zlabrd_(integer *m, integer *n, integer *nb,
doublecomplex *a, integer *lda, doublereal *d__, doublereal *e,
doublecomplex ... | dacap/loseface | third_party/clapack/SRC/zlabrd.c | C | mit | 16,657 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: S... | stephaneAG/PengPod700 | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/demos-declarative-flickr-qml-flickr-common-slider-qml.html | HTML | mit | 17,496 |
---
layout: post
title: 【译】主动阅读:评注的艺术
category: [思考]
tags: [阅读, 评注, 学习]
published: true
---
# Active Reading: The Art of Annotation | 主动阅读:评注的艺术
> We do not read books in this class; we study literature! At an academic level, it is not enough for you to passively read the words on a page. You must think about words, ... | JimmyLv/jimmylv.github.io | 思考/2016-07-20-active-reading-the-art-of-annotation.md | Markdown | mit | 6,929 |
import * as React from "react";
import { CarbonIconProps } from "../../";
declare const ResearchBlochSphere16: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default ResearchBlochSphere16;
| mcliment/DefinitelyTyped | types/carbon__icons-react/lib/research--bloch-sphere/16.d.ts | TypeScript | mit | 240 |
//----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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
... | offa/config4cpp | demos/log-level/A.cpp | C++ | mit | 2,337 |
/**
* Display warning messages in console to discover potential errors
*/
(function(seajs) {
var uriCache = {}
var RE_VERSION = /\/(?:\d+\.){1,2}\d+\/|\D(?:\d+\.){1,2}\d+[^/]*\.(?:js|css)\W?/
seajs.on("fetch", checkMultiVersion)
// Only support this version style:
// `zz/1.2.3/xx`
// `zz/xx-1.2.3-beta... | 007slm/seajs | src/plugins/plugin-warning.js | JavaScript | mit | 1,124 |
<?php
/*
* This file is part of the Jirro package.
*
* (c) Rendy Eko Prastiyo <rendyekoprastiyo@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
// login
[
'path' => '/account/login',
... | jirro/jirro | src/Jirro/Bundle/AccountBundle/Resources/config/routes.php | PHP | mit | 937 |
//===--- Decl.cpp - Declaration AST Node Implementation -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | ensemblr/llvm-project-boilerplate | include/llvm/tools/clang/lib/AST/Decl.cpp | C++ | mit | 159,341 |
/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 LeafLabs LLC.
*
* 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... | chcbaram/OpenCM9.04_IDE_1.5 | hardware/robotis/OpenCM9.04/libraries/Wire/Wire.h | C | mit | 3,322 |
body {
margin: 0.5em 0.5em 0.5em 0.5em;
}
body h1:nth-child(1) {
margin: 0 0 0.5em 0;
}
h1 {
margin: 2em 0 1em 0;
padding: 0.2em;
font-size: 200%;
font-weight: bold;
}
h2 {
margin: 2em 0 1em 0;
padding: 0.2em;
font-size: 150%;
font-weight: bold;
}
h3 {
margin: 2em 0 1em 0;
padding: 0.2em;
... | keisuken/caffemarkdown | styles/default_with_HTML/style.css | CSS | mit | 1,375 |
// @flow
import net from 'net'
import get from 'lodash/get'
import path from 'path'
// TODO: Remove this in favor of a non-overkill incremental port checker package
const getPort = options =>
new Promise((resolve, reject) => {
const server = net.createServer()
server.unref()
server.on('error', reject)
... | steelbrain/pundle | packages/pundle-cli/src/helpers.js | JavaScript | mit | 1,410 |
---
layout: default
---
{% include wrap.html %}
<div class="container mtb">
<div class="row">
<!-- SINGLE POST -->
<div class="col-lg-10">
<!-- Blog Post -->
<a href="{{ page.url | prepend: site.baseurl }}"><h3 class="ctitle">{{ page.title }}</h3></a>
<p><csmal... | ChibiCritters/empiria-card-game | _layouts/post.html | HTML | mit | 1,234 |
# <gaia-property-inspector> [](https://travis-ci.org/gaia-components/gaia-property-inspector)
## Installation
```bash
$ bower install gaia-components/gaia-property-inspector
```
## Examples
- [Example](http://gaia-components.github.io/gaia-... | fxos-components/gaia-property-inspector | README.md | Markdown | mit | 518 |
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>
<title>base.rb</title>
<meta http-equiv="Content-Type" content="text/htm... | SeanYamaguchi/circle | doc/api/files/__/__/_rbenv/versions/2_1_0/lib/ruby/gems/2_1_0/gems/activerecord-4_1_6/lib/active_record/base_rb.html | HTML | mit | 3,616 |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_mapify_session'
| jbarrieault/mapify | config/initializers/session_store.rb | Ruby | mit | 138 |
Clazz.declarePackage ("J.adapter.readers.xtal");
Clazz.load (["J.adapter.smarter.AtomSetCollectionReader"], "J.adapter.readers.xtal.CastepReader", ["java.lang.Double", "$.Float", "JU.DF", "$.Lst", "$.P3", "$.PT", "$.V3", "J.adapter.smarter.Atom", "JU.Escape", "$.Logger", "$.Tensor"], function () {
c$ = Clazz.decorate... | m4rx9/rna-pdb-tools | rna_tools/tools/webserver-engine/app/static/app/jsmol/j2s/J/adapter/readers/xtal/CastepReader.js | JavaScript | mit | 19,032 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductStockistTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fbf_food_product_stockist', function(Blueprint $table)
{
$table->in... | FbF/Laravel-Food | src/migrations/2013_12_02_114314_create_product_stockist_table.php | PHP | mit | 523 |
/**
* Created by wangwei01 on 2017/1/17.
*/
;(function () {
var type = zhx.getSearchName("type");
var list = [];
switch (type) {
case "storeMain":
list.push({key: "banner", bgColor: "#DE3A53"});
list.push({key: "textTitle", title: "新品上架"});
list.push({key: "goodsList", pattern: "small", showName: 0... | xyz252631m/web | h5zhx/src/index.js | JavaScript | mit | 18,905 |
/*!
* chain.js - blockchain management for decentraland
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
* Copyright (c) 2016-2017, Manuel Araoz (MIT License).
* https://github.com/decentraland/decentraland-node
*/
'use strict';
var AsyncObject... | decentraland/bronzeage-node | lib/blockchain/chain.js | JavaScript | mit | 62,343 |
/*
File generated by NetTiers templates [www.nettiers.com]
Important: Do not modify this file. Edit the file ContactType.cs instead.
*/
#region Using Directives
using System;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Security.Permissions;
usin... | netTiers/netTiers | Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.Contracts/Services/IContactTypeServiceBase.generated.cs | C# | mit | 24,769 |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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... | zik43/java-design-patterns | page-object/src/test/java/com/iluwatar/pageobject/AlbumPageTest.java | Java | mit | 2,185 |
<?php
declare(strict_types=1);
namespace AcMailer;
use Laminas\Mime\Part;
use Laminas\ServiceManager\Factory\InvokableFactory;
return [
'acmailer_options' => [
'emails' => [],
'mail_services' => [
'default' => [],
],
'attachment_parsers' => [
'factories... | acelaya/ZF-AcMailer | config/module.config.php | PHP | mit | 2,048 |
require 'oysters'
require 'erb'
Oysters.with_configuration do
namespace :unified do
namespace :initd do
# This tasks install/uninstall initd scripts for:
# - KEWatcher from resque-sliders gem
# - Resque Scheduler
# - Unicorn
[:kewatcher, :resque_scheduler, :unicorn].each do |program... | Ser1aL/oysters | lib/oysters/unified/initd.rb | Ruby | mit | 3,326 |
using System;
using BEPUphysics.BroadPhaseEntries;
using BEPUphysics.CollisionRuleManagement;
namespace BEPUphysics.BroadPhaseSystems
{
/// <summary>
/// A pair of overlapping BroadPhaseEntries.
/// </summary>
public struct BroadPhaseOverlap : IEquatable<BroadPhaseOverlap>
{
internal Broad... | mayermatt/coms-437-trashdroids | Trashdroids/BEPUphysics/BroadPhaseSystems/BroadPhaseOverlap.cs | C# | mit | 2,977 |
# Rotational Cipher
Create an implementation of the rotational cipher, also sometimes called the Caesar cipher.
The Caesar cipher is a simple shift cipher that relies on
transposing all the letters in the alphabet using an integer key
between `0` and `26`. Using a key of `0` or `26` will always yield
the same output ... | c19/Exercism-Haskell | rotational-cipher/README.md | Markdown | mit | 2,525 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1... | callemall/material-ui | packages/material-ui-icons/src/AddBoxRounded.js | JavaScript | mit | 359 |
package mockapi
//go:generate go get github.com/golang/mock/mockgen
//go:generate sh -c "mockgen -package=mockapi github.com/citwild/wfe/api AccountsServer > accounts.go"
| wide-field-ethnography/wfe | api/mockapi/gen.go | GO | mit | 172 |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | brunolauze/openpegasus-providers-old | src/Providers/UNIXProviders/IPConnectivitySubnet/UNIX_IPConnectivitySubnet.cpp | C++ | mit | 3,277 |
#region Imports...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Nettiers.AdventureW... | netTiers/netTiers | Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.Website/Admin/ProductPhotoEdit.aspx.cs | C# | mit | 779 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.datalake.implementation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.DateTimeRfc1123;
import com.fas... | navalev/azure-sdk-for-java | sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathCreateHeaders.java | Java | mit | 8,314 |
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlcyI6WyJsb2dpbi5zY3NzIl0sInNvdXJjZXNDb250ZW50IjpbIiJdLCJmaWxlIjoibG9naW4uY3NzIiwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= */
| ethan1341/heroku-league | css/login.css | CSS | mit | 227 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("../common");
const ENDPT = 'achievementicons';
/**
* Achievement icons resource
*/
class AchievementIconsResource {
/**
* Construct the achievement icons resource
* @param context The context to make r... | BadgeUp/badgeup-browser-client | dist/src/achievementIcons/index.js | JavaScript | mit | 1,841 |
//: operators/Bool.java
package operators; /* Added by Eclipse.py */
// Relational and logical operators.
import java.util.*;
import static net.mindview.util.Print.*;
public class Bool {
public static void main(String[] args) {
Random rand = new Random(47);
int i = rand.nextInt(100);
int j = ran... | quchunguang/test | testjava/TIJ4-code/operators/Bool.java | Java | mit | 1,110 |
//: concurrency/MultiLock.java
package concurrency; /* Added by Eclipse.py */
// One thread can reacquire the same lock.
import static net.mindview.util.Print.*;
public class MultiLock {
public synchronized void f1(int count) {
if(count-- > 0) {
print("f1() calling f2() with count " + count);
... | quchunguang/test | testjava/TIJ4-code/concurrency/MultiLock.java | Java | mit | 1,054 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>StatisticsTableViewC Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></scrip... | ColinConduff/BlocFit | docs/docsets/.docset/Contents/Resources/Documents/Classes/StatisticsTableViewC.html | HTML | mit | 22,967 |
"use strict";
let XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
let xhr = new XMLHttpRequest();
// 8346870 - latest v1.0.1
// let url = "https://api.github.com/repos/ZencashOfficial/arizen/releases/8252416";
// 8252416 - v1.0.0
let url = "https://api.github.com/repos/ZencashOfficial/arizen/releases/82524... | woky/arizen | tools/get_statistics.js | JavaScript | mit | 774 |
# == Schema Information
#
# Table name: armors
#
# id :integer not null, primary key
# name :string
# type :string
# desc :string
# acBonus :integer
# maxDex :integer
# checkPenalty :integer
# spellFailure :integer
# ... | PDaily/RubyRPG | test/models/armor_test.rb | Ruby | mit | 589 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Select3F64` type in crate `lapack`.">
<meta name="keywords... | ssgrn/Rust-Matrix-Computations | target/doc/lapack/type.Select3F64.html | HTML | mit | 4,569 |
package cucumber.eclipse.launching;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
import org.eclipse.jface.text.TextSelect... | scandinave/cucumber-eclipse | cucumber.eclipse.editor/src/main/java/cucumber/eclipse/launching/CucumberFeaureLaunchUtils.java | Java | mit | 2,221 |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>IErrorHandler Interface</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css... | YOTOV-LIMITED/pokerleaguemanager | lib/Log4net 1.2.13/doc/release/sdk/log4net.Core.IErrorHandler.html | HTML | mit | 2,994 |
file(REMOVE_RECURSE
"CMakeFiles/mapped_matrix_4.dir/mapped_matrix.cpp.o"
"mapped_matrix_4.pdb"
"mapped_matrix_4"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/mapped_matrix_4.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
| dybiszb/MeanCurvatureLibrary | code/external/eigen/build/test/CMakeFiles/mapped_matrix_4.dir/cmake_clean.cmake | CMake | mit | 283 |
import { Component, ViewChild } from '@angular/core';
import { jqxGridComponent } from '../../../../../jqwidgets-ts/angular_jqxgrid'
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('myGrid') myGrid: jqxGridComponent;
source: any =
... | juannelisalde/holter | assets/jqwidgets/demos/angular/app/grid/rowdetails/app.component.ts | TypeScript | mit | 9,653 |
package provider
////// SET UP API ACCESS:
//
// 1) In the Google Developer Console navigate to:
// Permissions > Service accounts
//
// 2) Create or use an existing Service Account
//
// 3) For your Service Account, create and save a key as "~/.gce/quilt.json"
//
// 4) In the Google Developer Console navigate to:
... | akshayknarayan/quilt | cluster/provider/gce.go | GO | mit | 13,634 |
// flow-typed signature: 6caf4b7ee5de64bc907fc9dcfc714a1a
// flow-typed version: f0506e4101/reselect_v3.x.x/flow_>=v0.47.x
// flow-typed signature: 0199525b667f385f2e61dbeae3215f21
// flow-typed version: b43dff3e0e/reselect_v3.x.x/flow_>=v0.28.x
declare module "reselect" {
declare type Selector<-TState, TProps, TRe... | splayd/react-redux-reference | flow-typed/npm/reselect_v3.x.x.js | JavaScript | mit | 23,515 |
import express from 'express';
import unpackByOutpoint from './unpackByOutpoint';
// Polyfills and `lbry-redux`
global.fetch = require('node-fetch');
global.window = global;
if (typeof global.fetch === 'object') {
global.fetch = global.fetch.default;
}
const { Lbry } = require('lbry-redux');
delete global.window;
... | lbryio/lbry-electron | electron/startSandbox.js | JavaScript | mit | 1,051 |
def zeus_running?
File.exist?(".zeus.sock")
end
ENV["RAILS_ENV"] ||= "test"
unless zeus_running?
require "simplecov"
SimpleCov.start("rails")
end
require "rails/all"
require "webmock/rspec"
require "database_cleaner"
require "spec_helper"
require File.expand_path("../../config/environment", __FILE__)
require "... | enova/level_up_exercises | find_me_a_sandwich/spec/rails_helper.rb | Ruby | mit | 556 |
namespace Nancy.Testing.Tests
{
using System.Linq;
using CsQuery;
using CsQuery.Implementation;
using Nancy.Testing;
using Xunit;
public class QueryWrapperTests
{
[Fact]
public void Should_use_cq_find_when_indexer_invoked()
{
// Given
... | 151706061/Nancy | src/Nancy.Testing.Tests/QueryWrapperTests.cs | C# | mit | 850 |
from __future__ import division
class ExitNode:
"""
Class for the exit node on our network
"""
def __init__(self, max_simulation_time):
"""
Initialise a node.
"""
self.individuals = []
self.id_number = -1
self.next_event_date = max_simulation_time
... | geraintpalmer/ASQ | asq/exit_node.py | Python | mit | 759 |
//Copyright (C) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;
using System.Data.Linq;
using NorthwindMapping;
namespace WinFormsDataBi... | SiddharthMishraPersonal/StudyMaterials | Linq/CSharpSamples/LinqSamples/WinFormsDataBinding/EmployeeManagerGrids.cs | C# | mit | 1,874 |
require "crash_log/auth_hmac"
| undecided/crashdown-auth-hmac | lib/crashlog-auth-hmac.rb | Ruby | mit | 30 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Composing;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.UmbracoSettings;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Entities;... | dawoe/Umbraco-CMS | src/Umbraco.Web/Compose/NotificationsComponent.cs | C# | mit | 12,608 |
### EXESOFT PYIGNITION ###
# Copyright David Barker 2010
#
# Global constants module
# Which version is this?
PYIGNITION_VERSION = 1.0
# Drawtype constants
DRAWTYPE_POINT = 100
DRAWTYPE_CIRCLE = 101
DRAWTYPE_LINE = 102
DRAWTYPE_SCALELINE = 103
DRAWTYPE_BUBBLE = 104
DRAWTYPE_IMAGE = 105
# Interpola... | HelsinkiGroup5/Hackathon | display_manuel/constants.py | Python | mit | 865 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Transactions;
using Microsoft... | commonsensesoftware/Its.Cqrs | Domain.Sql/ReadModelUpdate.cs | C# | mit | 6,181 |
//bubble sort
public class BubbleSort{
public static void main(String[] args){
int[] test = new int[]{7,5,2,4,3,9};
bubbleSort4(test);
for(int curr: test){
System.out.print(curr + " ");
}
}
//for every step, move largest element in the left unsorted left subarray to front of right sorted array
... | WenyingLiu/coding_problems | others/amazon/implementation/sorting/BubbleSort.java | Java | mit | 1,935 |
#include<cstdio>
#include<algorithm>
using namespace std;
const int N=1e5;
int A[N];
void print_permutation(int n,int *A,int cur){
//generate permutation using number ranged from 1 to n inclusively;
if(n==cur){
for(int i=0;i<n;i++){
printf("%d ", A[i]);
}
printf("\n");
}
else {
for(int i=1;i<=n;i++){
... | xsthunder/a | modules/print_permutation.cc | C++ | mit | 1,061 |
---
layout: post
title: 大整数乘法和Strassen矩阵乘法
cateory: 摘录
tags: snippet
description:
---
本节中,研究两个不同寻常的算法,它们用于解决两个数的乘法和两个方阵的乘法。两个算法都以增加少量加法运算为代价,减少乘法运算的执行总次数 。为了达到这个目的,两者都使用了分治思想。
### 大整数乘法
当代的密码技术,需要对超过100位的十进制整数进行乘法运算。因为这样的整数过于长,现代计算机的一个“字”是装不下的,所以我们需要对它们作特别的处理。这就是研究高效的大整数乘法运算的现实需求。
经典的笔算算法对两个n位整数相乘,第一个数中的n个素质分别要被第二... | hacpai/readme | _posts/snippet/2014-12-22-multiplication-of-large-integers-and-strassen's-matrix-multiplication.md | Markdown | mit | 7,367 |
<?php
namespace app\admin\controller;
use think\Loader;
/**
* 用户管理
* @author aierui github https://github.com/Aierui
* @version 1.0
*/
class User extends Admin
{
function _initialize()
{
parent::_initialize();
}
/**
* 列表
*/
public function index()
{
return view()... | Aierui/tp-admin | app/admin/controller/User.php | PHP | mit | 2,216 |
import json
import math
import random
import os
class KMeans(object):
# TO-DO: Richard
def __init__(self, dataset=None):
file_path = os.path.dirname(os.path.realpath(__file__))
if dataset is None:
self.mega_dataset = json.loads(open(file_path + '/dataset.json', 'r').read... | avathardev/matchine-learning | kmeans.py | Python | mit | 3,350 |
# run using:
#
# bundle exec rspec simplegesture_tests.rb
#
require 'rubygems'
require 'rspec'
require 'appium_lib'
#require 'net/http'
# Required for 3.x before Rspec
# RSpec.configure do |c|
# c.treat_symbols_as_metadata_keys_with_true_values = true
# end
APP_PATH = '../../build/Release-iphonesimulator/SimpleGes... | mrudulp/iOSSrc | autotest/appiumTest/sampleApps/SimpleGestureRecognizers/tests/ruby/simplegesture_tests.rb | Ruby | mit | 1,706 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- modules.qdoc ... | stephaneAG/PengPod700 | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qttest.html | HTML | mit | 11,246 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = yogaNode => {
return yogaNode.getComputedWidth() - yogaNode.getComputedPadding() * 2;
};
exports.default = _default; | ykumawat/ykumawat.github.io | node_modules/ink/build/get-max-width.js | JavaScript | mit | 241 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.