commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
845b716811fad0786c0db0e226974b280c5e4654
src/api/node.js
src/api/node.js
import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, plugins: ["*"] }); let tokens = ast.tokens; let semicolons = ast.to...
import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, sourceType: "module", plugins: ["*"] }); let tokens = ast.token...
Add module sourceType in options to babylon.
Add module sourceType in options to babylon.
JavaScript
mit
Mark-Simulacrum/attractifier,Mark-Simulacrum/pretty-generator
javascript
## Code Before: import fs from "fs"; import {parse} from "babylon"; import CodeGenerator from "../CodeGenerator"; import processTokens from "../process-tokens"; function parseText(text) { let ast = parse(text, { preserveParens: true, plugins: ["*"] }); let tokens = ast.tokens; let sem...
e6726f23243fd8066b316dbbadcaf9b9755125d2
_posts/2013-12-13-marc-joins-gitlab.md
_posts/2013-12-13-marc-joins-gitlab.md
--- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-relate...
--- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLab's sales-relate...
Add picture to blog post.
Add picture to blog post.
Markdown
mit
damianhakert/damianhakert.github.io
markdown
## Code Before: --- layout: post title: Marc Radulescu joins GitLab as an account manager date: December 13, 2013 author: Marc Radulescu --- We're excited to welcome Marc as an account manager for GitLab. Marc' primary role is getting people to use GitLab. As an account manager, he will be a Point of Contact for GitLa...
89ebb9b43b67ad60294f38be98eb7903e1c10893
redux/src/main/renderer/actions/app.js
redux/src/main/renderer/actions/app.js
import { receivedAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { onError } from './error-handler'; import { TwitterAction } from '../middlewares/twitterClient'; export function setUp(credential) { return new TwitterAction({ credential, invoke: twitte...
import { fetchAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { TwitterAction } from '../middlewares/twitterClient'; /** * * @param {Credential} credential * @return {TwitterAction} */ export function setUp(credential) { return new TwitterAction({ cred...
Use fetchAccount instead of receivedAccount
[Refactor] Use fetchAccount instead of receivedAccount
JavaScript
mit
wozaki/twitter-js-apps,wozaki/twitter-js-apps
javascript
## Code Before: import { receivedAccount } from './account'; import { fetchHomeTimeline, receivedHomeTimeline } from './timeline'; import { onError } from './error-handler'; import { TwitterAction } from '../middlewares/twitterClient'; export function setUp(credential) { return new TwitterAction({ credential, ...
c6351b1be7374a23e7b53e2b78253f9172672df1
CMakeLists.txt
CMakeLists.txt
project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneV...
project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_arguments(CO "" "${oneV...
Check exit codes as well as outputs
Check exit codes as well as outputs
Text
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
text
## Code Before: project(tenyr NONE) cmake_minimum_required(VERSION 3.12) # Define the versions of CMake that this file is written for. cmake_policy(VERSION 3.12...3.19) enable_testing() function(check_failure) set(oneValueArgs NAME COMMAND EXPECT) set(multiValueArgs ARGS PROPERTIES) cmake_parse_argumen...
d43bbda1dd0b99f180b8725e7a895e6b36114bbf
docs/django-widget.rst
docs/django-widget.rst
.. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- .. _django-widget-models-ref: Model Fields ------------
.. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- PyUploadcare takes assets from Uploadcare CDN by default, e.g.: .. code-block:: html <script src="https://ucarecdn.com/widget/x.y.z/uploadcare/uploadcare-x.y.z.min.js"></script> If you don't want to...
Add description of django widget settings
Add description of django widget settings
reStructuredText
mit
uploadcare/pyuploadcare
restructuredtext
## Code Before: .. _django-widget: ============= Django Widget ============= .. _django-widget-settings-ref: Settings -------- .. _django-widget-models-ref: Model Fields ------------ ## Instruction: Add description of django widget settings ## Code After: .. _django-widget: ============= Django Widget =========...
95a5b7ae3438ae47aff3102077dce77464a5430c
setup/setupBeta.js
setup/setupBeta.js
/** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting...
/** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using other // hosting...
Check if beta flag is activated
Check if beta flag is activated
JavaScript
mit
ferreiro/website,ferreiro/website
javascript
## Code Before: /** * Validate if the application is in beta * and the user has the access token to * view the beta version. * * If not authorized session, then display coming soon */ const env = require('../env') module.exports = (app) => { // This is only valid for Heroku. // Change this if you're using ot...
b1beac71134f7f85c8167d844b06f72c82b15d3b
README.md
README.md
OAuth stack middleware. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify
OAuth stack middleware. ## Requirements * **session**: The request must have session handling accounted for. You can do this be prepending the `stack/session` middleware to this one. * **credentials**: You need to have some sort of OAuth server. By default, `stack/oauth` will use twitter. But you can change tha...
Document session and credential requirements
Document session and credential requirements
Markdown
mit
igorw/stack-oauth
markdown
## Code Before: OAuth stack middleware. ## Usage new OAuth($app, [ 'key' => 'foo', 'secret' => 'bar', 'callback_url' => 'http://localhost:8080/auth/verify', 'success_url' => '/', 'failure_url' => '/auth', ]); ## Pre-defined URLs * /auth * /auth/verify ## Instruction...
46422a0544db2ee2346a93180d6f5c68e152caa4
app/models/movie.js
app/models/movie.js
import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at: DS.attr('date'...
import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), slug: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), ...
Remove computed property and replace with server returned attr
Remove computed property and replace with server returned attr
JavaScript
mit
sabarasaba/moviezio-client,sabarasaba/moviezio-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviezio-client,sabarasaba/moviezio-client,sabarasaba/moviez.city-client,sabarasaba/moviez.city-client,sabarasaba/moviezio-client,sabar...
javascript
## Code Before: import Ember from 'ember'; import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr('string'), poster_path: DS.attr('string'), backdrop_path: DS.attr('string'), original_language: DS.attr('string'), release_date: DS.attr('date'), created_at: DS.attr('date'), updated_at...
e551905e2dae5d850f333a8fb249af01cd1d06c1
src/js/tael.coffee
src/js/tael.coffee
module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' )
tiles = [{ type: 'container' }] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ) - 1 switch parent.type when 'container' ...
Add `tiles` array and `newTile` function
Add `tiles` array and `newTile` function
CoffeeScript
mit
hinsley-it/maestro,hinsley-it/maestro
coffeescript
## Code Before: module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' ) ## Instruction: Add `tiles` array and `newTile` function ## Code After: tiles = [{ type: 'contai...
2a463635f5d84248b7e07e443a9f971a6de1c1f0
configurations/react.js
configurations/react.js
module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], ...
module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing": [2, "never"], ...
Remove a deprecated and unneeded React check
Remove a deprecated and unneeded React check
JavaScript
mit
justinlocsei/eslint-config-chiton
javascript
## Code Before: module.exports = { "extends": "justinlocsei/configurations/es6", "ecmaFeatures": { "jsx": true }, "env": { "browser": true }, "plugins": [ "react" ], "rules": { "jsx-quotes": [2, "prefer-double"], "react/jsx-boolean-value": [2, "always"], "react/jsx-curly-spacing"...
479c741480e4fe3a58352aa49c84db29c2f61370
HISTORY.rst
HISTORY.rst
.. :changelog: History ------- 0.1.0 (2015-04-01) --------------------- * First release on PyPI.
.. :changelog: History ------- 0.2.0 (2016-04-13) --------------------- * Add a Forest integration test * Correct nondeterministic msgsteiner behavior * Add additional example data sets and scripts * Switch to Creative Commons Attribution-NonCommercial 4.0 International Public License * Rename Forest configuration fi...
Update history and version 0.2.0 changes
Update history and version 0.2.0 changes
reStructuredText
bsd-2-clause
jpgulliver/OmicsIntegrator,Mkebede/OmicsIntegrator,agitter/OmicsIntegrator,agitter/OmicsIntegrator
restructuredtext
## Code Before: .. :changelog: History ------- 0.1.0 (2015-04-01) --------------------- * First release on PyPI. ## Instruction: Update history and version 0.2.0 changes ## Code After: .. :changelog: History ------- 0.2.0 (2016-04-13) --------------------- * Add a Forest integration test * Correct nondeterminist...
7e3154594bdb067096b09693b062b1a582f5cfee
lib/pipeline_dealers/model/company.rb
lib/pipeline_dealers/model/company.rb
module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2,...
module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, :address_2,...
Add missing is_customer attribute to Company model
Add missing is_customer attribute to Company model
Ruby
mit
Springest/pipeline_dealers
ruby
## Code Before: module PipelineDealers class Model class Company < Model include HasCustomFields self.collection_url = "companies" self.attribute_name = "company" attrs :name, :description, :email, :web, :fax, :address_1, ...
68940b07ed0858c6ff4b64f45db1addec6d78943
lib/sales_tax/receipt.rb
lib/sales_tax/receipt.rb
module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += item[:total_uni...
module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total += BigDecimal(item...
Update Receipt class to deal with money strings.
Update Receipt class to deal with money strings. Since the Taxable role interface changed, and this class depends upon it, it has been updated to reflect this.
Ruby
unlicense
matiasanaya/sales-tax
ruby
## Code Before: module SalesTax class Receipt def initialize(args = {}) @items = args[:items] || [] end def add_item(item) items << item end def print _print = "" total = BigDecimal('0') sales_taxes_total = BigDecimal('0') items.each do |item| total +=...
6e42211c35bcb3ccdc91fab0fac5cc0a449a42b2
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - npm test after_success:
language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - UBS_OPTS="-D" npm test after_success:
Enable debug output for testing package.
Enable debug output for testing package.
YAML
mit
oorabona/ubs
yaml
## Code Before: language: node_js node_js: - "0.10" - "0.11" - "0.12" - "4.2" sudo: false install: # Ensure source install works and compiles correctly - npm install # test our module - npm test after_success: ## Instruction: Enable debug output for testing package. ## Code After: language: node_js no...
b593ab45409689dc351c49d0dc2be49c7b49c00b
.travis/install.sh
.travis/install.sh
set -e set -x sudo add-apt-repository -y ppa:fkrull/deadsnakes sudo apt-get -y update sudo apt-get install python3.3 python3.3-dev sudo pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls
set -e set -x pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls
Remove use of sudo in TravisCI.
Remove use of sudo in TravisCI.
Shell
apache-2.0
Ayrx/python-fastpbkdf2,Ayrx/python-fastpbkdf2
shell
## Code Before: set -e set -x sudo add-apt-repository -y ppa:fkrull/deadsnakes sudo apt-get -y update sudo apt-get install python3.3 python3.3-dev sudo pip install virtualenv virtualenv ~/.venv source ~/.venv/bin/activate pip install tox coveralls ## Instruction: Remove use of sudo in TravisCI. ## Code After: s...
27184ec776930553b5d9e319b8f3f89071ed8767
lib/tracker.coffee
lib/tracker.coffee
ua = require('universal-analytics') visitor = ua('UA-49535937-3') module.exports = (req, res, next) -> eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url ...
ua = require('universal-analytics') module.exports = (req, res, next) -> visitor = ua('UA-49535937-3') eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url ...
Use different visitor per event
Use different visitor per event Instantiate a 'visitor' on every API request, since GA only tracks 500 events per visitor/session per day.
CoffeeScript
mit
adorableio/avatars-api,mojects/avatars-api,gitblit/avatars-api,gitblit/avatars-api,mojects/avatars-api
coffeescript
## Code Before: ua = require('universal-analytics') visitor = ua('UA-49535937-3') module.exports = (req, res, next) -> eventParams = ec: 'API Request' # category ea: req.get('Referrer') || 'no referrer' # action el: req.ip # label dp: req.url ...
440001c0ac7609dc9b89662fa2f7c17a84d00042
bin/configure_test_env.sh
bin/configure_test_env.sh
sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/Doct...
sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) if grep -Fxq "ssh2" ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini then echo "SSH2 extensi...
Install ssh2 ext manually on travis in case if it was enabled.
Install ssh2 ext manually on travis in case if it was enabled.
Shell
mit
NiR-/Gaufrette,peelandsee/Gaufrette,Consoneo/Gaufrette,NiR-/Gaufrette,KnpLabs/Gaufrette,KnpLabs/Gaufrette
shell
## Code Before: sudo apt-get update -qq sudo apt-get install -qq libssh2-1-dev libssh2-php echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini touch .interactive (pecl install -f ssh2 < .interactive) cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Function...
1c2ad119a373a3c920c5103963a452b254fe540c
lib/bitex_bot/models/open_sell.rb
lib/bitex_bot/models/open_sell.rb
class BitexBot::OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end
module BitexBot class OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end end
Use nested module/class definitions instead of compact style.
Use nested module/class definitions instead of compact style.
Ruby
mit
bitex-la/bitex-bot
ruby
## Code Before: class BitexBot::OpenSell < ActiveRecord::Base belongs_to :opening_flow, class_name: 'SellOpeningFlow', foreign_key: :opening_flow_id belongs_to :closing_flow, class_name: 'SellClosingFlow', foreign_key: :closing_flow_id scope :open, -> { where('closing_flow_id IS NULL') } end ## Instruction: Use...
5b7c952806b0d8b7ec7da51a22fc32948469889c
README.md
README.md
`gradle vaadinRun` Wait for the application to start Open http://localhost:8080/ to view the application. # Running unit tests `gradle test`
This project requires Gradle 4.0. `gradle vaadinRun` Wait for the application to start. Open http://localhost:8080/ to view the application. # Running unit tests `gradle test`
Add notice about Gradle 4.0
Add notice about Gradle 4.0
Markdown
mit
juhawilppu/vaadin-blood-sample-editor
markdown
## Code Before: `gradle vaadinRun` Wait for the application to start Open http://localhost:8080/ to view the application. # Running unit tests `gradle test` ## Instruction: Add notice about Gradle 4.0 ## Code After: This project requires Gradle 4.0. `gradle vaadinRun` Wait for the application to start. Open ht...
dae30865248bda0cf7e3dbd94ff63919b57ae0df
testapp/main.cpp
testapp/main.cpp
int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); for (;;) ; return 0; }
int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); sleep(100000000); return 0; }
Change infinite loop to sleep
Change infinite loop to sleep
C++
mit
scen/osxinj,scen/osxinj,pandazheng/osxinj,pandazheng/osxinj
c++
## Code Before: int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); for (;;) ; return 0; } ## Instruction: Change infinite loop to sleep ## Code After: int main(int argc, char* argv[]) { printf("testapp reporting in!\n"); sleep(100000000); return 0; }
e0bfd84e100cf770839f56b596f3c9fa179f9587
CHANGELOG.md
CHANGELOG.md
All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.1.0...master) ### Added - Added this change log #6 - Add typical files & folders to .gitignore in...
All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.2.0...master) ### Added ### Changed ### Fixed ## [0.2.0](https://github.com/ravage84/cakephp-va...
Update change log for release 0.2.0
Update change log for release 0.2.0
Markdown
mit
ravage84/ValidForeignKeyBehavior,ravage84/cakephp-valid-foreign-key-behavior
markdown
## Code Before: All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/ravage84/cakephp-valid-foreign-key-behavior/compare/0.1.0...master) ### Added - Added this change log #6 - Add typical files & folders ...
a441297e6f5c4492318a6d60bbc292ca4da64b50
src/app/utils/url.utils.ts
src/app/utils/url.utils.ts
import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractId...
import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } public extractId...
Support relative urls in config file
Support relative urls in config file
TypeScript
mit
dsternlicht/RESTool,dsternlicht/RESTool,dsternlicht/RESTool
typescript
## Code Before: import {Injectable, Inject} from '@angular/core'; @Injectable() export class UrlUtils { constructor(@Inject('DataPathUtils') private dataPathUtils) { } public urlIsClearOfParams(url) { if (url.indexOf(':') >= 0) { return false; } return url; } ...
3c8b97068a141f93fd58f6dd9c8fcda1d4a0abfe
src/pipeline.js
src/pipeline.js
define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeli...
define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes = []; Pipeli...
Allow quit on first page without reset prompt
Allow quit on first page without reset prompt
JavaScript
mit
3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers,3DUI/testing-rotation-controllers
javascript
## Code Before: define(["dist/local_object"], function(LocalObject){ function Pipeline(id, finalNode, resetPage, overwrite){ this.id = id; this.finalNode = finalNode; this.resetPage = resetPage; this.indexObj = new LocalObject(this.id, overwrite); } Pipeline.prototype.nodes ...
ddcf421d056dcf79df557278661cd775ff54a7fc
test/clang-rename/VarTest.cpp
test/clang-rename/VarTest.cpp
// RUN: cat %s > %t.cpp // RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s // REQUIRES: shell namespace A { int foo; // CHECK: int hector; } int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1()...
namespace A { int foo; // CHECK: int hector; } // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { in...
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows.
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@245688 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
c++
## Code Before: // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s // REQUIRES: shell namespace A { int foo; // CHECK: int hector; } int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hec...
e8d4b40fca8d193e2758626c02d5e48cc4b6335f
OakWeatherRecorder.go
OakWeatherRecorder.go
package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { setti...
package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func main() { setti...
Handle if it returns a nil
Handle if it returns a nil This can happen if it tries to decode an event not called 'weatherstationJSON'
Go
mit
jhitze/oak_weather_recorder
go
## Code Before: package main import ( "fmt" "github.com/peterhellberg/sseclient" "log" "os" ) var logger *log.Logger var urlFormat, deviceId string func init() { logger = log.New(os.Stdout, "", log.LstdFlags|log.Lmicroseconds) urlFormat = "https://api.particle.io/v1/devices/%s/events/?access_token=%s" } func...
3dfe87f2a954d0a4108b8a9a54753a09333eb912
tests/test_new.sh
tests/test_new.sh
setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewUnitialized() { local...
setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewWithTitle() { local o...
Test issue creation with title and description
Test issue creation with title and description
Shell
mit
sanpii/git-issue
shell
## Code Before: setUp() { createTestRepository } tearDown() { deleteTestRepository } testNew() { local output git issue init -q output="$(git issue new 2>&1)" local status=$? assertEquals 'output' "$output" 'Issue #1 created.' assertEquals 'status code' $status 0 } testNewUnitializ...
d8c5052e11b28cb26f64120e1ed975b9ab6d7a60
app/views/layouts/application.html.slim
app/views/layouts/application.html.slim
<!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.n...
<!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .navbar-collapse.n...
Add link to "Mixes" on menu bar
Add link to "Mixes" on menu bar
Slim
mit
kumabook/spread_beaver,kumabook/spread_beaver,kumabook/spread_beaver
slim
## Code Before: <!DOCTYPE html> html head title = Setting.title = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags body .navbar.navbar-default.navbar-static-top .n...
78e4319cd15d99424f9a49b42b5f5d342d46bbfb
Cargo.toml
Cargo.toml
[package] name = "undo" version = "0.47.2" authors = ["evenorog <evenorog@gmail.com>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures...
[package] name = "undo" version = "0.47.2" authors = ["evenorog <evenorog@gmail.com>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = ["data-structures...
Update to new cargo syntax for features and dependencies
Update to new cargo syntax for features and dependencies
TOML
apache-2.0
evenorog/undo
toml
## Code Before: [package] name = "undo" version = "0.47.2" authors = ["evenorog <evenorog@gmail.com>"] description = "A undo-redo library." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["undo", "redo"] categories = [...
d7815994585c4f6f7b5559ede9050cb9d24b507e
README.md
README.md
Z80 Emulator This is an attempt to develop a fast and flexible Z80 CPU emulator suitable for precise emulation of ZX Spectrum ULA logic and other timing-sensitive hardware. It is currently in its early development phase. Any notes on overall design, improving performance and testing approaches are highly appreciated...
Fast and flexible i8080/Z80 emulator. [![Build Status](https://travis-ci.org/kosarev/z80.svg?branch=master)](https://travis-ci.org/kosarev/z80) ## Quick facts * Implements accurate machine cycle-level emulation. * Supports undocumented flags and instructions. * Passes the well-known `cputest`, `8080pre`, `8080exe...
Add quick facts to the description.
Add quick facts to the description.
Markdown
mit
kosarev/z80,kosarev/z80
markdown
## Code Before: Z80 Emulator This is an attempt to develop a fast and flexible Z80 CPU emulator suitable for precise emulation of ZX Spectrum ULA logic and other timing-sensitive hardware. It is currently in its early development phase. Any notes on overall design, improving performance and testing approaches are hi...
350d50f4f024fe83f99ad813c1c3882c9a434adf
Manifold/Variable.swift
Manifold/Variable.swift
// Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } private static var cursor: Int = 0 private let value: Int // MARK: Hashable public var hash...
// Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } // MARK: Hashable public var hashValue: Int { return value } // MARK: IntegerLiteralConver...
Move implementation details to the bottom.
Move implementation details to the bottom.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright (c) 2015 Rob Rix. All rights reserved. public struct Variable: Hashable, IntegerLiteralConvertible, Printable { /// Constructs a fresh type variable. public init() { self.value = Variable.cursor++ } private static var cursor: Int = 0 private let value: Int // MARK: Hashable ...
a70de394e1e2820eaa5f138e4e984b62039ed406
src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
<?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht...
<?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupError( pht...
Enable figlet to render text using custom fonts
Enable figlet to render text using custom fonts Summary: Figlet with more fonts will make Phabricator ``` _/ _/ _/ _/_/ _/ _/_/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/_/ _/_/_/ _/_/ _/_/ _/ _/_/ _/_/ _/ ...
PHP
apache-2.0
devurandom/phabricator,Drooids/phabricator,eSpark/phabricator,optimizely/phabricator,memsql/phabricator,kwoun1982/phabricator,Khan/phabricator,Automatic/phabricator,NigelGreenway/phabricator,wangjun/phabricator,UNCC-OpenProjects/Phabricator,cjxgm/p.cjprods.org,jwdeitch/phabricator,Soluis/phabricator,coursera/phabricato...
php
## Code Before: <?php final class PhabricatorRemarkupBlockInterpreterFiglet extends PhutilRemarkupBlockInterpreter { public function getInterpreterName() { return 'figlet'; } public function markupContent($content, array $argv) { if (!Filesystem::binaryExists('figlet')) { return $this->markupEr...
8a2dd84340314c5818e403c288906b512d078258
build.sh
build.sh
set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to...
set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to...
Fix to get the correct UTC date on OSX
Fix to get the correct UTC date on OSX
Shell
mit
borgdylan/dotnet-cli,mylibero/cli,AbhitejJohn/cli,svick/cli,JohnChen0/cli,jaredpar/cli,mylibero/cli,mylibero/cli,stuartleeks/dotnet-cli,danquirk/cli,AbhitejJohn/cli,gkhanna79/cli,nguerrera/cli,jkotas/cli,dasMulli/cli,krwq/cli,harshjain2/cli,johnbeisner/cli,jkotas/cli,piotrpMSFT/cli-old,gkhanna79/cli,blackdwarf/cli,piot...
shell
## Code Before: set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolv...
c5a970ce1208bb4f10ab2bee4c631493d3f78bec
chrome/browser/resources/gaia_auth/manifest.json
chrome/browser/resources/gaia_auth/manifest.json
{ // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", ...
{ // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "GaiaAuthExtension", ...
Fix the CSG in the gaia_auth extension so that it works with ChromeVox
Fix the CSG in the gaia_auth extension so that it works with ChromeVox BUG=134811 TEST=On the login page, click Add User. Turn on Accessibility. Check that the page doesn't disappear. Review URL: https://chromiumcodereview.appspot.com/10692038 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145051 0039d316-...
JSON
bsd-3-clause
Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,Just-D/chromium-1,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,keishi/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ltilve/chromium,M4sse/chromium.src,nacl-webkit/...
json
## Code Before: { // chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/ "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC4L17nAfeTd6Xhtx96WhQ6DSr8KdHeQmfzgCkieKLCgUkWdwB9G1DCuh0EPMDn1MdtSwUAT7xE36APEzi0X/UpKjOVyX8tCC3aQcLoRAE0aJAvCcGwK7qIaQaczHmHKvPC2lrRdzSoMMTC5esvHX+ZqIBMi123FOL0dGW6OPKzIwIBIw==", "name": "Gaia...
d71c56ec372cca2ad812250854efcc68da0e718e
turnstile.go
turnstile.go
package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } ...
package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context TurnstileContext } ...
Add String() funcion to States
Add String() funcion to States
Go
mit
0xfoo/turnstile
go
## Code Before: package main import ( "errors" "fmt" ) type Action int const ( coin Action = iota push Action = iota ) type TurnstileState interface { Handle() (TurnstileState, error) } type TurnstileContext struct { action Action currentState TurnstileState } type UnlockedState struct { context Tur...
6feb0f7d26a7d63c07725caf77b86a8c1f6dcfbf
.gitlab-ci.yml
.gitlab-ci.yml
image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script...
image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage: build script...
Add jobs for review apps
Add jobs for review apps
YAML
mit
damianhakert/damianhakert.github.io
yaml
## Code Before: image: registry.gitlab.com/gitlab-org/gitlab-build-images:www-gitlab-com before_script: - bundle install --jobs 4 --path vendor cache: key: "website" paths: - vendor stages: - build - deploy lint: stage: build script: - bundle exec rake lint tags: - docker build: stage...
cd5baea40ccd45b9e76f57543f78e18d95969c38
generators/app/templates/src/app/settings/__ionic-tabs._settings.component.html
generators/app/templates/src/app/settings/__ionic-tabs._settings.component.html
<ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-...
<ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div class="profile-...
Fix logout button included in ionic/tabs when authentication is disabled
Fix logout button included in ionic/tabs when authentication is disabled
HTML
mit
ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket
html
## Code Before: <ion-header> <ion-toolbar color="primary"> <ion-title><span translate>Settings</span></ion-title> </ion-toolbar> </ion-header> <ion-content> <% if (props.auth) { -%> <div> <div class="profile" text-center padding> <ion-icon class="profile-icon" name="contact"></ion-icon> <div...
7d0fe75337855ac881cd21e07ec1cd41b939252b
lib/main.dart
lib/main.dart
//This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgrounndColor = const Color(0xFF182B49); @override Widget build(...
//This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgroundColor = const Color(0xFF182B49); @override Widget build(...
Add appBar and blue theme
Add appBar and blue theme
Dart
mit
UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile
dart
## Code Before: //This will be the style guide used for this project //https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final ucsdBackgrounndColor = const Color(0xFF182B49); @override...
ec8a08203746d8ba2df5a6f78cb563dbffcf73a7
spec/rspec/rails/rails_version_spec.rb
spec/rspec/rails/rails_version_spec.rb
require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is sati...
require "spec_helper" describe RSpec::Rails, "version" do def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end before { clear_memoized_version } after { clear_memoized_version } describe "...
Clean up the memoization before and after specs run
Clean up the memoization before and after specs run
Ruby
mit
aceofspades/rspec-rails,unite-us/rspec-rails,DarthSim/rspec-rails,powershop/rspec-rails,grantgeorge/rspec-rails,aceofspades/rspec-rails,mcfiredrill/rspec-rails,gkunwar/rspec-rails,powershop/rspec-rails,eliotsykes/rspec-rails,maclover7/rspec-rails,ipmobiletech/rspec-rails,eliotsykes/rspec-rails,jdax/rspec-rails,jdax/rsp...
ruby
## Code Before: require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version co...
34dcd82b1c3b741a33f87cfac691d35f3b89cafd
systems/mac/README.md
systems/mac/README.md
* Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * Set resource lim...
* Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud * Sign in to Google, and sync contacts and calendars ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Pr...
Add an instruction for setting up a Mac
Add an instruction for setting up a Mac
Markdown
mit
dguo/dotfiles,dguo/dotfiles,dguo/dotfiles
markdown
## Code Before: * Do a system update * Install XCode * Install [Homebrew](https://brew.sh/) * Go through system preferences * Sign in to iCloud ### Terminal ```sh mkdir -p code/dguo cd code/dguo git clone https://github.com/dguo/dotfiles.git cd dotfiles ./configure.sh ``` ### Programs * Docker * Sign in * ...
0c78a96512de31e5f210b0949cd1bbbd4107fc9c
lib/netzke/basepack/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
lib/netzke/basepack/dynamic_tab_panel/javascripts/dynamic_tab_panel.js
{ netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(c); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab);...
{ netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(Ext.apply(c, {closable: true})); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); ...
Make tabs closable in DynamicTabPanel
Make tabs closable in DynamicTabPanel
JavaScript
mit
rvwong/netzke-basepack,rvwong/netzke-basepack,skmitty/netzke-basepack,skmitty/netzke-basepack,rvwong/netzke-basepack,skmitty/netzke-basepack,skmitty/netzke-basepack,rvwong/netzke-basepack
javascript
## Code Before: { netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.ComponentManager.create(c); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.ite...
d0b4b3be97c26583a739edb6797867893dcf6cb8
lib/stub.js
lib/stub.js
const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set stub lib. Expe...
'use strict'; const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not set...
Add use strict for node@<6
Add use strict for node@<6
JavaScript
mit
lennym/reqres
javascript
## Code Before: const sinon = require('sinon'); let _stub; const stub = lib => { if (lib) { if (typeof lib.stub !== 'function') { throw new Error(`Could not set stub lib. Expected a "stub" method, found: ${typeof lib.stub}`); } if (typeof lib.spy !== 'function') { throw new Error(`Could not se...
4a692664e5c9fafea8c476957e1dcaabc46980bb
README.md
README.md
A comment server similar to disqus and isso ## License The MIT License (MIT)
A comment server similar to disqus and isso ## Development ### Build ~~~ mvn clean package ~~~ ### Run ~~~ mvn spring-boot:run ~~~ By default, the server will start under [localhost:8080](http://localhost:8080/). ### Test ~~~ mvn clean test ~~~ ## License The MIT License (MIT)
Add instructions for building, running and testing
Add instructions for building, running and testing
Markdown
apache-2.0
pvorb/platon,pvorb/platon,pvorb/platon
markdown
## Code Before: A comment server similar to disqus and isso ## License The MIT License (MIT) ## Instruction: Add instructions for building, running and testing ## Code After: A comment server similar to disqus and isso ## Development ### Build ~~~ mvn clean package ~~~ ### Run ~~~ mvn spring-boot:run ~~~ B...
fe273fa094ee7240d42157cd4048df777ed3035c
Clojure/src/snake/board_view.clj
Clojure/src/snake/board_view.clj
(ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn draw-boarder "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] (set-cursor 0 ...
(ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn create-view "Create a new board view" [board] :not-yet-implemented) (defn draw-borders "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (s...
Use a multimethod to do the add-apple, add-snake
Use a multimethod to do the add-apple, add-snake Signed-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>
Clojure
mit
smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake,smarr/Snake
clojure
## Code Before: (ns snake.board-view (:use snake.terminal) (:require [clojure.contrib.string :as string])) (defn draw-boarder "Draws the surrounding border of the board." [{width :width height :height}] (set-cursor 0 0) (put "/") (put (string/repeat width "-")) (put "\\") (dotimes [i height] ...
05544cb161686976dafda45be56d9284b46f6623
lib/tasks/teaspoon.rake
lib/tasks/teaspoon.rake
desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } abort("rake teaspoon failed") if Teaspoon::Con...
desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } options.delete_if { |k, v| v.nil? } abort("...
Remove rake args that don't have a value
Remove rake args that don't have a value Fixes #413
Ruby
mit
modeset/teaspoon,modeset/teaspoon,bouk/teaspoon,bouk/teaspoon,bouk/teaspoon,modeset/teaspoon
ruby
## Code Before: desc "Run the javascript specs" task teaspoon: :environment do require "teaspoon/console" options = { files: ENV["files"].nil? ? [] : ENV["files"].split(","), suite: ENV["suite"], coverage: ENV["coverage"], driver_options: ENV["driver_options"], } abort("rake teaspoon failed") ...
a8eae9102b9c233142aa8d629d36a28cb129b65f
src/css/_objects.content.scss
src/css/_objects.content.scss
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows i...
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows i...
Add some media queries so things are presentable on mobile
Add some media queries so things are presentable on mobile
SCSS
mit
vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website
scss
## Code Before: /*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * ...
dce5998a2a65801653acd43f8cd0039aabf124f1
app/views/tips/_collapsed_card.html.slim
app/views/tips/_collapsed_card.html.slim
- tip = exercise_tip.tip .card.mb-2 .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .clearfix role="bu...
- tip = exercise_tip.tip .card class="#{exercise_tip.parent_exercise_tip_id? ? 'mt-2' : ''}" .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#ti...
Fix styling for multiple, nested cards
Fix styling for multiple, nested cards
Slim
bsd-3-clause
openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean
slim
## Code Before: - tip = exercise_tip.tip .card.mb-2 .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab" .card-title.mb-0 a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}" .c...
6a05298c0ec57993c19773fb1fa958ca6bd3e35a
src/karma/presets/base.js
src/karma/presets/base.js
export default { name: 'base', configure ({ projectPath }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ['webpa...
export default { name: 'base', configure ({ projectPath, watch }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*.spec.*': ...
Fix execution of test watch 🐝
Fix execution of test watch 🐝
JavaScript
mit
saguijs/sagui,saguijs/sagui
javascript
## Code Before: export default { name: 'base', configure ({ projectPath }) { return { basePath: projectPath, files: [ 'src/**/*.spec.*', { pattern: 'src/**/*', watched: true, included: false } ], preprocessors: { // add webpack as preprocessor 'src/**/*....
7275d2f837d60a55b31ac1b298d901aea837f4cb
blueprints/ember-calendar/index.js
blueprints/ember-calendar/index.js
/* jshint node: true */ 'use strict'; module.exports = { afterInstall: function() { this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'int...
/* jshint node: true */ 'use strict'; module.exports = { normalizeEntityName: function() {}, beforeInstall: function() { return this.addBowerPackagesToProject([ { name: 'moment-timezone' }, { name: 'jquery-simulate' }, { name: 'interact' }, { name: 'lodash' } ]); }, afterInsta...
Normalize entity name and return promises
Normalize entity name and return promises
JavaScript
mit
alphasights/ember-calendar,mmitchellgarcia/ember-calendar,Subtletree/ember-calendar,e-karma/ewd-calendar,miclip/ember-calendar,marzubov/ember-calendar,mmitchellgarcia/ember-calendar,alphasights/ember-calendar,alphasights/ember-calendar,WebCloud/ember-calendar,marzubov/ember-calendar,alphasights/ember-calendar,mmitchell...
javascript
## Code Before: /* jshint node: true */ 'use strict'; module.exports = { afterInstall: function() { this.addPackagesToProject([ { name: 'ember-cli-paint' }, { name: 'ember-cli-lodash' }, { name: 'ember-moment' } ]); this.addBowerPackagesToProject([ { name: 'moment-timezone' }, ...
a3f4885acc5603564ae7527a4636cafc1e155a9e
app/models/activity.rb
app/models/activity.rb
class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, pr...
class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true validates :target, pr...
Improve fix for not publishing ghost activities
Improve fix for not publishing ghost activities
Ruby
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta
ruby
## Code Before: class Activity < ActiveRecord::Base belongs_to :actor, polymorphic: true belongs_to :subject, polymorphic: true belongs_to :target, polymorphic: true belongs_to :story has_many :tips, foreign_key: 'via_id' validates :actor, presence: true validates :subject, presence: true valida...
439aef404153052bf02a458c3907087730d7493a
.vim/bundle/getBundles.sh
.vim/bundle/getBundles.sh
git clone https://github.com/blueshirts/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.v...
git clone https://github.com/martinrist/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/Shougo/vimproc.vi...
Use my own fork of Darcula theme for Vim
Use my own fork of Darcula theme for Vim
Shell
mit
martinrist/dotfiles
shell
## Code Before: git clone https://github.com/blueshirts/darcula.git # Haskell git clone https://github.com/eagletmt/neco-ghc git clone https://github.com/eagletmt/ghcmod-vim.git git clone https://github.com/Shougo/neocomplete.vim.git git clone https://github.com/ervandew/supertab.git git clone https://github.com/...
cd38101f097edc60312f0c083385968ed40fd54a
src/control.py
src/control.py
import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose current_pose = message.pose[2] def compute_control_actions(): glo...
import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose, current_twist current_pose = message.pose[2] current_twist = messa...
Store current twist in a global variable
Store current twist in a global variable
Python
mit
bit0001/trajectory_tracking,bit0001/trajectory_tracking
python
## Code Before: import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Twist from constants import DELTA_T, STEPS from controller import create_controller from plotter import Plotter def get_pose(message): global current_pose current_pose = message.pose[2] def compute_control_ac...
8707aafe58eb1283e7da6c95936c220462f37460
node_modules/oae-core/lhnavigation/css/lhnavigation.css
node_modules/oae-core/lhnavigation/css/lhnavigation.css
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
Align left hand navigation with top of content
Align left hand navigation with top of content
CSS
apache-2.0
Orodan/3akai-ux,Orodan/3akai-ux-jitsi-fork,jfederico/3akai-ux,timdegroote/3akai-ux,nicolaasmatthijs/3akai-ux,mrvisser/3akai-ux,nicolaasmatthijs/3akai-ux,Orodan/3akai-ux-jitsi-fork,simong/3akai-ux,simong/3akai-ux,stuartf/3akai-ux,stuartf/3akai-ux,stuartf/3akai-ux,mrvisser/3akai-ux,mrvisser/3akai-ux,jfederico/3akai-ux,Or...
css
## Code Before: /*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless requ...
703774516e84f00dfbea58584bb2d5e913f25fda
luasrc/tests/testMultipleRequire.lua
luasrc/tests/testMultipleRequire.lua
require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' state = torch.getRNGState() randomkit.gauss(oneRequire) -- ...
require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' local ignored = torch.rand(1) local state = torch.getRNGState() ...
Fix test with serial dependency.
Fix test with serial dependency. - torch.rand() must be called before torch.getRNGState() to ensure the state is defined. - Added a 'local' keyword.
Lua
bsd-3-clause
fastturtle/torch-randomkit,deepmind/torch-randomkit,fastturtle/torch-randomkit,deepmind/torch-randomkit
lua
## Code Before: require "totem" local myTests = {} local tester = totem.Tester() function myTests.test_beta() local N = 10000 local oneRequire = torch.Tensor(N) local multipleRequire = torch.Tensor(N) -- Call N in one go require 'randomkit' state = torch.getRNGState() randomkit.gauss(oneR...
d547f7d5110929b5d572833e9ea2b31141b0b58b
.vscode/settings.json
.vscode/settings.json
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javasc...
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs/": true, "releases/": true }, "editor.tabSize": 2, "eslint.format.en...
Add releases/ to vscode's search.exclude.
Add releases/ to vscode's search.exclude.
JSON
mit
Tails/vexflow,Tails/vexflow,Tails/vexflow
json
## Code Before: // Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable":...
aa39ca6a0ebf07ef5489a07bf57ad722411907d7
core/static/core/js/core.js
core/static/core/js/core.js
$(document).ready( function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); } );...
$(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); }, 3000); $('.load-on-click')...
Move all jquerry actions to document.ready
Move all jquerry actions to document.ready
JavaScript
mit
WeitBelou/technotrack-web1-spring-2017,WeitBelou/technotrack-web1-spring-2017,WeitBelou/technotrack-web1-spring-2017
javascript
## Code Before: $(document).ready( function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')); }); setInterval(function () { $('.autoload').each(function () { $(this).load($(this).attr('data-url')) }); },...
f7363f564453d6c4718bd73ff77b083fe4ed0c37
Language/Pretty.hs
Language/Pretty.hs
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Data.Char import Text.PrettyPrint class Pretty a where pp :: a -> Doc r...
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc...
Print symbols in low case letters.
Print symbols in low case letters. Ignore for a while that symbols and code don't stand out as clearly in error messages.
Haskell
agpl-3.0
axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language
haskell
## Code Before: {-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Data.Char import Text.PrettyPrint class Pretty a where p...
92d1bf98825cbc4ae4a4619608ddac8191b47d5d
Instructor_Checklist.md
Instructor_Checklist.md
This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] Remove and unida...
This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Before * [ ] Send out announcement * [ ] Send out follow-up announcement * [ ] Create survey ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stic...
Add some more initial prep work to the checklist
Add some more initial prep work to the checklist
Markdown
mit
julienchastang/unidata-python-workshop,Unidata/unidata-python-workshop,julienchastang/unidata-python-workshop
markdown
## Code Before: This checklist contains everything we need to have and do to make sure workshops go smoothly. ## Materials * [ ] Red and Green Sticky Notes (3M are best for color deficient use) * [ ] VGA and HDMI video adapters * [ ] Stickers * [ ] Business Cards ## Before Starting * [ ] Set your shell to BASH * [ ] ...
e3cd725db9868620eb26abbe83ddbd6154e49401
.circleci/config.yml
.circleci/config.yml
version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_loc...
version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: key: yarn_loc...
Revert "Ignore deployment branch in CircleCI"
Revert "Ignore deployment branch in CircleCI" This reverts commit d5953923d2c993d776626a8ace5e30af3354bc24.
YAML
mit
CalMlynarczyk/BlackJack,CalMlynarczyk/BlackJack,CalMlynarczyk/BlackJack
yaml
## Code Before: version: 2.1 jobs: build: docker: - image: circleci/node:11.9 steps: - checkout - restore_cache: key: yarn_lock-{{ checksum "yarn.lock" }} - run: name: Install Node dependencies command: yarn --frozen-lockfile - save_cache: ...
6a1b527deba29d3c0cf8a7d5cc6ecbc9edaa78ba
_config.yml
_config.yml
title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://bl...
title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://bl...
Stop trying to build md from vendor on Heroku
Stop trying to build md from vendor on Heroku
YAML
mit
dirtyhenry/blog-deadrooster-org,dirtyhenry/blog-deadrooster-org,dirtyhenry/blog-deadrooster-org
yaml
## Code Before: title: Dead Rooster description: > # this means to ignore newlines until "baseurl:" Voici la nouvelle maison du blog culturo-sportivo-fun de Dead Rooster dont la version précédente est disponible sur l'ancienne adresse http://www.deadrooster.org baseurl: "" # the subpath of your site, e.g. /blog/...
463d94475b3f887ba1ec6646920b368c770cdebd
ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.mk
ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.mk
USB_VID = 0X1B4F # TODO: Replace the Product ID below with the official value once known. USB_PID = 0x0027 # Same PID as the SparkFun MicroMod STM32 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MC...
USB_VID = 0X1B4F USB_PID = 0x0028 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MCU_SERIES = F4 MCU_VARIANT = STM32F405xx MCU_PACKAGE = LQFP64 LD_COMMON = boards/common_default.ld LD_DEFAULT = boards/STM32F405_defa...
Use correct PID for SparkFun Thing Plus - STM32
Use correct PID for SparkFun Thing Plus - STM32 This value was kindly provided by brhoff720.
Makefile
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
makefile
## Code Before: USB_VID = 0X1B4F # TODO: Replace the Product ID below with the official value once known. USB_PID = 0x0027 # Same PID as the SparkFun MicroMod STM32 USB_PRODUCT = "SparkFun Thing Plus - STM32" USB_MANUFACTURER = "SparkFun Electronics" SPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICES = W25Q128JVxM MC...
3ed19b2672738a59fc8676e0403ee90fe57273a1
django/website/logframe/tests/test_admin.py
django/website/logframe/tests/test_admin.py
from mock import Mock from ..admin import SubIndicatorAdmin from ..models import SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator.result == admin....
from mock import Mock from ..admin import RatingAdmin, SubIndicatorAdmin from ..models import colors, Rating, SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicat...
Add test for RatingAdmin colored_name
Add test for RatingAdmin colored_name
Python
agpl-3.0
aptivate/alfie,daniell/kashana,aptivate/kashana,aptivate/alfie,daniell/kashana,aptivate/kashana,aptivate/alfie,daniell/kashana,aptivate/alfie,aptivate/kashana,aptivate/kashana,daniell/kashana
python
## Code Before: from mock import Mock from ..admin import SubIndicatorAdmin from ..models import SubIndicator def test_sub_indicator_admin_rsult_returns_indicator_result(): sub_indicator = Mock(indicator=Mock(result='result')) admin = SubIndicatorAdmin(SubIndicator, None) assert sub_indicator.indicator....
a2a63106447d781af5c49fdcf9203542e297043e
pom.xml
pom.xml
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>ROOT</artifactId> <packaging>jar</packaging> ...
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>convert</artifactId> <packaging>jar</packaging...
Build directory changed, version added.
Build directory changed, version added.
XML
apache-2.0
kashukov/convert
xml
## Code Before: <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>ROOT</artifactId> <packaging>ja...
1f6bd3be5648395b121288f5894486906d52d0eb
lib/scaffolds/views/index.html.haml
lib/scaffolds/views/index.html.haml
%h1= @page_title - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>.
%h1= @page_title <%- if actions.include?('new') %> - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' <% end -%> - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= pl...
Hide new button on index if no new action
Hide new button on index if no new action
Haml
mit
code-and-effect/effective_developer,code-and-effect/effective_developer
haml
## Code Before: %h1= @page_title - if can?(:new, <%= class_name %>) %p.text-right= link_to 'New <%= human_name %>', <%= new_path %>, class: 'btn btn-primary' - if @datatable.present? = render_datatable_scopes(@datatable) = render_datatable(@datatable) - else %p There are no <%= plural_name %>. ## Instruction...
fdb971d977910b7c7af368dc1d22d47a4ec30369
views/index.jade
views/index.jade
block content div.navbar navbar-fixed-top, (role='navigation') div.container-fluid div.navbar-header button.navbar-toggle (data-target=".navbar-collapse' data-toggle="collapse" type="button") span.sr-only Toggle navigation ...
block content div(class='navbar navbar-fixed-top', role='navigation') div.container-fluid div.navbar-header button.navbar-toggle(data-target=".navbar-collapse", data-toggle="collapse", type="button") span.sr-only Toggle navigation span.icon...
Fix jade template main page
Fix jade template main page
Jade
bsd-2-clause
aberaza/cagnote,aberaza/cagnote
jade
## Code Before: block content div.navbar navbar-fixed-top, (role='navigation') div.container-fluid div.navbar-header button.navbar-toggle (data-target=".navbar-collapse' data-toggle="collapse" type="button") span.sr-only Toggle navigati...
c8681995f7a7107a1cc52b4ed5ffe3f0ca325bda
support/packagecloud_upload.sh
support/packagecloud_upload.sh
export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitlab checkout. ...
export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [[ "${PACKAGECLOUD_OS}" =~ "el/" ]]; then OS[1]="${OS[0]/el/scientific}" OS[2]="${OS[0]/el/ol}" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the om...
Correct the string match behavior for packacgecloud_upload.sh
Correct the string match behavior for packacgecloud_upload.sh We were attempting to match on the wrong data. Use a pattern match vs `el/` to detect, and not a direct comparison to `el`
Shell
apache-2.0
gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab
shell
## Code Before: export LC_ALL='en_US.UTF-8' PACKAGECLOUD_USER=$1 PACKAGECLOUD_REPO=$2 PACKAGECLOUD_OS=$3 declare -A OS OS[0]="${PACKAGECLOUD_OS}" if [ "${PACKAGECLOUD_OS}" == "el" ]; then OS[1]="scientific" OS[2]="ol" fi for x in ${OS[@]} ; do # this bin is assumed to be at the root of the omnibus-gitl...
a45eb42e6bea5fca0e6b74523d70963952ca04b0
src/variables.css
src/variables.css
/* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ :ro...
/* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } /* Fonts */ /* Logo font should...
Add note regarding preference for SVG over entire font for logo text
Add note regarding preference for SVG over entire font for logo text
CSS
mit
OHIF/Viewers,OHIF/Viewers,OHIF/Viewers
css
## Code Before: /* Sizes */ :root { --top-bar-height: 40px; --top-bar-expanded-height: 160px; --toolbar-height: 78px; --toolbar-drawer-height: 62px; --left-sidebar-menu-width: 307px; --right-sidebar-menu-width: 323px; --study-list-padding: 8%; --study-list-padding-medium-screen: 10px; } ...
057a8add0a89af8044625a922249176bbfb67676
setup.cfg
setup.cfg
[bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405
[bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 exclude = build
Exclude build dir for flake8
Exclude build dir for flake8
INI
mit
jrg365/gpytorch,jrg365/gpytorch,jrg365/gpytorch
ini
## Code Before: [bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 ## Instruction: Exclude build dir for flake8 ## Code After: [bdist_wheel] universal=1 [pep8] max-line-length = 120 [flake8] max-line-length = 120 ignore = F403, F405 exclude = build
af2c220449155a5a2af608d0b81ddc9d2d53d1ee
app/index.html
app/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Ruby Adventure</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> <div class="co...
<!doctype html> <html lang="en"> <head> <title>wotf-cyoa</title <meta charset="utf-8"> <meta name="description" content="Wizards of the Future: Craft Your Own Adventure"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-sc...
Change title and add description meta tag
Change title and add description meta tag
HTML
mit
wotf-cyoa/frontend,wotf-cyoa/frontend,wotf-cyoa/backend,wotf-cyoa/backend
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Ruby Adventure</title> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> <link rel="stylesheet" href="app.css"> </head> <body> ...
fbe4d9f7a874be328a6a5c9fca568be259f7836e
packages/gi/github-types.yaml
packages/gi/github-types.yaml
homepage: '' changelog-type: '' hash: 3022535410f44dc43ed41650dc14bcd508ae288b5031b46422c94a314588cf2a test-bench-deps: {} maintainer: tomas.carnecky@gmail.com synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' text: -any aeson: -any all-versions: - '0.1...
homepage: '' changelog-type: '' hash: 655337b6ac71bd5938a2ec9f4ead8da64a05dd0183a6ecf6489da30a51c92596 test-bench-deps: base: <4.9 time: -any aeson-pretty: -any unordered-containers: -any hspec: -any text: -any smallcheck: -any http-conduit: -any aeson: -any vector: -any hspec-smallcheck: -any mai...
Update from Hackage at 2015-08-24T15:38:19+0000
Update from Hackage at 2015-08-24T15:38:19+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: 3022535410f44dc43ed41650dc14bcd508ae288b5031b46422c94a314588cf2a test-bench-deps: {} maintainer: tomas.carnecky@gmail.com synopsis: Type definitions for objects used by the GitHub v3 API changelog: '' basic-deps: base: ! '>=4 && <5' text: -any aeson: -any all-...
17b184e5c8d41eb083dc6400f6fca2a3eeb8f742
core/admin/mailu/internal/views.py
core/admin/mailu/internal/views.py
from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authentication endpoint for ...
from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login import base64 import urllib @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main ...
Implement a basic authentication API
Implement a basic authentication API
Python
mit
kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io
python
## Code Before: from mailu import db, models, app, limiter from mailu.internal import internal, nginx import flask import flask_login @internal.route("/auth/email") @limiter.limit( app.config["AUTH_RATELIMIT"], lambda: flask.request.headers["Client-Ip"] ) def nginx_authentication(): """ Main authenticati...
663c2dbcbb366ebf07810da451a1923632b58729
Dogfile.yml
Dogfile.yml
- task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldf...
- task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go build \ -ldf...
Add get_version to pre-task of release
Add get_version to pre-task of release
YAML
apache-2.0
dogtools/dog,xsb/dog
yaml
## Code Before: - task: get_version code: grep "const version" cmd/dog/main.go | cut -d'"' -f2 register: DOG_VERSION - task: clean description: Clean compiled binaries code: rm -rf dist dog-* - task: build description: Build dog binary for current platform env: OUTPUT_PATH=dist/current code: | go bu...
70ba84dc485ed3db4ccf5008db87b2c9f003634b
tests/fixtures/__init__.py
tests/fixtures/__init__.py
"""Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.j...
"""Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURES_ROOT / 'test.j...
Fix fixture encoding on Windows
Fix fixture encoding on Windows
Python
bsd-3-clause
PKRoma/httpie,jakubroztocil/httpie,jkbrzt/httpie,jakubroztocil/httpie,jkbrzt/httpie,jakubroztocil/httpie,jkbrzt/httpie,PKRoma/httpie
python
## Code Before: """Test data""" from pathlib import Path def patharg(path): """ Back slashes need to be escaped in ITEM args, even in Windows paths. """ return str(path).replace('\\', '\\\\\\') FIXTURES_ROOT = Path(__file__).parent FILE_PATH = FIXTURES_ROOT / 'test.txt' JSON_FILE_PATH = FIXTURE...
ea4746f6b809c0c3b2a6931bc863121c07ee2c9a
lib/plugins/method/__init__.py
lib/plugins/method/__init__.py
from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory
from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory @staticmethod def supports(methodName): raise NotImplementedError
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
Make supports method throw NotImplementedError so that methods failing to implement it does not fail silently
Python
mit
factorial-io/fabalicious,factorial-io/fabalicious
python
## Code Before: from yapsy.IPlugin import IPlugin from lib.methods import BaseMethod class IMethodPlugin(BaseMethod, IPlugin): def __init__(self): pass def setNameAndFactory(self, name, factory): self.methodName = name self.factory = factory ## Instruction: Make supports method throw NotImplementedE...
ca4e6adef8609c9a94740c31af410b67c1f12f19
README.md
README.md
brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in ...
brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `.music` file in ...
Add more documentation for prompt_command
Add more documentation for prompt_command
Markdown
mit
justincampbell/dotmusic
markdown
## Code Before: brew tap justincampbell/formulae brew install dotmusic ## Package wget -O dotmusic-latest.tar.gz https://github.com/justincampbell/dotmusic/archive/latest.tar.gz dotmusic tar -zxvf dotmusic-latest.tar.gz cd dotmusic-latest/ make install # Usage Just run `dotmusic`, and the `...
6c118f3346e9039a204b3cd08830276ea2122e16
docs/client/full-api/docs.html
docs/client/full-api/docs.html
<template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#if id}}{{id}}{{/...
<template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} {{> commandline }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" i...
Add command line section back in
Add command line section back in
HTML
mit
paul-barry-kenzan/meteor,dfischer/meteor,shmiko/meteor,ashwathgovind/meteor,devgrok/meteor,dandv/meteor,Profab/meteor,Jeremy017/meteor,JesseQin/meteor,arunoda/meteor,lawrenceAIO/meteor,vjau/meteor,Eynaliyev/meteor,AlexR1712/meteor,skarekrow/meteor,akintoey/meteor,hristaki/meteor,qscripter/meteor,SeanOceanHu/meteor,D1no...
html
## Code Before: <template name="fullApiContent"> {{> introduction }} {{> concepts }} {{> api }} {{> packages }} </template> <template name="dtdd"> {{! can be used with either one argument (which ends up in the data context, or with both name and type }} {{#if name}} <dt><span class="name" id={{#...
a44b588adb584ebb147b90a98b7389405115758e
src/clinical/encounter.data.coffee
src/clinical/encounter.data.coffee
`import Pathology from "./pathology.data.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the parent subject REST ...
`import Pathology from "./pathology.data.coffee"` `import Breast from "./breast.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * ...
Extend clinical for breast tumors.
Extend clinical for breast tumors.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
coffeescript
## Code Before: `import Pathology from "./pathology.data.coffee"` ###* * The clinical Encounter REST data object extension utility. * * @module clinical * @class ClinicalEncounter * @static ### ClinicalEncounter = ###* * @method extend * @param encounter the clinical encounter * @param subject the pare...
1c3ac223ee3b94b47c6a2e398193dac50a4941f2
content/events/2016-baltimore/contact.md
content/events/2016-baltimore/contact.md
+++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team*...
+++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} **Our local team*...
Add twitter stream to Baltimore
Add twitter stream to Baltimore Signed-off-by: Nathen Harvey <f3cabdeba0e84594589839e3e1ff17618f7c11d9@chef.io>
Markdown
apache-2.0
gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web
markdown
## Code Before: +++ date = "2016-05-20T09:31:15-04:00" title = "contact" type = "event" +++ Follow [@DevOpsDaysBmore](https://twitter.com/devopsdaysbmore) on twitter. What questions can we answer for you? Drop us an email: {{< email_organizers >}} If you'd like to contact us by email: {{< email_organizers >}} *...
2d9771d0bbbda64df724b8169660a800e51919d1
README.md
README.md
Where everything else goes :warning: **Warning**: some of this code is quite old and most of it is very ugly.
[![forthebadge](http://forthebadge.com/images/badges/uses-badges.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/compatibility-ie-6.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg)](http://forthebadge.com) ...
Add badges just for fun
Add badges just for fun
Markdown
mit
bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile
markdown
## Code Before: Where everything else goes :warning: **Warning**: some of this code is quite old and most of it is very ugly. ## Instruction: Add badges just for fun ## Code After: [![forthebadge](http://forthebadge.com/images/badges/uses-badges.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/ima...
efe791190fea2f888e88e389b1a30b15eace5c4f
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.github_repository.try(:update_all_info_async) redirect_to project_path(@p...
class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.update_github_repo_async redirect_to project_path(@project.to_param) ...
Update github repo after admin edit
Update github repo after admin edit
Ruby
agpl-3.0
librariesio/libraries.io,samjacobclift/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io,tomnatt/libraries.io,samjacobclift/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,abrophy/libraries.io
ruby
## Code Before: class Admin::ProjectsController < Admin::ApplicationController def show @project = Project.find(params[:id]) end def update @project = Project.find(params[:id]) if @project.update_attributes(project_params) @project.github_repository.try(:update_all_info_async) redirect_to...
179ab5ad2af50e2f21015a920b05e6842f3d64ee
tests/ZendTest/Form/TestAsset/Model.php
tests/ZendTest/Form/TestAsset/Model.php
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Z...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
Remove @package & restart travis
Remove @package & restart travis
PHP
bsd-3-clause
nandadotexe/zf2,inwebo/zf2,samsonasik/zf2,keradus/zf2,echampet/zf2,bullandrock/zf2,sasezaki/zf2,samsonasik/zf2,mmetayer/zf2,huangchaolei55/firstSite,stefanotorresi/zf2,pembo210/zf2,roko79/zf2,campersau/zf2,vrkansagara/zf2,TheBestSoftInTheWorld/zf2,0livier/zf2,KarimBea/test,dntmartins/zf2,KarimBea/test,desenvuno/zf2,lev...
php
## Code Before: <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License...
dac3c4f163c694b9b083247e72189996e5e2125c
just/json_.py
just/json_.py
import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w")...
import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): with open(fn, "w")...
Add detailed error message to jsonl parsing
Add detailed error message to jsonl parsing
Python
agpl-3.0
kootenpv/just
python
## Code Before: import json def read(fn): if fn.endswith(".jsonl"): raise TypeError("JSON Newline format can only be read by iread") with open(fn) as f: return json.load(f) def append(obj, fn): with open(fn, "a+") as f: f.write(json.dumps(obj) + "\n") def write(obj, fn): wi...
434911be78631a1902c92571400d668f2ff02e45
update_packages.sh
update_packages.sh
echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > ~/git/arch/packages echo "Writing foreign package list..." pacman -Qqettm > ~/git...
if [[ ! -f packages || ! -f aur_packages ]]; then echo "One or more of packages and aur_packages doesn't exist." echo "Are we in the right directory? Quitting.." exit fi echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi ...
Check for existence of destination files
Check for existence of destination files
Shell
mit
ow97/arch
shell
## Code Before: echo "Cleaning out orphaned dependencies..." ORPHANS=$(pacman -Qdtq) if [[ -n "${ORPHANS}" ]]; then sudo pacman -Rns ${ORPHANS} fi echo "Checking database..." sudo pacman -Dkk echo "Writing native package list..." pacman -Qqettn > ~/git/arch/packages echo "Writing foreign package list..." pacman...
0216bfd48fddb9bb7bda611ec5bdfe368bdee55f
layout/tests.py
layout/tests.py
from django.test import TestCase # Create your tests here.
from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
Add home page resolve test to layout
Add home page resolve test to layout
Python
mit
jvanbrug/scout,jvanbrug/scout
python
## Code Before: from django.test import TestCase # Create your tests here. ## Instruction: Add home page resolve test to layout ## Code After: from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_t...
9ec8f4a5b62407f2a6d0a88370a83a6a3d85b934
application/config/auth.php
application/config/auth.php
<?php return array( /* |-------------------------------------------------------------------------- | Authentication Model |-------------------------------------------------------------------------- | | This model will be used by the Auth class when retrieving the users of | your application. Feel free to chang...
<?php return array( /* |-------------------------------------------------------------------------- | Retrieve Users By ID |-------------------------------------------------------------------------- | | This method is called by the Auth::user() method when attempting to load | a user by their user ID. | | Yo...
Refactor Auth config to use closures.
Refactor Auth config to use closures.
PHP
apache-2.0
abbasadel/TheGlobalMeter,AustinW/contact-manager,zhiyicx/thinksns-plus,alanly/soen341-scheduler,lxerxa/actionview,abbasadel/TheGlobalMeter,boomcms/boomcms,escanton/invoices-providers,kjvenky/laravel,hackel/laravel,resnostyle/Shuttr,lcp0578/Wiki,renemeza/college-web-control,abbasadel/TheGlobalMeter,ColErr/creepr-workben...
php
## Code Before: <?php return array( /* |-------------------------------------------------------------------------- | Authentication Model |-------------------------------------------------------------------------- | | This model will be used by the Auth class when retrieving the users of | your application. Fe...
daff0935efecbf6df3f43567c628db3c6357ffbe
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/ReportLogger.java
logging-api/src/main/java/com/cisco/oss/foundation/logging/transactions/ReportLogger.java
package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAction(logger, audi...
package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { static private String reportNameFieldName = "ReportName"; static private String reportBodyFieldName = "ReportBody"; static public ...
Allow chaning report field names
Allow chaning report field names
Java
apache-2.0
foundation-runtime/logging
java
## Code Before: package com.cisco.oss.foundation.logging.transactions; import org.slf4j.Logger; /** * Created by Nuna on 10/01/2016. */ public class ReportLogger extends SchedulerLogger { public static void start(final Logger logger, final Logger auditor, final String reportName) { if(!createLoggingAct...
79b5a8464000177ec84b6aea217ae6b8eba803b4
.travis.yml
.travis.yml
language: python python: - 3.3.2 # - 3.4 # - pypy install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py # after_success: # - pyflakes scripts/*.py notifications: email: recipients: - eric@sunlightfoundation.com - tauberer@govtrack.us on_success: ...
language: python python: - 3.3.2 # - 3.4 install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py after_success: - pyflakes scripts/*.py notifications: email: recipients: - eric@sunlightfoundation.com - tauberer@govtrack.us on_success: change on_f...
Add pyflakes to Travis process
Add pyflakes to Travis process
YAML
cc0-1.0
gautamsrin/congress-legislators,hugovk/congress-legislators,hackerrdave/congress-legislators,Ukazziha/congress-legislators,Daniel1005/congress-legislators,YOTOV-LIMITED/congress-legislators,gautamsrin/congress-legislators,hackerrdave/congress-legislators,Daniel1005/congress-legislators,mrumsky/congress-legislators,iamL...
yaml
## Code Before: language: python python: - 3.3.2 # - 3.4 # - pypy install: pip install -r scripts/requirements.txt --use-mirrors script: python test/workout.py # after_success: # - pyflakes scripts/*.py notifications: email: recipients: - eric@sunlightfoundation.com - tauberer@govtrack.us ...
14603b31771e091ac8e33418099ff3d276072aba
integration/docker/simple_test.go
integration/docker/simple_test.go
package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing"...
package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a containerId, got nothing"...
Update integration tests a bit
Update integration tests a bit
Go
apache-2.0
libkermit/docker,libkermit/docker
go
## Code Before: package dockerit import ( "testing" "github.com/vdemeester/libkermit/docker" ) func TestCreateSimple(t *testing.T) { setupTest(t) container, err := docker.Create("busybox") if err != nil { t.Fatalf("expected no error, got %v", err) } if container.ID == "" { t.Fatalf("expected a container...
820a969552986fc7c7b1cbc4460ea198fc2a49f4
.travis.yml
.travis.yml
language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.4 and 2.5 too, but they are not available in travis install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_VERSION == 3.2 ]]...
language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.3, 2.4 and 2.5 too, but they are not available in travis - 'pypy3' - 'pypy' install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRA...
Add pypy in Travis CI
Add pypy in Travis CI
YAML
lgpl-2.1
LRGH/elfesteem,LRGH/elfesteem
yaml
## Code Before: language: python python: - '3.6' - '3.5' - '3.4' - '3.3' - '3.2' - '2.7' - '2.6' # elfesteem works with 2.4 and 2.5 too, but they are not available in travis install: - pip install coverage codecov before_script: export PYTHONPATH=$PYTHONPATH:$(pwd) script: - if [[ $TRAVIS_PYTHON_V...
1e8d24512f855db215686e60ae0638de57f51ded
README.md
README.md
Integration components for using Rossvyaz Open Data in Android application.
Integration components for using [Rossvyaz Open Data](http://www.rossvyaz.ru/opendata "Rossvyaz Open Data (rus)") in Android application. Minimum supported Android SDK version is 9 (Android 2.3+). Right now Russvy is simple enough and does not have any external dependencies. ## Repository contents - 'assets': minified...
Add slightly more verbose readme
Add slightly more verbose readme
Markdown
apache-2.0
tbrs/russvy
markdown
## Code Before: Integration components for using Rossvyaz Open Data in Android application. ## Instruction: Add slightly more verbose readme ## Code After: Integration components for using [Rossvyaz Open Data](http://www.rossvyaz.ru/opendata "Rossvyaz Open Data (rus)") in Android application. Minimum supported Androi...
09b1475aebbd6f638b2ee3fd6f16e8cae3aee636
lib/salve/oop.js
lib/salve/oop.js
define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { function F() {} F.prototype = inherited.prototype; inheritor.prototype = new F(); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for...
define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { inheritor.prototype = Object.create(inherited.prototype); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inherited) { for(var f in inherited.prototype) {...
Use Object.create rather than a fake constructor.
Use Object.create rather than a fake constructor.
JavaScript
mpl-2.0
lddubeau/salve,lddubeau/salve,mangalam-research/salve,mangalam-research/salve,lddubeau/salve,mangalam-research/salve
javascript
## Code Before: define(function (require, exports, module) { 'use strict'; // // OOP utilities // function inherit(inheritor, inherited) { function F() {} F.prototype = inherited.prototype; inheritor.prototype = new F(); inheritor.prototype.constructor = inheritor; } function implement(inheritor, inhe...
f2b2a27b4729feaab2277f95faca768782322215
.travis.yml
.travis.yml
language: python python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== deplo...
language: python cache: pip python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end=========================...
Add to cache & python version
Add to cache & python version
YAML
mit
Shinichi-Nakagawa/pitchpx
yaml
## Code Before: language: python python: - 3.3 - 3.4 - 3.5 before_install: - echo ===================pitchpx testing start============================ install: - pip install -r requirements.txt script: - py.test ./tests after_success: - echo ===================pitchpx testing end=====================...
5ec452a9bc0386a6471bc14564646d29eb44c1e0
java/.idea/compiler.xml
java/.idea/compiler.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wild...
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExtensions> <wild...
Copy resources to output at build time
Copy resources to output at build time
XML
apache-2.0
InformaticsMatters/squonk,InformaticsMatters/squonk,InformaticsMatters/squonk,InformaticsMatters/squonk
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> </resourceExten...
ae30e7a955c79958018f1eabab143466e0d9351d
src/Laravel/config/ticketevolution.php
src/Laravel/config/ticketevolution.php
<?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config ...
<?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration to your config ...
Correct artisan command for publishing the config file
Correct artisan command for publishing the config file
PHP
bsd-3-clause
ticketevolution/ticketevolution-php,sonnygauran/ticketevolution-php
php
## Code Before: <?php /* |-------------------------------------------------------------------------- | Ticket Evolution Config |-------------------------------------------------------------------------- | | This file is for storing the credentials for the Ticket Evolution API. | | You should publish this configuration...
5d1c802e2b3ee7ae7471bd2f159af236f7674453
app/javascript/packs/application.js
app/javascript/packs/application.js
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. //...
/* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. //...
Fix JS require for hotwired/turbo
Fix JS require for hotwired/turbo
JavaScript
mit
SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime
javascript
## Code Before: /* eslint no-console:0 */ // This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll...
564ae98a1488306151a0436b1a74325b9cc21ad7
sentry_auth_github/templates/sentry_auth_github/select-organization.html
sentry_auth_github/templates/sentry_auth_github/select-organization.html
{% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %} {{block.super }} auth{% endblock %} {% block footer %}{% endblock %} {% block content %} <h3>Select Organization</h3> <p>Select t...
{% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %}windowed-small{% endblock %} {% block footer %}{% endblock %} {% block content %} <section class="body"> <h3>Select Organization<...
Update template to match current design
Update template to match current design
HTML
apache-2.0
getsentry/sentry-auth-github,iserko/sentry-auth-github,iserko/sentry-auth-github,ewdurbin/sentry-auth-github,ewdurbin/sentry-auth-github,getsentry/sentry-auth-github
html
## Code Before: {% extends "sentry/bases/modal.html" %} {% load crispy_forms_tags %} {% load i18n %} {% block title %}{% trans "Login" %} | {{ block.super }}{% endblock %} {% block wrapperclass %} {{block.super }} auth{% endblock %} {% block footer %}{% endblock %} {% block content %} <h3>Select Organization</h3...
4a47e7a15366ade8e326026c2cbf6f7d5b2a7f52
docs/index.md
docs/index.md
--- layout: default title: Page Sizer --- Google Docs add-on to to specify custom page sizes.
--- layout: default --- Install addon: [![Chrome Web Store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_340x96.png)](https://chrome.google.com/webstore/detail/page-sizer/acgkneeneageffjinlglednnehpelffb?utm_source=permalink)
Add Chrome Web Store link and image.
Add Chrome Web Store link and image.
Markdown
mit
burnnat/page-sizer,burnnat/page-sizer
markdown
## Code Before: --- layout: default title: Page Sizer --- Google Docs add-on to to specify custom page sizes. ## Instruction: Add Chrome Web Store link and image. ## Code After: --- layout: default --- Install addon: [![Chrome Web Store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_340x96.png)]...
e061d2610a60a52729a00a27389ad62c28aa490e
lib/rspec/rails/example/controller_example_group.rb
lib/rspec/rails/example/controller_example_group.rb
require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionContro...
require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions include ActionContro...
Add helper for setting a raw post body
Add helper for setting a raw post body
Ruby
mit
teodor-pripoae/rspec-rails23
ruby
## Code Before: require 'action_controller' require 'action_controller/test_case' module RSpec module Rails module ControllerExampleGroup extend ActiveSupport::Concern include RailsExampleGroup include ActionController::TestProcess include ActionController::TestCase::Assertions incl...
fb9c56381d259de7d1765ca0e058f82d61e4e975
examples/ellipses_FreeCAD.py
examples/ellipses_FreeCAD.py
from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) + ".\.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 for ellipse in data: cx, cy, b, a, ang = ellips...
from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) #+ "/.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 radii = [] for ellipse in data: cx, cy, b, a, a...
Add radii mean and standard deviation
Add radii mean and standard deviation
Python
mit
nicoguaro/ellipse_packing
python
## Code Before: from __future__ import division import numpy as np import FreeCAD as FC import Part import Draft import os doc = FC.newDocument("ellipses") folder = os.path.dirname(__file__) + ".\.." fname = folder + "/vor_ellipses.txt" data = np.loadtxt(fname) shapes = [] area = 0 for ellipse in data: cx, cy, b,...
6dfb488a6e7569e6cf71b5323fb5995864de2d5f
package.json
package.json
{ "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock...
{ "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7.1.0", "nock...
Add istanbul to devDependencies for codecov
Add istanbul to devDependencies for codecov
JSON
apache-2.0
UkRobJones/zosconnect-node,crshnburn/zosconnect-node,zosconnect/zosconnect-node
json
## Code Before: { "name": "zosconnect-node", "version": "0.1.0", "description": "Simple node.js wrapper for z/OS Connect Services", "main": "index.js", "dependencies": { "async": "1.4.2", "codecov.io": "^0.1.6", "request": "2.61.0" }, "devDependencies": { "mocha": "2.3.0", "should": "7...
87dd7631d2852b0fd399bb25c30d1290cca046c9
lib/json/jose.rb
lib/json/jose.rb
require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def he...
require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :header def he...
Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec
Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec
Ruby
mit
nov/json-jwt
ruby
## Code Before: require 'securecompare' module JSON module JOSE extend ActiveSupport::Concern included do extend ClassMethods include SecureCompare register_header_keys :alg, :jku, :jwk, :x5u, :x5t, :x5c, :kid, :typ, :cty, :crit alias_method :algorithm, :alg attr_accessor :hea...