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
f16c0b91026f2e64cfa8c5c78bce367292e196b1
src/ext/components/scala-code-output.jade
src/ext/components/scala-code-output.jade
.flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style="white-space: pre-wrap") h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible " style="white-space: pre-wrap") a(href="#" data-bind="cli...
.flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style='white-space: pre-wrap; font-family: Courier') h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible" style='white-space: pre-wrap; font-fami...
Use MonoSpace font in Scala cell console & interpreter output
[PUBDEV-5699] Use MonoSpace font in Scala cell console & interpreter output
Jade
mit
h2oai/h2o-flow,h2oai/h2o-flow
jade
## Code Before: .flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style="white-space: pre-wrap") h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible " style="white-space: pre-wrap") a(href="#...
f2e43ebc40c2ec565a395d4321939fd9d88f49ec
QUICKSTART.md
QUICKSTART.md
mkdir tap_0.2.0 git clone -b tap_0.2.0 git@github.com:tap-git/tap.git cd tap mvn clean install cd samples mvn clean install hadoop fs -mkdir /tmp/inputs hadoop fs -put ../share/*.txt /tmp/inputs hadoop jar target/tap-samples-1.0-SNAPSHOT.jar tap.sample.WordCount -i /tmp/inputs -o /tmp/wcoutput hadoop fs -get /tmp/wc...
mkdir tap_0.2.0 git clone -b tap_0.2.0 git@github.com:tap-git/tap.git cd tap mvn clean install cd samples mvn clean install hadoop fs -mkdir /tmp/inputs hadoop fs -put ../share/*.txt /tmp/inputs hadoop jar target/tap-samples-1.0-SNAPSHOT.jar tap.sample.WordCount -i /tmp/inputs -o /tmp/wcoutput hadoop fs -get /tmp/wc...
Modify to show that output is an Avro file.
Modify to show that output is an Avro file.
Markdown
apache-2.0
tap-git/tap,tap-git/tap,tap-git/tap
markdown
## Code Before: mkdir tap_0.2.0 git clone -b tap_0.2.0 git@github.com:tap-git/tap.git cd tap mvn clean install cd samples mvn clean install hadoop fs -mkdir /tmp/inputs hadoop fs -put ../share/*.txt /tmp/inputs hadoop jar target/tap-samples-1.0-SNAPSHOT.jar tap.sample.WordCount -i /tmp/inputs -o /tmp/wcoutput hadoop...
7ca75d38392a861ea168dab0bd9f3c8b3982f443
classes/source_downloader.rb
classes/source_downloader.rb
class SourceDownloader include HashInit attr_accessor :spec, :download_location, :overwrite def download_pod_source_files puts "\n ----------------------" puts "\n Looking at #{@spec.name} #{@spec.version} \n".bold.blue cache_path = $active_folder + "/download_cache" if Dir.exists? @download_lo...
class SourceDownloader include HashInit attr_accessor :spec, :download_location, :overwrite def download_pod_source_files puts "\n ----------------------" puts "\n Looking at #{@spec.name} #{@spec.version} \n".bold.blue cache_path = File.join($active_folder, 'download_cache') if Dir.exists? @do...
Fix an issue where cache was disabled
[Downloader] Fix an issue where cache was disabled
Ruby
mit
CocoaPods/cocoadocs.org,jogu/cocoadocs.org,squarefrog/cocoadocs.org,ashfurrow/cocoadocs.org,jogu/cocoadocs.org,ashfurrow/cocoadocs.org,neonichu/cocoadocs.org,squarefrog/cocoadocs.org,CocoaPods/cocoadocs.org,briancroom/cocoadocs.org,neonichu/cocoadocs.org,CocoaPods/cocoadocs.org,briancroom/cocoadocs.org,neonichu/cocoado...
ruby
## Code Before: class SourceDownloader include HashInit attr_accessor :spec, :download_location, :overwrite def download_pod_source_files puts "\n ----------------------" puts "\n Looking at #{@spec.name} #{@spec.version} \n".bold.blue cache_path = $active_folder + "/download_cache" if Dir.exis...
3342b3467cd33b89901b0ca85b61bf137a44d3c8
README.md
README.md
HElib ===== HElib is a software library that implements homomorphic encryption (HE). Currently available is an implementation of the [Brakerski-Gentry-Vaikuntanathan] [1] (BGV) scheme, along with many optimizations to make homomorphic evaluation runs faster, focusing mostly on effective use of the [Smart-Vercauteren] ...
HElib ===== HElib is a software library that implements [homomorphic encryption] [6] (HE). Currently available is an implementation of the [Brakerski-Gentry-Vaikuntanathan] [1] (BGV) scheme, along with many optimizations to make homomorphic evaluation runs faster, focusing mostly on effective use of the [Smart-Vercaut...
Add a link to wikipedia
Add a link to wikipedia There are people like me that needs a link to wikipedia to remember what homomorphic encryption means.
Markdown
apache-2.0
AlexanderViand/HElib,berserkr/HElib,shaih/HElib,berserkr/HElib,shaih/HElib,AlexanderViand/HElib,shaih/HElib,AlexanderViand/HElib,berserkr/HElib
markdown
## Code Before: HElib ===== HElib is a software library that implements homomorphic encryption (HE). Currently available is an implementation of the [Brakerski-Gentry-Vaikuntanathan] [1] (BGV) scheme, along with many optimizations to make homomorphic evaluation runs faster, focusing mostly on effective use of the [Sma...
c3b5661a2ed49284b7d968096615ffbac884a410
public/index.html
public/index.html
<!DOCTYPE html> <html> <head> <link href="/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> </head> <body> <h1>Hello world from index.html</h1> <script src="/lib/jquery/dist/jquery.min.js"></script> <script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script> <script src="/lib/angular/angula...
<!DOCTYPE html> <html lang="en" ng-app="MeanAuthApp"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these...
Fix script paths and add nav
Fix script paths and add nav
HTML
mit
DavidMax/mean-auth,DavidMax/mean-auth
html
## Code Before: <!DOCTYPE html> <html> <head> <link href="/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> </head> <body> <h1>Hello world from index.html</h1> <script src="/lib/jquery/dist/jquery.min.js"></script> <script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script> <script src="/li...
f04b85d6536cdfcf3d51e237bde7c2e63a5c2946
server/server.py
server/server.py
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self) def do_GE...
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): CLIENT_PREFIX = '/client/' def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. if self.rewrite_to_client_path(): ...
Handle only /client requests to file serving.
Handle only /client requests to file serving.
Python
apache-2.0
kcaa/kcaa,kcaa/kcaa,kcaa/kcaa,kcaa/kcaa
python
## Code Before: import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self...
1fdc33b04d25fee097eab8b8614569992a0a4bf4
staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h
staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/executor.h> #include <vespa/vespalib/util/time.h> #include <vector> class FNET_Transport; namespace vespalib { class TimerTask; /** * ScheduledExecutor is a class cap...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/executor.h> #include <vespa/vespalib/util/time.h> #include <mutex> #include <vector> class FNET_Transport; namespace vespalib { class TimerTask; /** * ScheduledExecut...
Add include to get declaration for std::mutex (staging_vespalib).
Add include to get declaration for std::mutex (staging_vespalib).
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
c
## Code Before: // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/executor.h> #include <vespa/vespalib/util/time.h> #include <vector> class FNET_Transport; namespace vespalib { class TimerTask; /** * ScheduledExecuto...
715b8f5c0fc246f4113ba5668ee8000e5746648a
spec/integration/repository_spec.rb
spec/integration/repository_spec.rb
require 'spec_helper' describe ROM::SQL::Repository do describe 'migration' do include_context 'database setup' context 'creating migrations inline' do subject(:repository) { rom.repositories[:default] } after do [:rabbits, :carrots].each do |name| repository.connection.drop_t...
require 'spec_helper' describe ROM::SQL::Repository do describe 'migration' do let(:conn) { Sequel.connect(DB_URI) } context 'creating migrations inline' do subject(:repository) { ROM.env.repositories[:default] } before do ROM.setup(:sql, conn) ROM.finalize end afte...
Use custom db setup for migration tests
Use custom db setup for migration tests
Ruby
mit
spscream/rom-sql,rom-rb/rom-sql,rom-rb/rom-sql,kwando/rom-sql,jamesmoriarty/rom-sql
ruby
## Code Before: require 'spec_helper' describe ROM::SQL::Repository do describe 'migration' do include_context 'database setup' context 'creating migrations inline' do subject(:repository) { rom.repositories[:default] } after do [:rabbits, :carrots].each do |name| repository.c...
ee9aae915d9fd0b48f8af3a8f78809ac0f224271
app/views/question/_answer_item.html.erb
app/views/question/_answer_item.html.erb
<dt> <%= @category.meta.wikiname %> </dt> <dd> <div class='tellmemore'><%= link_to "More info", "http://discover.amee.com/categories/#{@category.meta.wikiname}" %></div> <% if @pi -%> <div class='amount'>= <%= @pi.total_amount %>kg</div> <% end -%> <% if @item && @ivd -%> <div class='details'> I...
<dt> <%= @category.meta.wikiname %> </dt> <dd> <div class='tellmemore'><%= link_to "More info", "http://discover.amee.com/categories/#{@category.meta.wikiname}" %></div> <div class='amount'> <% if @pi -%> = <%= @pi.total_amount %>kg <% else -%> There wasn't enough information to do a calculati...
Add help text if calc failed
Add help text if calc failed
HTML+ERB
bsd-3-clause
OpenAMEE/askamee,OpenAMEE/askamee
html+erb
## Code Before: <dt> <%= @category.meta.wikiname %> </dt> <dd> <div class='tellmemore'><%= link_to "More info", "http://discover.amee.com/categories/#{@category.meta.wikiname}" %></div> <% if @pi -%> <div class='amount'>= <%= @pi.total_amount %>kg</div> <% end -%> <% if @item && @ivd -%> <div class='d...
467c4dcb2de8e3f0f6e295be50d93049e07ccbf1
src/server/contest/templates/admin/base_site.html
src/server/contest/templates/admin/base_site.html
{% extends "admin/base_site.html" %} {% block footer %} <div align="right">Powered by Crux.</div> {% endblock %}
{% extends "admin/base_site.html" %} {% load static %} {% block extrahead %} <link rel="shortcut icon" href="{% static "/images/crux.ico" %}"> <link rel="icon" href="{% static "/images/crux.ico" %}" type = "image/x-icon"> {% endblock %} {% block footer %} <div align="right">Powered by Crux.</div> {% endbl...
Add favicon to admin panel
ui: Add favicon to admin panel
HTML
mit
basu96/crux-judge,CRUx-BPHC/crux-judge,basu96/crux-judge,basu96/crux-judge,CRUx-BPHC/crux-judge,CRUx-BPHC/crux-judge,basu96/crux-judge,basu96/crux-judge
html
## Code Before: {% extends "admin/base_site.html" %} {% block footer %} <div align="right">Powered by Crux.</div> {% endblock %} ## Instruction: ui: Add favicon to admin panel ## Code After: {% extends "admin/base_site.html" %} {% load static %} {% block extrahead %} <link rel="shortcut icon" href="{% static...
3f39acba9619b7d415072dd907dfd39a9258bbe9
.travis.yml
.travis.yml
language: ruby cache: bundler rvm: - "2.1.1" - "2.1.2" notifications: irc: "chat.freenode.net#linkbot"
language: ruby cache: bundler rvm: - 2.1.5 - 2.1.1 - 2.1.2 notifications: slack: secure: I1vmcuvaVYyDOB+HJrjj6hgEMUq4c7V0PrQs5umTbqELdnlfsAfIwBxk8HYgoyrK18dt2ceLowYbvXYAHwc0AMWXzACfhsGRxE+kCcRfvzJ5sHoQSc5jfBhK3i1qIwh1+mSRLABIN51KdL3nihntX66C57DnqvMbmG/XkfKYNJA=
Remove IRC notifications; add Slack notifications
Remove IRC notifications; add Slack notifications
YAML
mit
markolson/linkbot
yaml
## Code Before: language: ruby cache: bundler rvm: - "2.1.1" - "2.1.2" notifications: irc: "chat.freenode.net#linkbot" ## Instruction: Remove IRC notifications; add Slack notifications ## Code After: language: ruby cache: bundler rvm: - 2.1.5 - 2.1.1 - 2.1.2 notifications: slack: secure: I1vmcuvaVYyDOB+HJr...
2ce107313c1549e4d247043592a3b24050faf89c
shell/aliases-darwin.sh
shell/aliases-darwin.sh
alias cdf='cd "$(printfd)"' # Switch to directory selected in finder alias puf='pushd "$(printfd)"' # Push finder directory to the stack alias hide="chflags hidden" # Hide a file in Finder alias show="chflags nohidden" # Show a file in Finder alias cask="brew cask" # Easily install applications via ho...
alias cdf='cd "$(printfd)"' # Switch to current Finder directory alias puf='pushd "$(printfd)"' # Push Finder directory to the stack alias ql="qlmanage -p >/dev/null 2>&1" # Open a file in quick look alias hide="chflags hidden" # Hide a file in Finder alias show="chflags nohidden" ...
Add aliases to macOS applications
feat: Add aliases to macOS applications
Shell
mit
dweidner/dotfiles,dweidner/dotfiles
shell
## Code Before: alias cdf='cd "$(printfd)"' # Switch to directory selected in finder alias puf='pushd "$(printfd)"' # Push finder directory to the stack alias hide="chflags hidden" # Hide a file in Finder alias show="chflags nohidden" # Show a file in Finder alias cask="brew cask" # Easily install app...
3ef9da421a5cf4a813385acb2106ec540d897c91
app/models/spree/product_export.rb
app/models/spree/product_export.rb
module Spree class ProductExport < ActiveRecord::Base has_attached_file :attachment validates_attachment :attachment, content_type: { content_type: "text/csv" } after_commit :run_export def finished? total_rows == processed_rows end def finish_percent if total_rows > 0 pr...
module Spree class ProductExport < ActiveRecord::Base has_attached_file :attachment validates_attachment :attachment, content_type: { content_type: "text/csv" } after_commit :run_export, on: :create def finished? total_rows == processed_rows end def finish_percent if total_rows >...
Fix commit issue for run process
Fix commit issue for run process
Ruby
bsd-3-clause
chubarovNick/spree_products_exports,chubarovNick/spree_products_exports,chubarovNick/spree_products_exports
ruby
## Code Before: module Spree class ProductExport < ActiveRecord::Base has_attached_file :attachment validates_attachment :attachment, content_type: { content_type: "text/csv" } after_commit :run_export def finished? total_rows == processed_rows end def finish_percent if total_row...
e453b1c250e262671cf58a1cec670373192e50f8
lib/simple_form/bank_account_number/countries.rb
lib/simple_form/bank_account_number/countries.rb
module SimpleForm module BankAccountNumber COUNTRIES = { "AU" => [ { label: "6 digit BSB number", format: /\d{6}/ }, { label: "9 digit account number", format: /\d{9}/ }, ], "CA" => [ { label: "5 digit branch number", format: /\d{5}/ }, { label: "3 digit instituti...
module SimpleForm module BankAccountNumber COUNTRIES = { "AU" => [ { label: "6 digit BSB number", format: /\d{6}/ }, { label: "6 to 9 digit account number", format: /\d{6,9}/ }, ], "CA" => [ { label: "8 or 9 digit transit number", format: /\d{8,9}/ }, { label: "7 ...
Update formats to include edge cases
Update formats to include edge cases
Ruby
mit
buckybox/simple_form-bank_account_number
ruby
## Code Before: module SimpleForm module BankAccountNumber COUNTRIES = { "AU" => [ { label: "6 digit BSB number", format: /\d{6}/ }, { label: "9 digit account number", format: /\d{9}/ }, ], "CA" => [ { label: "5 digit branch number", format: /\d{5}/ }, { label: "3...
9e89757f5d7e696df7724577f341270e7870fefc
archive/nerves_bootstrap/templates/new/README.md
archive/nerves_bootstrap/templates/new/README.md
To start your Nerves app: * Install dependencies with `mix deps.get` * Create firmware with `mix firmware` * Burn to an SD card with `mix firmware.burn` ## Learn more * Official website: http://www.nerves-project.org/ * Discussion Slack elixir-lang #nerves * Source: https://github.com/nerves-project/ner...
To start your Nerves app: * Install dependencies with `mix deps.get` * Create firmware with `mix firmware` * Burn to an SD card with `mix firmware.burn` ## Learn more * Official docs: https://hexdocs.pm/nerves/getting-started.html * Official website: http://www.nerves-project.org/ * Discussion Slack eli...
Add doc and slack channel invite URLs
Add doc and slack channel invite URLs
Markdown
apache-2.0
nerves-project/nerves,nerves-project/nerves
markdown
## Code Before: To start your Nerves app: * Install dependencies with `mix deps.get` * Create firmware with `mix firmware` * Burn to an SD card with `mix firmware.burn` ## Learn more * Official website: http://www.nerves-project.org/ * Discussion Slack elixir-lang #nerves * Source: https://github.com/ne...
01dd4901532df4f3da51501d4f223c873dd49dd8
ideascube/tests/test_settings.py
ideascube/tests/test_settings.py
import glob import os import importlib import pytest @pytest.fixture(params=glob.glob('ideascube/conf/*.py')) def setting_module(request): basename = os.path.basename(request.param) module, _ = os.path.splitext(basename) return '.conf.%s' % module def test_setting_file(setting_module): from ideasc...
import glob import os import importlib import pytest @pytest.fixture(params=sorted([ f for f in glob.glob('ideascube/conf/*.py') if not f.endswith('/__init__.py') ])) def setting_module(request): basename = os.path.basename(request.param) module, _ = os.path.splitext(basename) return '.conf.%s' ...
Improve the settings files testing fixture
tests: Improve the settings files testing fixture Let's order these files, as it makes it nicer in the pytest output. In addition, we can filter out the __init__.py file, since it is completely empty.
Python
agpl-3.0
ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube
python
## Code Before: import glob import os import importlib import pytest @pytest.fixture(params=glob.glob('ideascube/conf/*.py')) def setting_module(request): basename = os.path.basename(request.param) module, _ = os.path.splitext(basename) return '.conf.%s' % module def test_setting_file(setting_module):...
c35756410c3372249272175b14c57f26d588c344
client/views/home/residents/residents.html
client/views/home/residents/residents.html
<template name="homeResidents"> <div class="list-group"> {{# each residents }} <a href="/resident/{{ _id }}" title="{{ name }}" class="list-group-item">{{ firstName }} {{ lastInitial }}</a> {{/ each }} </div> </template>
<template name="homeResidents"> <div class="list-group"> {{# each residents }} {{> homeResident }} {{/ each }} </div> </template>
Refactor to single resident template
Refactor to single resident template
HTML
agpl-3.0
GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing
html
## Code Before: <template name="homeResidents"> <div class="list-group"> {{# each residents }} <a href="/resident/{{ _id }}" title="{{ name }}" class="list-group-item">{{ firstName }} {{ lastInitial }}</a> {{/ each }} </div> </template> ## Instruction: Refactor to single resident template ## Code Afte...
d4635706c1eb5ecdd13c0197706cebdc73ebe382
CMakeLists.txt
CMakeLists.txt
project(PhononGStreamer) cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) option(USE_INSTALL_PLUGIN "Use GStreamer codec installation API" TRUE) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") find_package(Phonon REQUIRED) add_definitions(${QT_DEFINITIONS}) include_directories(${PHONON_INCLUDES} ${QT_INCL...
project(PhononGStreamer) cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) option(USE_INSTALL_PLUGIN "Use GStreamer codec installation API" TRUE) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") find_package(Phonon REQUIRED) add_definitions(${QT_DEFINITIONS}) include_directories(${PHONON_INCLUDES} ${QT_INCL...
Add a "dist" target for easy tarball generation
Add a "dist" target for easy tarball generation
Text
lgpl-2.1
KDE/phonon-gstreamer,shadeslayer/phonon-gstreamer,shadeslayer/phonon-gstreamer,shadeslayer/phonon-gstreamer,KDE/phonon-gstreamer
text
## Code Before: project(PhononGStreamer) cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) option(USE_INSTALL_PLUGIN "Use GStreamer codec installation API" TRUE) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") find_package(Phonon REQUIRED) add_definitions(${QT_DEFINITIONS}) include_directories(${PHONON_INC...
f0543e103e57dab01ceaeaf2e06ae4d486747d56
webapp/webpack.config.js
webapp/webpack.config.js
var path = require('path'); var fs = require('fs'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: path.join(__dirname, 'src/frontend/app'), cache: true, output: { path: path.join(__dirname, '/public/'), filename: 'bundle.[hash].js' }, mo...
var path = require('path'); var fs = require('fs'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var webpack = require('webpack'); module.exports = { entry: path.join(__dirname, 'src/frontend/app'), cache: true, output: { path: path.join(__dirname, '/public/'), filename:...
Remove unused moment locales from webpack bundle
Remove unused moment locales from webpack bundle
JavaScript
bsd-3-clause
holderdeord/hdo-transcript-search,holderdeord/hdo-transcript-search,holderdeord/hdo-transcript-search,holderdeord/hdo-transcript-search
javascript
## Code Before: var path = require('path'); var fs = require('fs'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: path.join(__dirname, 'src/frontend/app'), cache: true, output: { path: path.join(__dirname, '/public/'), filename: 'bundle.[hash].js...
f090827e22f0d44531732222c1b11f53ecb45d82
docs/Docker.md
docs/Docker.md
This document describes how to build and run a docker image containing all the CRS tests with FTW. ## Building image ``` % docker build -t ftw-test . ``` ## Running the image Run through the entire CRS v3 test corpus with www.whatever.com as the target. *NOTE:* the `-i` is required to attach stdin to the docker c...
This document describes how to build and run a docker image containing all the CRS tests with FTW. ## Building image ``` % docker build -t ftw-test . ``` ## Running the image Run through the entire CRS v3 test corpus with <hostname> as the target. *NOTE:* the `-i` is required to attach stdin to the docker contain...
Generalize the host in the example
Generalize the host in the example
Markdown
apache-2.0
fastly/ftw,fastly/ftw
markdown
## Code Before: This document describes how to build and run a docker image containing all the CRS tests with FTW. ## Building image ``` % docker build -t ftw-test . ``` ## Running the image Run through the entire CRS v3 test corpus with www.whatever.com as the target. *NOTE:* the `-i` is required to attach stdin...
a8ca907618f60755db6028983df11cdc4c2c8ae1
.travis.yml
.travis.yml
before_install: gem install bundler rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.1.0 - ree gemfile: - Gemfile - gemfiles/rspec2.gemfile
before_script: - gem install bundler - bundle install rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.1.0 - ree gemfile: - Gemfile - gemfiles/rspec2.gemfile
Add bundle install to the before script for Travis.
Add bundle install to the before script for Travis.
YAML
mit
zackexplosion/yee-formatter,mattsears/nyan-cat-formatter,Brescia717/nyan-cat-formatter,StevenNunez/nyan-cat-formatter
yaml
## Code Before: before_install: gem install bundler rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.1.0 - ree gemfile: - Gemfile - gemfiles/rspec2.gemfile ## Instruction: Add bundle install to the before script for Travis. ## Code After: before_script: - gem install bundler - bundle install rvm: - 1.8.7 - 1....
0043c4b3961751195316ce56776298108ae45232
src/assets/styles/vendor/_str-replace.scss
src/assets/styles/vendor/_str-replace.scss
// https://css-tricks.com/snippets/sass/str-replace-function/ /// Replace `$search` with `$replace` in `$string` /// @author Hugo Giraudel /// @param {String} $string - Initial string /// @param {String} $search - Substring to replace /// @param {String} $replace ('') - New value /// @return {String} - Updated string ...
// https://css-tricks.com/snippets/sass/str-replace-function/ /* stylelint-disable */ /// Replace `$search` with `$replace` in `$string` /// @author Hugo Giraudel /// @param {String} $string - Initial string /// @param {String} $search - Substring to replace /// @param {String} $replace ('') - New value /// @return {...
Disable stylelint for vendor file
Disable stylelint for vendor file
SCSS
mit
JacobDB/new-site,revxx14/new-site,JacobDB/new-site,revxx14/new-site,JacobDB/new-site
scss
## Code Before: // https://css-tricks.com/snippets/sass/str-replace-function/ /// Replace `$search` with `$replace` in `$string` /// @author Hugo Giraudel /// @param {String} $string - Initial string /// @param {String} $search - Substring to replace /// @param {String} $replace ('') - New value /// @return {String} -...
47f70187e6c823d03633756ad1933ea1640bfb32
FBAnnotationClusteringSwift.podspec
FBAnnotationClusteringSwift.podspec
Pod::Spec.new do |s| s.name = "FBAnnotationClusteringSwift" s.version = "2.0" s.summary = "This is a Swift translation of FBAnnotationClustering. Aggregates map pins into a single numbered cluster." s.description = <<-DESC Swift translation of FB Annotation Clustering, which...
Pod::Spec.new do |s| s.name = "FBAnnotationClusteringSwift" s.version = "2.0" s.summary = "This is a Swift translation of FBAnnotationClustering. Aggregates map pins into a single numbered cluster." s.description = <<-DESC Swift translation of FB Annotation Clustering, which...
Update podspec to specify swift version
Update podspec to specify swift version
Ruby
mit
ribl/FBAnnotationClusteringSwift,ribl/FBAnnotationClusteringSwift
ruby
## Code Before: Pod::Spec.new do |s| s.name = "FBAnnotationClusteringSwift" s.version = "2.0" s.summary = "This is a Swift translation of FBAnnotationClustering. Aggregates map pins into a single numbered cluster." s.description = <<-DESC Swift translation of FB Annotation C...
1fac6d01b1da0f8126bc49539eb1b5b04126866f
.travis.yml
.travis.yml
language: python addons: postgresql: "9.3" before_script: - sudo apt-get update - sudo apt-get install -qq libgeos-dev libproj-dev postgis - createdb -E UTF8 django_location - psql -U postgres -d django_location -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" python: - "2.6" ...
language: python addons: postgresql: "9.3" before_script: - sudo apt-get update - sudo apt-get install -qq libgeos-dev libproj-dev postgis - createdb -E UTF8 django_location - psql -U postgres -d django_location -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" python: - "2.6" ...
Add 1.4.10 and 1.5.5 to tested environments (in addition to 1.6.1)
Add 1.4.10 and 1.5.5 to tested environments (in addition to 1.6.1)
YAML
mit
coddingtonbear/django-location
yaml
## Code Before: language: python addons: postgresql: "9.3" before_script: - sudo apt-get update - sudo apt-get install -qq libgeos-dev libproj-dev postgis - createdb -E UTF8 django_location - psql -U postgres -d django_location -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" python: ...
47acc43835b02d14b96936140aa0c5a8ab0c809c
app/views/devise/sessions/new.html.erb
app/views/devise/sessions/new.html.erb
<div class="devise_main"> <h2>Sign in to District Housing</h2> <div class="spacer"></div> <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> <div><%= f.label :email %><br /> <%= f.email_field :email, :autofocus => true, class: 'simplebox' %></div> <div><%= f.l...
<div class="devise_main"> <h2>Sign in to District Housing</h2> <div class="spacer"></div> <p> Psst, hey you! This app is under development. You can log in with a pre-filled account and poke around, or create a new account if you like. The test account login is as follows: </p> <p> Login: testuser@d...
Put the test account creds on the login page
Put the test account creds on the login page To make it obvious.
HTML+ERB
mit
uncompiled/districthousing,codefordc/districthousing,MetricMike/districthousing,codefordc/districthousing,meiao/districthousing,adelevie/districthousing,uncompiled/districthousing,lankyfrenchman/dchousing-apps,MetricMike/districthousing,jrunningen/districthousing,codefordc/districthousing,adelevie/districthousing,lanky...
html+erb
## Code Before: <div class="devise_main"> <h2>Sign in to District Housing</h2> <div class="spacer"></div> <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> <div><%= f.label :email %><br /> <%= f.email_field :email, :autofocus => true, class: 'simplebox' %></div> ...
fd5bfd9f71903895b3643264316ef5d9113ea75f
lib/probes/active_record.rb
lib/probes/active_record.rb
module Probes module ActiveRecord module Base module ClassMethods def find_by_sql_with_probes(sql) Dtrace::Probe::ActionController.find_by_sql_start do |p| p.fire(sql) end results = find_by_sql_without_probes(sql) Dtrace::Probe::ActiveRecord.find_...
module Probes module ActiveRecord module Base module ClassMethods def find_by_sql_with_probes(sql) Dtrace::Probe::ActiveRecord.find_by_sql_start do |p| p.fire(sql) end results = find_by_sql_without_probes(sql) Dtrace::Probe::ActiveRecord.find_by_s...
Correct call to ActiveRecord.find_by_sql probe, prompting exception on bad call to probes in ruby-dtrace.
Correct call to ActiveRecord.find_by_sql probe, prompting exception on bad call to probes in ruby-dtrace. git-svn-id: ee21a9573714ad23dc07274cc891719afe0bb9d1@358 0a37a38d-5523-0410-8951-9484fa28833c
Ruby
mit
chrisa/ruby-dtrace,chrisa/ruby-dtrace
ruby
## Code Before: module Probes module ActiveRecord module Base module ClassMethods def find_by_sql_with_probes(sql) Dtrace::Probe::ActionController.find_by_sql_start do |p| p.fire(sql) end results = find_by_sql_without_probes(sql) Dtrace::Probe::Ac...
4908ea70261bcaa53df750f40cf402b68524129d
README.md
README.md
勉強会用のスライド ==== ## リンク 以下は,各回のスライドへのリンクです. - reveal.js版 - [第1回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter01/chapter01.html) - [第2回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter02/chapter02.html) - [第3回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter03/chapter03.html) - Git...
勉強会用のスライド ==== ## リンク 以下は,各回のスライドへのリンクです. - reveal.js版 - [第1回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter01/chapter01.html) - [第2回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter02/chapter02.html) - [第3回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter03/chapter03.html) - [第...
Add a link to chapter04
Add a link to chapter04
Markdown
mit
koturn/LabStudyMeetingSlide2014,koturn/LabStudyMeetingSlide2014
markdown
## Code Before: 勉強会用のスライド ==== ## リンク 以下は,各回のスライドへのリンクです. - reveal.js版 - [第1回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter01/chapter01.html) - [第2回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter02/chapter02.html) - [第3回](http://koturn.github.io/LabStudyMeetingSlide2014/chapter03/chapte...
42cd990e5ac0f76ebd13a71486752ada917ef88e
extensions/build.xml
extensions/build.xml
<?xml version="1.0" encoding="UTF-8"?> <!--+ | | Google Refine Extensions Build File | +--> <project name="google-refine-extensions" default="build" basedir="."> <target name="build"> <echo message="Building extensions" /> <ant dir="sample-extension/" target="build" ...
<?xml version="1.0" encoding="UTF-8"?> <!--+ | | Google Refine Extensions Build File | +--> <project name="google-refine-extensions" default="build" basedir="."> <target name="build"> <echo message="Building extensions" /> <ant dir="sample/" target="build" /> <an...
Rename gdata and sample extensions to drop the -extension suffix
Rename gdata and sample extensions to drop the -extension suffix git-svn-id: 434d687192588585fc4b74a81d202f670dfb77fb@1539 7d457c2a-affb-35e4-300a-418c747d4874
XML
mit
DTL-FAIRData/FAIRifier,DTL-FAIRData/FAIRifier,DTL-FAIRData/FAIRifier,DTL-FAIRData/FAIRifier,DTL-FAIRData/FAIRifier,DTL-FAIRData/FAIRifier
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <!--+ | | Google Refine Extensions Build File | +--> <project name="google-refine-extensions" default="build" basedir="."> <target name="build"> <echo message="Building extensions" /> <ant dir="sample-extension/"...
da7018254fec7eb7e94967cf4b056256472368a5
lib/omniauth/strategies/joinme.rb
lib/omniauth/strategies/joinme.rb
require 'omniauth-oauth2' require 'omniauth/strategies/oauth2' module OmniAuth module Strategies class JoinMe < OmniAuth::Strategies::OAuth2 option :name, 'joinme' option :scope, 'user_info' option :client_options, { :site => 'https://api.join.me/v1', :authorize_url => 'https:/...
require 'omniauth-oauth2' require 'omniauth/strategies/oauth2' module OmniAuth module Strategies class JoinMe < OmniAuth::Strategies::OAuth2 option :name, 'joinme' option :scope, 'user_info' option :client_options, { :site => 'https://api.join.me/v1', :authorize_url => 'https:/...
Add code to skip callback_phase if we renewed an existing authorization token
Add code to skip callback_phase if we renewed an existing authorization token
Ruby
mit
docsend/omniauth-joinme
ruby
## Code Before: require 'omniauth-oauth2' require 'omniauth/strategies/oauth2' module OmniAuth module Strategies class JoinMe < OmniAuth::Strategies::OAuth2 option :name, 'joinme' option :scope, 'user_info' option :client_options, { :site => 'https://api.join.me/v1', :authorize...
4be5d87b67ad8b76e7ea2cd270bb85eb2417ab23
package.json
package.json
{ "name": "hallo", "description": "Simple rich text editor", "author": "Henri Bergius", "version": "0.0.1", "dependencies": {}, "devDependencies": { "async": ">=0.1.18", "docco-husky": ">=0.3.2", "uglify-js": ">=1.2.6" }, "docco_husky": { "output_dir": "docs", "project_name": "Hallo ...
{ "name": "hallo", "description": "Simple rich text editor", "author": "Henri Bergius <henri.bergius@iki.fi>", "homepage": "http://bergie.github.com/hallo/", "version": "0.0.1", "dependencies": {}, "devDependencies": { "async": ">=0.1.18", "docco-husky": ">=0.3.2", "uglify-js": ">=1.2.6" }, ...
Add author email and Hallo homepage
Add author email and Hallo homepage
JSON
mit
GerHobbelt/hallo,GerHobbelt/hallo,cesarmarinhorj/hallo,pazof/hallo,bergie/hallo,roryok/hallo-winrt,iacdingping/hallo,roryok/hallo-winrt,iacdingping/hallo,pazof/hallo,CodericSandbox/hallo,cesarmarinhorj/hallo,Ninir/hallo,bergie/hallo,CodericSandbox/hallo
json
## Code Before: { "name": "hallo", "description": "Simple rich text editor", "author": "Henri Bergius", "version": "0.0.1", "dependencies": {}, "devDependencies": { "async": ">=0.1.18", "docco-husky": ">=0.3.2", "uglify-js": ">=1.2.6" }, "docco_husky": { "output_dir": "docs", "projec...
4d58b11a27165897b041e4362064115ed1fa820a
docs/reference.rst
docs/reference.rst
============= API Reference ============= .. toctree:: :maxdepth: 1 action_values agents distributions experiments
============= API Reference ============= .. toctree:: :maxdepth: 1 action_values agents distributions experiments recurrent
Add recurrent interface to docs
Add recurrent interface to docs
reStructuredText
mit
toslunar/chainerrl,toslunar/chainerrl
restructuredtext
## Code Before: ============= API Reference ============= .. toctree:: :maxdepth: 1 action_values agents distributions experiments ## Instruction: Add recurrent interface to docs ## Code After: ============= API Reference ============= .. toctree:: :maxdepth: 1 action_values agents dist...
49b70972dd7454e9ed52823cb817d7c8078e3710
tasks/run-release-tests.sh
tasks/run-release-tests.sh
echo "${DIRECTOR_IP} ${DIRECTOR_NAME}" >> /etc/hosts export BOSH_CLIENT=$BOSH_USERNAME export BOSH_CLIENT_SECRET=$BOSH_PASSWORD export BOSH_DEPLOYMENT=$DEPLOYMENT_NAME export BOSH_ENVIRONMENT=$DIRECTOR_NAME if [ "$VARS_YAML" != "" ]; then export BOSH_CA_CERT=$(bosh2 int ${VARS_YAML} --path /director_ssl/ca) ...
echo "${DIRECTOR_IP} ${DIRECTOR_NAME}" >> /etc/hosts export BOSH_CLIENT=$BOSH_USERNAME export BOSH_CLIENT_SECRET=$BOSH_PASSWORD export BOSH_DEPLOYMENT=$DEPLOYMENT_NAME export BOSH_ENVIRONMENT=$DIRECTOR_NAME if [ "$VARS_YAML" != "" ]; then export BOSH_CA_CERT=$(bosh2 int ${VARS_YAML} --path /director_ssl/ca) ...
Fix file permissions for /tmp/private.key
Fix file permissions for /tmp/private.key
Shell
apache-2.0
cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci
shell
## Code Before: echo "${DIRECTOR_IP} ${DIRECTOR_NAME}" >> /etc/hosts export BOSH_CLIENT=$BOSH_USERNAME export BOSH_CLIENT_SECRET=$BOSH_PASSWORD export BOSH_DEPLOYMENT=$DEPLOYMENT_NAME export BOSH_ENVIRONMENT=$DIRECTOR_NAME if [ "$VARS_YAML" != "" ]; then export BOSH_CA_CERT=$(bosh2 int ${VARS_YAML} --path /direc...
e45d6439d3858e70fde8f1dad1d72d8c291e8979
build-single-file-version.py
build-single-file-version.py
import os import stat import zipfile import StringIO package_dir = 'xyppy' python_directive = '#!/usr/bin/env python' packed = StringIO.StringIO() packed_writer = zipfile.ZipFile(packed, 'w', zipfile.ZIP_DEFLATED) for fname in os.listdir(package_dir): fpath = os.path.join(package_dir, fname) if os.path.isfil...
import os import stat import zipfile try: from StringIO import StringIO except ImportError: from io import BytesIO as StringIO package_dir = 'xyppy' python_directive = '#!/usr/bin/env python' packed = StringIO() packed_writer = zipfile.ZipFile(packed, 'w', zipfile.ZIP_DEFLATED) for fname in os.listdir(packa...
Make the build script P2/3 compatible
Make the build script P2/3 compatible
Python
mit
theinternetftw/xyppy
python
## Code Before: import os import stat import zipfile import StringIO package_dir = 'xyppy' python_directive = '#!/usr/bin/env python' packed = StringIO.StringIO() packed_writer = zipfile.ZipFile(packed, 'w', zipfile.ZIP_DEFLATED) for fname in os.listdir(package_dir): fpath = os.path.join(package_dir, fname) ...
76e3c1c8e4d97a9cf1b59edb17ebe664cf735d47
packages/xk/xkcd.yaml
packages/xk/xkcd.yaml
homepage: http://github.com/sellweek/xkcd changelog-type: '' hash: 6d15997bdd3fd191d7dc79c590e59e975d4c54a3b04c91b4093b9e0f622ef241 test-bench-deps: {} maintainer: robert.selvek@gmail.com synopsis: Downloads the most recent xkcd comic. changelog: '' basic-deps: bytestring: ! '>=0.9' base: ! '>=4 && <5' filepath: ...
homepage: http://github.com/sellweek/xkcd changelog-type: '' hash: 558c3e1f981c92e2940ac3ea130c67268bf56d980762da6d5ab5ccc72b34c66b test-bench-deps: {} maintainer: robert.selvek@gmail.com synopsis: Downloads the most recent xkcd comic. changelog: '' basic-deps: bytestring: ! '>=0.9' base: <0 && >=4 && <5 filepath...
Update from Hackage at 2019-05-03T22:07:26Z
Update from Hackage at 2019-05-03T22:07:26Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/sellweek/xkcd changelog-type: '' hash: 6d15997bdd3fd191d7dc79c590e59e975d4c54a3b04c91b4093b9e0f622ef241 test-bench-deps: {} maintainer: robert.selvek@gmail.com synopsis: Downloads the most recent xkcd comic. changelog: '' basic-deps: bytestring: ! '>=0.9' base: ! '>=4 && ...
0f4fca40ff977d1c9eca84db6c48a1cbe3b28dd1
src/extension/features/budget/remove-zero-categories/index.js
src/extension/features/budget/remove-zero-categories/index.js
import { Feature } from 'toolkit/extension/features/feature'; import { isCurrentRouteBudgetPage } from 'toolkit/extension/utils/ynab'; export class RemoveZeroCategories extends Feature { shouldInvoke() { return isCurrentRouteBudgetPage(); } invoke() { let coverOverbudgetingCategories = $('.modal-budget-...
import { Feature } from 'toolkit/extension/features/feature'; import { isCurrentRouteBudgetPage } from 'toolkit/extension/utils/ynab'; export class RemoveZeroCategories extends Feature { shouldInvoke() { return isCurrentRouteBudgetPage(); } invoke() { let coverOverbudgetingCategories = $('.modal-budget-...
Fix issue hiding zero-balance categories in move money menu
issue-1809: Fix issue hiding zero-balance categories in move money menu
JavaScript
mit
toolkit-for-ynab/toolkit-for-ynab,falkencreative/toolkit-for-ynab,dbaldon/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,falkencreative/toolkit-for-ynab,dbaldon/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,dbaldon/toolkit-for-ynab,falkencreative/toolkit-for-ynab,falkencreative/toolkit-for-ynab,dbaldon/toolkit...
javascript
## Code Before: import { Feature } from 'toolkit/extension/features/feature'; import { isCurrentRouteBudgetPage } from 'toolkit/extension/utils/ynab'; export class RemoveZeroCategories extends Feature { shouldInvoke() { return isCurrentRouteBudgetPage(); } invoke() { let coverOverbudgetingCategories = $...
304b1dceed182b13f013084a0982de854772a1b6
README.md
README.md
MidiTumbler ======== This is the git repository, for the hardcore hacker types. If you just want to ***use*** MidiTumbler, download it from [my website](http://aetheria.co.uk/miditumbler.html). I've only tried to build this on Windows. I believe some of the code definitely won't work on Mac OS X, but I haven't given ...
MidiTumbler ======== This is the git repository, for the hardcore hacker types. If you just want to ***use*** MidiTumbler, download it from [my website](http://aetheria.co.uk/miditumbler.html). It's been built for Windows and OS X succesfully. A Linux port is unlikely. Setting up a build environment ================...
Update Readme.MD regarding Mac port
Update Readme.MD regarding Mac port
Markdown
mit
telyn/MIDITumbler,telyn/MIDITumbler
markdown
## Code Before: MidiTumbler ======== This is the git repository, for the hardcore hacker types. If you just want to ***use*** MidiTumbler, download it from [my website](http://aetheria.co.uk/miditumbler.html). I've only tried to build this on Windows. I believe some of the code definitely won't work on Mac OS X, but ...
3841a68e77e3c6d0e15c388f800ddd896d1039c1
content/interpretive-research.md
content/interpretive-research.md
--- date: 2021-11-21T13:44:45-04:00 description: "The dismal science" tags: ["research"] title: "Interpretive Research" --- # Interpretive research **Interpretive research** is [research](research.md) that attempts to derive theories from [data](data.md) that is too contextual, incomplete, or subjective for quantitat...
--- date: 2021-11-21T13:44:45-04:00 description: "Research that attempts to derive theories from data that is too contextual, incomplete, or subjective for quantitative analysis" tags: ["research"] title: "Interpretive Research" --- # Interpretive research **Interpretive research** is [research](research.md) that att...
Add description, cross-link to data-analysis
Add description, cross-link to data-analysis
Markdown
mit
jamestharpe/jamestharpe.com,jamestharpe/jamestharpe.com,jamestharpe/jamestharpe.com
markdown
## Code Before: --- date: 2021-11-21T13:44:45-04:00 description: "The dismal science" tags: ["research"] title: "Interpretive Research" --- # Interpretive research **Interpretive research** is [research](research.md) that attempts to derive theories from [data](data.md) that is too contextual, incomplete, or subjecti...
3eed777c78da1e69a16eb2303d2e89a9d22d34ce
views/index.erb
views/index.erb
<h2>Welcome to PizzaShop</h2> <div class="row"> <% @products.each do |p| %> <div class="col-md-3"> <div> <%= p.title %> </div> <div> <img src="<%= p.path_to_image %>" /> </div> <div> <%= p.description %> </div> <div> Size: <%= p.size %> cm </div> <div> Price: <%= p.p...
<h2>Welcome to PizzaShop</h2> <div class="row"> <% @products.each do |p| %> <div class="col-md-3"> <div> <%= p.title %> </div> <div> <img src="<%= p.path_to_image %>" /> </div> <div> <%= p.description %> </div> <div> Size: <%= p.size %> cm </div> <div> Price: <%= p.p...
Add button to each product
Add button to each product
HTML+ERB
mit
Disa0808/PizzaShop,Disa0808/PizzaShop,Disa0808/PizzaShop
html+erb
## Code Before: <h2>Welcome to PizzaShop</h2> <div class="row"> <% @products.each do |p| %> <div class="col-md-3"> <div> <%= p.title %> </div> <div> <img src="<%= p.path_to_image %>" /> </div> <div> <%= p.description %> </div> <div> Size: <%= p.size %> cm </div> <div> ...
208081800ab7e6217ec0f88e76c2dffd32187db1
whyp/shell.py
whyp/shell.py
import os from pysyte.types.paths import path def value(key): """A value from the shell environment, defaults to empty string >>> value('SHELL') is not None True """ try: return os.environ[key] except KeyError: return '' def paths(name=None): """A list of paths in the ...
import os from pysyte.types.paths import path def value(key): """A value from the shell environment, defaults to empty string >>> value('SHELL') is not None True """ try: return os.environ[key] except KeyError: return '' def paths(name=None): """A list of paths in the ...
Allow for missing directories in $PATH
Allow for missing directories in $PATH
Python
mit
jalanb/what,jalanb/what
python
## Code Before: import os from pysyte.types.paths import path def value(key): """A value from the shell environment, defaults to empty string >>> value('SHELL') is not None True """ try: return os.environ[key] except KeyError: return '' def paths(name=None): """A list ...
2a371593a13e9ffee81cde3fd56131471e2572ed
README.md
README.md
[![Linux build status](https://img.shields.io/travis/VanJanssen/safe-c/master.svg?label=Linux)](https://travis-ci.org/VanJanssen/safe-c) [![Windows Build Status](https://img.shields.io/appveyor/ci/ErwinJanssen/safe-c-53f81/master.svg?label=Windows)](https://ci.appveyor.com/project/ErwinJanssen/safe-c-53f81/branch/mast...
[![Linux build status](https://img.shields.io/travis/VanJanssen/elegan-c/master.svg?label=Linux)](https://travis-ci.org/VanJanssen/elegan-c) [![Windows Build Status](https://img.shields.io/appveyor/ci/ErwinJanssen/elegan-c/master.svg?label=Windows)](https://ci.appveyor.com/project/ErwinJanssen/elegan-c/branch/master) ...
Update shields.io badges in to reflect new name
Update shields.io badges in to reflect new name The new name also means that the Travis, Appveyor and Criterion badges have to be update with up to date links.
Markdown
mit
ErwinJanssen/elegan-c,VanJanssen/safe-c,VanJanssen/elegan-c
markdown
## Code Before: [![Linux build status](https://img.shields.io/travis/VanJanssen/safe-c/master.svg?label=Linux)](https://travis-ci.org/VanJanssen/safe-c) [![Windows Build Status](https://img.shields.io/appveyor/ci/ErwinJanssen/safe-c-53f81/master.svg?label=Windows)](https://ci.appveyor.com/project/ErwinJanssen/safe-c-5...
c4b81e242dd1d093c74406734493b5aeaf95c464
src/CMakeLists.txt
src/CMakeLists.txt
cmake_minimum_required(VERSION 2.8) project(homulib) if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # If not using Visual Studio C++ # Why use of stdlib produces so many warnings? # No, really, why? endif() set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINA...
cmake_minimum_required(VERSION 2.8) project(homulib) if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # If not using Visual Studio C++ # Why use of stdlib produces so many warnings? # No, really, why? endif() set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINA...
Make Qt Creator understand header location.
Make Qt Creator understand header location.
Text
mit
Penguinum/Homulib,Penguinum/Homulib
text
## Code Before: cmake_minimum_required(VERSION 2.8) project(homulib) if (NOT ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") # If not using Visual Studio C++ # Why use of stdlib produces so many warnings? # No, really, why? endif() set(EXECUTABLE_OUTPUT_PA...
feb46bed4745f0012923655c3b6b318b192528c9
cask.sh
cask.sh
brew doctor # Install some OS X apps using Cask echo "• Installing Homebrew Cask and some apps" brew install caskroom/cask/brew-cask for app in "github-desktop" "hopper-disassembler" "skype" "the-unarchiver" "transmission" "sketch" "coderunner" "slack" "0xed" "virtualbox" "dropdmg" "atom" "pacifist" "dash" "wwdc" "ma...
brew doctor # Install some OS X apps using Cask echo "• Installing Homebrew Cask and some apps" brew install caskroom/cask/brew-cask for app in "iterm2" "github-desktop" "hopper-disassembler" "skype" "the-unarchiver" "transmission" "sketch" "coderunner" "slack" "0xed" "virtualbox" "dropdmg" "atom" "pacifist" "dash" "...
Install stable version of iTerm2 instead of a nightly build
Install stable version of iTerm2 instead of a nightly build
Shell
mit
rodionovd/dotfiles,rodionovd/dotfiles
shell
## Code Before: brew doctor # Install some OS X apps using Cask echo "• Installing Homebrew Cask and some apps" brew install caskroom/cask/brew-cask for app in "github-desktop" "hopper-disassembler" "skype" "the-unarchiver" "transmission" "sketch" "coderunner" "slack" "0xed" "virtualbox" "dropdmg" "atom" "pacifist" "...
388f827315841cd9014cedb0350be5d34b15a2f1
main.go
main.go
package main import "fmt" import "os" import "bufio" import "strings" import "time" import "strconv" import "flag" func main() { dur := flag.Duration("d", time.Second, "duration unit") flag.Parse() scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { line := scanner.Text() // fmt.Println(line) // Prin...
package main import "fmt" import "os" import "bufio" import "strings" import "time" import "strconv" import "flag" func main() { dur := flag.Duration("d", time.Second, "duration unit") flag.Parse() scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { line := scanner.Text() // fmt.Println(line) // Prin...
Support floating point ns/op lines
Support floating point ns/op lines
Go
apache-2.0
advincze/benchfmt
go
## Code Before: package main import "fmt" import "os" import "bufio" import "strings" import "time" import "strconv" import "flag" func main() { dur := flag.Duration("d", time.Second, "duration unit") flag.Parse() scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { line := scanner.Text() // fmt.Print...
da314ab34cb13c1de66b96da2eab1484639e124b
fiona/compat.py
fiona/compat.py
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict
import collections from six.moves import UserDict try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict # Users can pass in objects that subclass a few different objects # More specifically, rasterio has a CRS() class that subclasses UserDict() # In Python 2 User...
Add a DICT_TYPES variable so we can do isinstance() checks against all the builtin dict-like objects
Add a DICT_TYPES variable so we can do isinstance() checks against all the builtin dict-like objects
Python
bsd-3-clause
Toblerity/Fiona,rbuffat/Fiona,rbuffat/Fiona,Toblerity/Fiona
python
## Code Before: try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict ## Instruction: Add a DICT_TYPES variable so we can do isinstance() checks against all the builtin dict-like objects ## Code After: import collections from six.moves import UserDict try: fr...
c9509613ec42f1bed30aabfea1ebf34c97c79493
articles/libraries/lock/v11/migration-angular.md
articles/libraries/lock/v11/migration-angular.md
--- section: libraries title: Migrating Angular applications to Lock 11 description: How to migrate Angular applications to Lock 11 toc: true --- # Migrating Angular Applications to Lock v11 Angular applications can use Lock.js directly without any kind of wrapper library. All Angular applications will be using Lock...
--- section: libraries title: Migrating Angular applications to Lock 11 description: How to migrate Angular applications to Lock 11 --- # Migrating Angular Applications to Lock v11 Angular applications can use Lock directly without any kind of wrapper library. All Angular applications will be using Lock 10, so you ca...
Replace Lock.js, remove toc, fix broken link
Replace Lock.js, remove toc, fix broken link
Markdown
mit
auth0/docs,jeffreylees/docs,auth0/docs,yvonnewilson/docs,jeffreylees/docs,auth0/docs,yvonnewilson/docs,yvonnewilson/docs,jeffreylees/docs
markdown
## Code Before: --- section: libraries title: Migrating Angular applications to Lock 11 description: How to migrate Angular applications to Lock 11 toc: true --- # Migrating Angular Applications to Lock v11 Angular applications can use Lock.js directly without any kind of wrapper library. All Angular applications wi...
93642740c78d633c8ffd34603794a0d3565d02dc
.travis/install.sh
.travis/install.sh
set -e set -x sudo add-apt-repository -y "ppa:lukasaoz/openssl101-ppa" sudo apt-get -y update sudo apt-get install -y --force-yes openssl libssl1.0.0 libssl-dev pip install . pip install -r test_requirements.txt
set -e set -x lsb_release -a sudo add-apt-repository -y "ppa:lukasaoz/openssl101-ppa" sudo apt-get -y update sudo apt-get install -y --force-yes openssl libssl1.0.0 pip install . pip install -r test_requirements.txt
Revert "Be explicit about libssl-dev."
Revert "Be explicit about libssl-dev." This reverts commit a9c2143d4f9611854381cd9f41c14d7a4a7d032d as part of a reversion of the cipher suites work.
Shell
mit
jdecuyper/hyper,lawnmowerlatte/hyper,masaori335/hyper,masaori335/hyper,fredthomsen/hyper,lawnmowerlatte/hyper,plucury/hyper,Lukasa/hyper,irvind/hyper,Lukasa/hyper,fredthomsen/hyper,irvind/hyper,plucury/hyper,jdecuyper/hyper
shell
## Code Before: set -e set -x sudo add-apt-repository -y "ppa:lukasaoz/openssl101-ppa" sudo apt-get -y update sudo apt-get install -y --force-yes openssl libssl1.0.0 libssl-dev pip install . pip install -r test_requirements.txt ## Instruction: Revert "Be explicit about libssl-dev." This reverts commit a9c2143d4f96...
743b678a2113f7f93d4c0cc27aa73745700a460a
bazaar/listings/filters.py
bazaar/listings/filters.py
from __future__ import unicode_literals import django_filters from .models import Listing class ListingFilter(django_filters.FilterSet): title = django_filters.CharFilter(lookup_type="icontains") class Meta: model = Listing fields = ['title', "publishings__store", "publishings__available_un...
from __future__ import unicode_literals from django import forms import django_filters from ..filters import BaseFilterSet from .models import Listing class LowStockListingFilter(django_filters.Filter): field_class = forms.BooleanField def filter(self, qs, value): if value: qs = qs.fil...
Add filter for low stock listings
Add filter for low stock listings
Python
bsd-2-clause
meghabhoj/NEWBAZAAR,meghabhoj/NEWBAZAAR,evonove/django-bazaar,meghabhoj/NEWBAZAAR,evonove/django-bazaar,evonove/django-bazaar
python
## Code Before: from __future__ import unicode_literals import django_filters from .models import Listing class ListingFilter(django_filters.FilterSet): title = django_filters.CharFilter(lookup_type="icontains") class Meta: model = Listing fields = ['title', "publishings__store", "publishin...
44467b6eb92d615f20539020fe0d04618a1a6d15
src/js/constants/MapConstants.js
src/js/constants/MapConstants.js
// Action type constants export const SWITCH_FACTION = 'SWITCH_FACTION'; export const TOGGLE_FILTER = 'TOGGLE_FILTER'; export const TOGGLE_GROUP = 'TOGGLE_GROUP'; // Component type constants export const FILTER_GROUP = 'FILTER_GROUP'; export const FACTION_GROUP = 'FACTION_GROUP';
// Action type constants export const SWITCH_FACTION = 'SWITCH_FACTION'; export const TOGGLE_FILTER = 'TOGGLE_FILTER'; export const TOGGLE_GROUP = 'TOGGLE_GROUP'; // Component type constants export const FILTER_GROUP = 'FILTER_GROUP'; export const FACTION_GROUP = 'FACTION_GROUP'; // Faction names export const RADIANT...
Add new constants to keep track of factions
Add new constants to keep track of factions
JavaScript
mit
kusera/sentrii,kusera/sentrii
javascript
## Code Before: // Action type constants export const SWITCH_FACTION = 'SWITCH_FACTION'; export const TOGGLE_FILTER = 'TOGGLE_FILTER'; export const TOGGLE_GROUP = 'TOGGLE_GROUP'; // Component type constants export const FILTER_GROUP = 'FILTER_GROUP'; export const FACTION_GROUP = 'FACTION_GROUP'; ## Instruction: Add n...
04d9a541245fb7ff00f35f120a384e54c860c378
README.md
README.md
vagrant_cloud ============= *Very* minimalistic ruby wrapper for the [Vagrant Cloud API](https://atlas.hashicorp.com/docs). Consisting of four basic classes for your *account*, *boxes*, *versions* and *providers*. Usage ----- The *vagrant_cloud* gem is hosted on [RubyGems](https://rubygems.org/gems/vagrant_cloud), s...
vagrant_cloud [![Build Status](https://travis-ci.org/cargomedia/vagrant_cloud.svg)](https://travis-ci.org/cargomedia/vagrant_cloud) ============= *Very* minimalistic ruby wrapper for the [Vagrant Cloud API](https://atlas.hashicorp.com/docs). Consisting of four basic classes for your *account*, *boxes*, *versions* and...
Add travis badge to readme
Add travis badge to readme
Markdown
mit
cargomedia/vagrant_cloud,njam/vagrant_cloud
markdown
## Code Before: vagrant_cloud ============= *Very* minimalistic ruby wrapper for the [Vagrant Cloud API](https://atlas.hashicorp.com/docs). Consisting of four basic classes for your *account*, *boxes*, *versions* and *providers*. Usage ----- The *vagrant_cloud* gem is hosted on [RubyGems](https://rubygems.org/gems/v...
c882f4f5722c639410fa1f710b12476e64404d2d
shinken/webui/plugins_skonf/elements/htdocs/css/hosts.css
shinken/webui/plugins_skonf/elements/htdocs/css/hosts.css
.object_host { display : inline; padding: 7px; border : 2px; } .object_host .host_name { width: 120px; background: white; } .object_host .display_name { width: 120px; background: white; } .object_host .address { width: 120px; background: white; } .object_host .realm { widt...
/** * Copyright (C) 2009-2013: * Gabes Jean, naparuba@gmail.com * Andreas Karfusehr, andreas@karfusehr.de * * This file is part of Shinken. * * Shinken is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundati...
Add License to css file / Skonf
Add License to css file / Skonf
CSS
agpl-3.0
claneys/shinken,KerkhoffTechnologies/shinken,mohierf/shinken,peeyush-tm/shinken,kaji-project/shinken,rledisez/shinken,staute/shinken_deb,ddurieux/alignak,dfranco/shinken,claneys/shinken,h4wkmoon/shinken,KerkhoffTechnologies/shinken,fpeyre/shinken,lets-software/shinken,rednach/krill,tal-nino/shinken,naparuba/shinken,Aim...
css
## Code Before: .object_host { display : inline; padding: 7px; border : 2px; } .object_host .host_name { width: 120px; background: white; } .object_host .display_name { width: 120px; background: white; } .object_host .address { width: 120px; background: white; } .object_host ....
bd263c953beb94678690deb4b0eb93cb87ea0dec
source/js/components/header.js
source/js/components/header.js
var React = require('react'); var Header = React.createClass({ render: function() { return ( <div className="header"> <input className="search" onChange={this.props.searchHandler} /> <button className="clear" onClick={this.props.clearHandler}>clear</button> ...
var React = require('react'); var Header = React.createClass({ render: function() { return ( <div className="header"> <input className="search" placeholder="Search" onChange={this.props.searchHandler} /> <button className="clear" onClick={this.props.clearHandler...
Add “Search” placeholder text to input field.
Add “Search” placeholder text to input field.
JavaScript
bsd-3-clause
louisbl/tv,geek/tv,louisbl/tv,geek/tv,lloydbenson/tv,lloydbenson/tv
javascript
## Code Before: var React = require('react'); var Header = React.createClass({ render: function() { return ( <div className="header"> <input className="search" onChange={this.props.searchHandler} /> <button className="clear" onClick={this.props.clearHandler}>cle...
ce77c0e2059e864600d70bcc0f5a06f2b0035a0f
lib/pagelime-rack.rb
lib/pagelime-rack.rb
require 'pagelime' require 'rack/pagelime'
require_relative 'pagelime' require_relative 'pagelime/s3_client' require_relative 'pagelime/xml_processor' require_relative 'rack/pagelime' Pagelime.configure do |config| config.client_class = Pagelime::S3Client config.processor_class = Pagelime::XmlProcessor end
Use configure block to setup defaults
Use configure block to setup defaults
Ruby
mit
eanticev/pagelime_rack
ruby
## Code Before: require 'pagelime' require 'rack/pagelime' ## Instruction: Use configure block to setup defaults ## Code After: require_relative 'pagelime' require_relative 'pagelime/s3_client' require_relative 'pagelime/xml_processor' require_relative 'rack/pagelime' Pagelime.configure do |config| config.client_c...
fbe446727b35680e747c74816995f6b7912fffeb
syslights_server.py
syslights_server.py
import sys import time import glob import serial import psutil CPU_INTERVAL = 0.5 CONNECT_TIMEOUT = 2 BAUD = 4800 def update_loop(conn): while True: load = psutil.cpu_percent(interval=CPU_INTERVAL) scaled_load = int(load * 10) message = str(scaled_load).encode('ascii') conn.write...
import sys import time import glob import serial import psutil CPU_INTERVAL = 0.5 CONNECT_TIMEOUT = 2 BAUD = 4800 def update_loop(conn): while True: load = psutil.cpu_percent(interval=CPU_INTERVAL) scaled_load = int(load * 10) message = str(scaled_load).encode('ascii') conn.write...
Fix error handling in server
Fix error handling in server
Python
mit
swarmer/syslights
python
## Code Before: import sys import time import glob import serial import psutil CPU_INTERVAL = 0.5 CONNECT_TIMEOUT = 2 BAUD = 4800 def update_loop(conn): while True: load = psutil.cpu_percent(interval=CPU_INTERVAL) scaled_load = int(load * 10) message = str(scaled_load).encode('ascii') ...
26b39b539a4fd863cad9f1732466fcdc331d3cd6
jets/c/xeb.c
jets/c/xeb.c
/* j/3/xeb.c ** */ #include "all.h" /* functions */ u3_noun u3qc_xeb(u3_atom a) { mpz_t a_mp; if ( __(u3a_is_dog(a)) ) { u3r_mp(a_mp, a); size_t log = mpz_sizeinbase(a_mp, 2); mpz_t b_mp; mpz_init_set_ui(b_mp, log); return u3i_mp(b_mp); } else { mpz_init_set_...
/* j/3/xeb.c ** */ #include "all.h" /* functions */ u3_noun u3qc_xeb(u3_atom a) { mpz_t a_mp; if ( __(u3a_is_dog(a)) ) { u3r_mp(a_mp, a); c3_d x = mpz_sizeinbase(a_mp, 2); mpz_t b_mp; mpz_init_set_ui(b_mp, x); return u3i_mp(b_mp); } else { mpz_init_set_ui(a_m...
Use urbit types instead of size_t
Use urbit types instead of size_t
C
mit
rsaarelm/urbit,dphiffer/urbit,Gunga/urbit,yebyen/urbit,jpt4/urbit,dphiffer/urbit,Gunga/urbit,galenwp/urbit,chc4/urbit,bvschwartz/urbit,daveloyall/urbit,rsaarelm/urbit,galenwp/urbit,jpt4/urbit,chc4/urbit,jpt4/urbit,rsaarelm/urbit,galenwp/urbit,dphiffer/urbit,dphiffer/urbit,jpt4/urbit,daveloyall/urbit,burtonsamograd/urbi...
c
## Code Before: /* j/3/xeb.c ** */ #include "all.h" /* functions */ u3_noun u3qc_xeb(u3_atom a) { mpz_t a_mp; if ( __(u3a_is_dog(a)) ) { u3r_mp(a_mp, a); size_t log = mpz_sizeinbase(a_mp, 2); mpz_t b_mp; mpz_init_set_ui(b_mp, log); return u3i_mp(b_mp); } else { ...
24283da9ef5b7307896ffb0c332fbbc92f0bc40e
lib/csp.js
lib/csp.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const config = require('./config'); const HEADERS = ['X-Content-Security-Policy', 'Content-Security-Policy']; con...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const config = require('./config'); const HEADERS = ['X-Content-Security-Policy', 'Content-Security-Policy']; con...
Allow the logout iframe to work
Allow the logout iframe to work
JavaScript
mpl-2.0
mozilla/persona-gmail-bridge,mozilla/persona-gmail-bridge
javascript
## Code Before: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const config = require('./config'); const HEADERS = ['X-Content-Security-Policy', 'Content-Securi...
a820f824fabc6c80b59b8d19ed94f8d6706c1dd0
NOTICE.txt
NOTICE.txt
popHealth Copyright 2010 Federal Health Architecture This product includes software developed at Project Laika (http://projectlaika.org/). This software contains code derived from the open source Laika software project, including various modifications by the MITRE Corporation http://www.mitre.org, the Certification ...
popHealth Copyright 2010 Federal Health Architecture This product includes software developed at Project Laika (http://projectlaika.org/). This software contains code derived from the open source Laika software project, including various modifications by the MITRE Corporation http://www.mitre.org, the Certification ...
Update attribution notice per release 4.0
Update attribution notice per release 4.0
Text
apache-2.0
alabama-medicaid-mu/popHealth,alabama-medicaid-mu/popHealth,OSEHRA/popHealth,lrasmus/popHealth,OSEHRA/popHealth,OSEHRA/popHealth,lrasmus/popHealth,alabama-medicaid-mu/popHealth,lrasmus/popHealth,alabama-medicaid-mu/popHealth,OSEHRA/popHealth,lrasmus/popHealth
text
## Code Before: popHealth Copyright 2010 Federal Health Architecture This product includes software developed at Project Laika (http://projectlaika.org/). This software contains code derived from the open source Laika software project, including various modifications by the MITRE Corporation http://www.mitre.org, th...
7eb4c509f317d4c03f297891776be76c07c5f600
README.md
README.md
The code for the samples is contained in individual folders on this repository. Follow the instructions at [Getting Started on Google Cloud Platform for Java](http://cloud.google.com/java/getting-started) or the README files in each folder for instructions on how to run locally and deploy. Managed VMs on Google Cloud...
The code for the samples is contained in individual folders on this repository. Follow the instructions at [Getting Started on Google Cloud Platform for Java](https://cloud.google.com/java/) or the README files in each folder for instructions on how to run locally and deploy. Managed VMs on Google Cloud Platform use ...
Fix broken link to Java getting started.
Fix broken link to Java getting started. The link https://cloud.google.com/java/getting-started/ still 404s. This changes the link to the main https://cloud.google.com/java/ landing page. Fixes https://github.com/GoogleCloudPlatform/getting-started-java/issues/10.
Markdown
apache-2.0
ludoch/getting-started-java,Stevers146/appengine-springboot-gradle,skjhavit/GCPJavaProjectTrial1,briandealwis/getting-started-java,GoogleCloudPlatform/getting-started-java,GoogleCloudPlatform/getting-started-java,Stevers146/appengine-springboot-gradle,briandealwis/getting-started-java,skjhavit/GCPJavaProjectTrial1,ludo...
markdown
## Code Before: The code for the samples is contained in individual folders on this repository. Follow the instructions at [Getting Started on Google Cloud Platform for Java](http://cloud.google.com/java/getting-started) or the README files in each folder for instructions on how to run locally and deploy. Managed VMs...
9f758bec33d4f1c64ec47904f9ed957f1587fbf2
app/assets/stylesheets/layout/_nav.scss
app/assets/stylesheets/layout/_nav.scss
.l-page-nav { overflow: hidden; @include media($navigation-full-width) { position: absolute; top: -4px; right: 4px; margin: 0; overflow: visible; } .nav__list { float: right; overflow: hidden; margin-bottom: 0; transition: max-height .8s ease-in-out; @include media($na...
.l-page-nav { overflow: hidden; @include media($navigation-full-width) { position: absolute; top: -4px; right: 4px; margin: 0; overflow: visible; } .nav__list { float: right; overflow: hidden; margin-bottom: 0; transition: max-height .8s ease-in-out; @include media($na...
Improve styling for dropdown navigation to prevent x-overflow
Improve styling for dropdown navigation to prevent x-overflow
SCSS
mit
guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance
scss
## Code Before: .l-page-nav { overflow: hidden; @include media($navigation-full-width) { position: absolute; top: -4px; right: 4px; margin: 0; overflow: visible; } .nav__list { float: right; overflow: hidden; margin-bottom: 0; transition: max-height .8s ease-in-out; @i...
7389bea7c3c144aefed99e25d551eff30aeda29d
resource/lua.go
resource/lua.go
package resource import ( "github.com/layeh/gopher-luar" "github.com/yuin/gopher-lua" ) // LuaRegisterBuiltin registers resource providers in Lua func LuaRegisterBuiltin(L *lua.LState) { for typ, provider := range providerRegistry { // Wrap resource providers, so that we can properly handle any // errors retur...
package resource import ( "github.com/layeh/gopher-luar" "github.com/yuin/gopher-lua" ) // LuaRegisterBuiltin registers resource providers in Lua func LuaRegisterBuiltin(L *lua.LState) { for typ, provider := range providerRegistry { // Wrap resource providers, so that we can properly handle any // errors retur...
Fix Lua resource wrapper function
resource: Fix Lua resource wrapper function
Go
mit
ranjithamca/gru
go
## Code Before: package resource import ( "github.com/layeh/gopher-luar" "github.com/yuin/gopher-lua" ) // LuaRegisterBuiltin registers resource providers in Lua func LuaRegisterBuiltin(L *lua.LState) { for typ, provider := range providerRegistry { // Wrap resource providers, so that we can properly handle any ...
90b17c87c26bcfceae79a6d8c0890035bbb57d16
.travis.yml
.travis.yml
language: php php: - 5.5.9 - 5.6 - 7.0 - 7.1 before_install: echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini install: composer install
language: php php: - 5.5.9 - 5.6 - 7.0 - 7.1 before_script: - pecl -q install mongo && echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` - composer install
Use pecl to install MongoDB
Use pecl to install MongoDB
YAML
mit
awurth/silex-user,awurth/silex-user
yaml
## Code Before: language: php php: - 5.5.9 - 5.6 - 7.0 - 7.1 before_install: echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini install: composer install ## Instruction: Use pecl to install MongoDB ## Code After: language: php php: - 5.5.9 - 5.6 - 7.0 - 7.1 befor...
b27bebfd56213eb5e119cf817e2824b3abb734c2
bin/start-server.sh
bin/start-server.sh
set -e cd /home/ubuntu/pageshot/server export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com export DB_USER=pageshot export DB_PASS=pageshot NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node exec $NODE ./run &>> /home/ubuntu/pageshot.logs
set -e cd /home/ubuntu/pageshot/server export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com export DB_USER=pageshot export DB_PASS=pageshot export DB_NAME=pageshot export NODE_ENV=production NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node exec $NODE ./run &>> /home/ubuntu/pageshot.logs
Tweak the environment for production
Tweak the environment for production
Shell
mpl-2.0
mozilla-services/screenshots,fzzzy/pageshot,mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/pageshot,fzzzy/pageshot,fzzzy/pageshot,mozilla-services/screenshots,fzzzy/pageshot,mozilla-services/pageshot,mozilla-services/screenshots
shell
## Code Before: set -e cd /home/ubuntu/pageshot/server export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com export DB_USER=pageshot export DB_PASS=pageshot NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node exec $NODE ./run &>> /home/ubuntu/pageshot.logs ## Instruction: Tweak the environment for prod...
aa127c5db2a3cab3c2046b53aac59d99516306bf
src/main/java/com/carpentersblocks/entity/item/EntityBase.java
src/main/java/com/carpentersblocks/entity/item/EntityBase.java
package com.carpentersblocks.entity.item; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import com.carpentersblocks.util.protection.IProtected; import com.carpentersblocks.util.protection.ProtectedObject; ...
package com.carpentersblocks.entity.item; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import com.carpentersblocks.util.protection.IProtected; import com.carpentersblocks.util.protection.ProtectedObject; ...
Fix broken tiles (dev bug only).
Fix broken tiles (dev bug only).
Java
lgpl-2.1
Mineshopper/carpentersblocks,Techern/carpentersblocks,burpingdog1/carpentersblocks
java
## Code Before: package com.carpentersblocks.entity.item; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import com.carpentersblocks.util.protection.IProtected; import com.carpentersblocks.util.protection.P...
fd7ec2e7505352ca5cfd20d60e42dab7a019a559
_config.yml
_config.yml
highlighter: pygments markdown: rdiscount rdiscount: extensions: [smart] permalink: /:title.html paginate: 5 gems: [jekyll-paginate] port: 3000 safe: true # edit here to achieve your personal greatness url: http://sadhu89.github.io/ baseurl: "" title: Carlos Rojas author: Carlos Rojas description: Personal blog and...
highlighter: pygments markdown: rdiscount rdiscount: extensions: [smart] permalink: /:title.html paginate: 5 gems: [jekyll-paginate] port: 3000 safe: true # edit here to achieve your personal greatness url: http://sadhu89.github.io/ baseurl: "" title: Carlos Rojas author: Carlos Rojas description: Personal blog and...
Update google analytics tracking code
Update google analytics tracking code
YAML
mit
sadhu89/sadhu89.github.io,sadhu89/sadhu89.github.io,sadhu89/sadhu89.github.io
yaml
## Code Before: highlighter: pygments markdown: rdiscount rdiscount: extensions: [smart] permalink: /:title.html paginate: 5 gems: [jekyll-paginate] port: 3000 safe: true # edit here to achieve your personal greatness url: http://sadhu89.github.io/ baseurl: "" title: Carlos Rojas author: Carlos Rojas description: P...
35fa52e231b78500c72f190b8ccfe0db6ff2003f
.goreleaser.yml
.goreleaser.yml
builds: - main: cmd/process-exporter/main.go binary: cmd/process-exporter flags: -tags netgo goos: - linux - darwin - freebsd - openbsd - netbsd - dragonfly goarch: - amd64 - 386 - arm - arm64 - ppc64 - ppc64le release: draft: f...
builds: - main: cmd/process-exporter/main.go binary: cmd/process-exporter flags: -tags netgo goos: - linux goarch: - amd64 - 386 - arm - arm64 - ppc64 - ppc64le release: draft: false prerelease: false dockers: - image: ncabatoff/process-exporter dock...
Remove builds for non-linux OSes, since we only support linux (oops).
Remove builds for non-linux OSes, since we only support linux (oops).
YAML
mit
ncabatoff/process-exporter,ncabatoff/process-exporter
yaml
## Code Before: builds: - main: cmd/process-exporter/main.go binary: cmd/process-exporter flags: -tags netgo goos: - linux - darwin - freebsd - openbsd - netbsd - dragonfly goarch: - amd64 - 386 - arm - arm64 - ppc64 - ppc64le rel...
ffb47027cd5415d13fa1f42c933996887fa06fd6
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig( { pkg: grunt.file.readJSON('package.json'), shell: { rebuild: { command: 'npm install --build-from-source' }, benchmarkNode: { command: 'node benchmark/node/benchmark.js' }, startServer: {...
module.exports = function(grunt) { grunt.initConfig( { pkg: grunt.file.readJSON('package.json'), shell: { rebuild: { command: 'npm install --build-from-source' }, benchmarkNode: { command: 'node benchmark/node/benchmark.js' }, startServer: {...
Reduce gemfire server logging to warning
Reduce gemfire server logging to warning
JavaScript
bsd-2-clause
gemfire/node-gemfire,mross-pivotal/node-gemfire,mross-pivotal/node-gemfire,mross-pivotal/node-gemfire,mross-pivotal/node-gemfire,gemfire/node-gemfire,gemfire/node-gemfire,mross-pivotal/node-gemfire,gemfire/node-gemfire,gemfire/node-gemfire,gemfire/node-gemfire,mross-pivotal/node-gemfire
javascript
## Code Before: module.exports = function(grunt) { grunt.initConfig( { pkg: grunt.file.readJSON('package.json'), shell: { rebuild: { command: 'npm install --build-from-source' }, benchmarkNode: { command: 'node benchmark/node/benchmark.js' }, ...
7a996b138622742b61f9c0eed1fa6b4d83bb85cc
backends.json
backends.json
[{"gamePort":7890,"gameHost":"localhost","gameType":"Acquire"}]
[{ "gamePort": 7890, "gameHost": "localhost", "gameType": "Acquire" }, { "gamePort": 9999, "gameHost": "localhost", "gameType": "Bautzen1945" }]
Add config for Bautzen backend
Add config for Bautzen backend
JSON
apache-2.0
abailly/hsgames,abailly/hsgames,abailly/hsgames
json
## Code Before: [{"gamePort":7890,"gameHost":"localhost","gameType":"Acquire"}] ## Instruction: Add config for Bautzen backend ## Code After: [{ "gamePort": 7890, "gameHost": "localhost", "gameType": "Acquire" }, { "gamePort": 9999, "gameHost": "localhost", "gameType": "Bautzen1945" }]
8292d0026ec5bf44e9ad1350b695c3ee4017e9dd
README.md
README.md
*GraphQL, but for your lights* ## Why? Because GraphQL is amazing and so is home automation and I'm not choosing between them you can't make me. ## Trying it out First off, you need lights. The special kind you can control with your smartphone and pretend you're telekinetic. I get mine from [Philips](http://www2.meet...
*GraphQL, but for your lights* ## Why? Because GraphQL is amazing and so is home automation and I'm not choosing between them you can't make me. ## Trying it out First off, you need lights. The special kind you can control with your smartphone and pretend you're telekinetic. I get mine from [Philips](http://www2.meet...
Add build step to setup instructions
Add build step to setup instructions
Markdown
mit
PsychoLlama/filament,PsychoLlama/filament
markdown
## Code Before: *GraphQL, but for your lights* ## Why? Because GraphQL is amazing and so is home automation and I'm not choosing between them you can't make me. ## Trying it out First off, you need lights. The special kind you can control with your smartphone and pretend you're telekinetic. I get mine from [Philips](...
1e4551bc7a99ccc39f0a491c2ce30b8aff6309e6
hawtio-plugin-examples/social-plugin/src/main/webapp/plugin/js/navbar.js
hawtio-plugin-examples/social-plugin/src/main/webapp/plugin/js/navbar.js
/** * @module SOCIAL */ var SOCIAL = (function (SOCIAL) { /** * @property breadcrumbs * @type {{content: string, title: string, isValid: isValid, href: string}[]} * * Data structure that defines the sub-level tabs for * our plugin, used by the navbar controller to show * or hide tab...
/** * @module SOCIAL */ var SOCIAL = (function (SOCIAL) { /** * @property breadcrumbs * @type {{content: string, title: string, isValid: isValid, href: string}[]} * * Data structure that defines the sub-level tabs for * our plugin, used by the navbar controller to show * or hide tab...
Use font awesome user and search iscons
Use font awesome user and search iscons
JavaScript
apache-2.0
voipme2/hawtio,telefunken/hawtio,skarsaune/hawtio,samkeeleyong/hawtio,rajdavies/hawtio,stalet/hawtio,Fatze/hawtio,padmaragl/hawtio,grgrzybek/hawtio,samkeeleyong/hawtio,rajdavies/hawtio,tadayosi/hawtio,samkeeleyong/hawtio,andytaylor/hawtio,uguy/hawtio,tadayosi/hawtio,jfbreault/hawtio,telefunken/hawtio,mposolda/hawtio,pa...
javascript
## Code Before: /** * @module SOCIAL */ var SOCIAL = (function (SOCIAL) { /** * @property breadcrumbs * @type {{content: string, title: string, isValid: isValid, href: string}[]} * * Data structure that defines the sub-level tabs for * our plugin, used by the navbar controller to show ...
7bd2fb444644f1ea125fba76562a8e8b22b71cad
.travis.yml
.travis.yml
language: node_js node_js: - "4.0.0" - "4.1.0" - "iojs" - "node"
language: node_js node_js: - "4.0.0" - "4.1.0" - "iojs" - "node" notifications: email: false
Disable e-mail notifications on Travis CI
Disable e-mail notifications on Travis CI
YAML
mit
fjorgemota/jimple
yaml
## Code Before: language: node_js node_js: - "4.0.0" - "4.1.0" - "iojs" - "node" ## Instruction: Disable e-mail notifications on Travis CI ## Code After: language: node_js node_js: - "4.0.0" - "4.1.0" - "iojs" - "node" notifications: email: false
26d650b888ae7c1e110ab2bcc2abd2fa49c16c80
draft-3/userguide-intro.md
draft-3/userguide-intro.md
Hello! This guide will introduce you to writing tool wrappers and workflows using the Common Workflow Language (CWL). This guide describes the current stable specification, draft 3. Note: This document is a work in progress. Not all features are covered, yet. <!--ToC--> # Introduction CWL is a way to describe c...
Hello! The Common Workflow Language user guide has moved to [http://www.commonwl.org/user_guide/](http://www.commonwl.org/user_guide/)
Remove draft-3 userguide and link to the new URL
Remove draft-3 userguide and link to the new URL
Markdown
apache-2.0
mr-c/common-workflow-language,hmenager/common-workflow-language,hmenager/common-workflow-language,dleehr/common-workflow-language,common-workflow-language/common-workflow-language,common-workflow-language/common-workflow-language,mr-c/common-workflow-language,dleehr/common-workflow-language,common-workflow-language/com...
markdown
## Code Before: Hello! This guide will introduce you to writing tool wrappers and workflows using the Common Workflow Language (CWL). This guide describes the current stable specification, draft 3. Note: This document is a work in progress. Not all features are covered, yet. <!--ToC--> # Introduction CWL is a w...
b11e547a8f3fa583860e2baf7c4fddfdf8f10dbb
prepare_deploy.sh
prepare_deploy.sh
set -e DEPLOY_DIR="odin" VER_MAJOR="1" VER_MINOR="0" VER_PATCH="0" if [ -d "$DEPLOY_DIR" ]; then rm -rf "$DEPLOY_DIR" fi # rm -rf ./pyodin/logs/* # mkdir "$DEPLOY_DIR" cp -aR client "$DEPLOY_DIR" cp -aR install "$DEPLOY_DIR" cp -aR pyodin "$DEPLOY_DIR" cp -aR server "$DEPLOY_DIR" DEPLOY_FILE_NAME="odin_${VER_...
set -e DEPLOY_DIR="odin" VER_MAJOR="1" VER_MINOR="0" VER_PATCH="0" if [ -d "$DEPLOY_DIR" ]; then rm -rf "$DEPLOY_DIR" fi # rm -rf ./pyodin/logs/* # mkdir "$DEPLOY_DIR" mkdir "$DEPLOY_DIR/app" cp -aR client/app "$DEPLOY_DIR/app" cp -aR install "$DEPLOY_DIR" cp -aR pyodin "$DEPLOY_DIR" cp -aR server "$DEPLOY_DIR...
Change the client part deploy
Change the client part deploy
Shell
mit
vassilux/odin,vassilux/odin,vassilux/odin,vassilux/odin
shell
## Code Before: set -e DEPLOY_DIR="odin" VER_MAJOR="1" VER_MINOR="0" VER_PATCH="0" if [ -d "$DEPLOY_DIR" ]; then rm -rf "$DEPLOY_DIR" fi # rm -rf ./pyodin/logs/* # mkdir "$DEPLOY_DIR" cp -aR client "$DEPLOY_DIR" cp -aR install "$DEPLOY_DIR" cp -aR pyodin "$DEPLOY_DIR" cp -aR server "$DEPLOY_DIR" DEPLOY_FILE_N...
954a83d61f8166f9048c350076177b4036a8d923
tests/phpunit/Unit/Rule/UnorderedListTest.php
tests/phpunit/Unit/Rule/UnorderedListTest.php
<?php # -*- coding: utf-8 -*- namespace Bueltge\Marksimple\Tests\Unit\Rule; use Bueltge\Marksimple\Rule; use Bueltge\Marksimple\Rule\ElementRuleInterface; use Bueltge\Marksimple\Tests\Unit\AbstractRuleTestCase; class UnorderedListTest extends AbstractRuleTestCase { public function returnRule(): ElementRuleInter...
<?php # -*- coding: utf-8 -*- namespace Bueltge\Marksimple\Tests\Unit\Rule; use Bueltge\Marksimple\Rule; use Bueltge\Marksimple\Rule\ElementRuleInterface; use Bueltge\Marksimple\Tests\Unit\AbstractRuleTestCase; class UnorderedListTest extends AbstractRuleTestCase { public function returnRule(): ElementRuleInter...
Fix ul list test; needs clean up for lists
Fix ul list test; needs clean up for lists
PHP
mit
bueltge/marksimple,bueltge/marksimple
php
## Code Before: <?php # -*- coding: utf-8 -*- namespace Bueltge\Marksimple\Tests\Unit\Rule; use Bueltge\Marksimple\Rule; use Bueltge\Marksimple\Rule\ElementRuleInterface; use Bueltge\Marksimple\Tests\Unit\AbstractRuleTestCase; class UnorderedListTest extends AbstractRuleTestCase { public function returnRule(): ...
ea8b3f42dd2cf21aadf333ba9262a864a0fc5267
autocloud/web/templates/job_output.html
autocloud/web/templates/job_output.html
{% extends "master.html" %} {% block body %} <div class="container"> <p>Output for task: {{ job.taskid }}</p> <pre>{{ job.output }}</pre> <div> {% endblock %}
{% extends "master.html" %} {% block body %} <a class="pull-right" href="{{ url_for('job_details') }}">Go to job details</a> <div class="container"> <p>Output for task: {{ job.taskid }}</p> <pre>{{ job.output }}</pre> </div> {% endblock %}
Add job details link to output page
Add job details link to output page
HTML
agpl-3.0
kushaldas/autocloud,kushaldas/autocloud,maxamillion/autocloud,kushaldas/autocloud,kushaldas/autocloud,maxamillion/autocloud,maxamillion/autocloud,maxamillion/autocloud
html
## Code Before: {% extends "master.html" %} {% block body %} <div class="container"> <p>Output for task: {{ job.taskid }}</p> <pre>{{ job.output }}</pre> <div> {% endblock %} ## Instruction: Add job details link to output page ## Code After: {% extends "master.html" %} {% block body %} <a class="pull-right" hre...
9c41acc9dee4c6ef78da23025d8e310feafdf4a9
lib/radiant-radiant_validators-extension.rb
lib/radiant-radiant_validators-extension.rb
module RadiantRadiantValidatorsExtension VERSION = "1.1.1" SUMMARY = "Radiant Validators for Radiant CMS" DESCRIPTION = "Makes Radiant better by adding radiant_validators!" URL = "http://github.com/JediFreeman/Radiant-Validators-Extension" AUTHORS = ["Ben Evans"] EMAIL = ["jedifree...
module RadiantRadiantValidatorsExtension VERSION = "1.1.1" SUMMARY = "Radiant Validators for Radiant CMS" DESCRIPTION = "Extension to allow overriding of built-in validators in Radiant" URL = "http://github.com/JediFreeman/Radiant-Validators-Extension" AUTHORS = ["Ben Evans"] EMAIL ...
Fix description that shows up in Radiant Admin
Fix description that shows up in Radiant Admin
Ruby
mit
JediFreeman/Radiant-Validators-Extension
ruby
## Code Before: module RadiantRadiantValidatorsExtension VERSION = "1.1.1" SUMMARY = "Radiant Validators for Radiant CMS" DESCRIPTION = "Makes Radiant better by adding radiant_validators!" URL = "http://github.com/JediFreeman/Radiant-Validators-Extension" AUTHORS = ["Ben Evans"] EMAIL ...
10dcb1d956b1584d64aa53efc63b834aed7d702c
app/views/icons/show.haml
app/views/icons/show.haml
= icon_tag @icon %br Keyword: = @icon.keyword - if @icon.credit %br Credit: = @icon.credit - if @icon.user_id == current_user.try(:id) %br = link_to "Make avatar", avatar_icon_path(@icon), method: :post %br = link_to "Edit icon", edit_icon_path(@icon) %br = link_to "Delete icon", icon_path(@icon), met...
= icon_tag @icon %br Keyword: = @icon.keyword - if @icon.credit %br Credit: = @icon.credit - if @icon.user_id == current_user.try(:id) %br = link_to "Make avatar", avatar_icon_path(@icon), method: :post %br = link_to "Edit icon", edit_icon_path(@icon) %br = link_to "Delete icon", icon_path(@icon), met...
Add galleries to icon view page
Add galleries to icon view page
Haml
mit
Marri/glowfic,Marri/glowfic,Marri/glowfic,Marri/glowfic
haml
## Code Before: = icon_tag @icon %br Keyword: = @icon.keyword - if @icon.credit %br Credit: = @icon.credit - if @icon.user_id == current_user.try(:id) %br = link_to "Make avatar", avatar_icon_path(@icon), method: :post %br = link_to "Edit icon", edit_icon_path(@icon) %br = link_to "Delete icon", icon_...
bcd4f5c0b79851a91d09ed548394202015da915f
package.json
package.json
{ "name": "Xigen-EasyProjects-Timer", "main": "index.html", "version" : "1.0.0", "window": { "toolbar": false, "title": "Xigen Timer", "width": 900, "height": 445, "max_width": 900, "max_height": 445, "min_width": 900, "min_height": 445, "frame" : false }, "devDependencie...
{ "name": "Xigen-EasyProjects-Timer", "main": "index.html", "author" : "Matt Malone <Matt@xigen.co.uk>", "version" : "1.0.0", "description" : "A timer for the EasyProjects.NET project management system", "contributors": [ { "name": "Ben McCarthy", "email": "ben@xigen.co.uk" } ], "r...
Update Package.json with more details.
Update Package.json with more details.
JSON
mit
XigenBen/Xigen-Timer
json
## Code Before: { "name": "Xigen-EasyProjects-Timer", "main": "index.html", "version" : "1.0.0", "window": { "toolbar": false, "title": "Xigen Timer", "width": 900, "height": 445, "max_width": 900, "max_height": 445, "min_width": 900, "min_height": 445, "frame" : false }, ...
16362ad8af981a18f06bdc4c999dc2c4ae2c796a
src/GeneaLabs/Phpgmaps/PhpgmapsServiceProvider.php
src/GeneaLabs/Phpgmaps/PhpgmapsServiceProvider.php
<?php namespace GeneaLabs\Phpgmaps; use GeneaLabs\Phpgmaps\Facades\PhpgmapsFacade; use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider; class PhpgmapsServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ ...
<?php namespace GeneaLabs\Phpgmaps; use GeneaLabs\Phpgmaps\Facades\PhpgmapsFacade; use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider; class PhpgmapsServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ ...
Set schema (http or https) config setting
Set schema (http or https) config setting
PHP
mit
GeneaLabs/Phpgmaps
php
## Code Before: <?php namespace GeneaLabs\Phpgmaps; use GeneaLabs\Phpgmaps\Facades\PhpgmapsFacade; use Illuminate\Foundation\AliasLoader; use Illuminate\Support\ServiceProvider; class PhpgmapsServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var...
2fa3fca750fde8a0579177847e936ed88b682057
README.md
README.md
[![Travis Badge](https://img.shields.io/travis/funcool/buddy-core.svg?style=flat)](https://travis-ci.org/funcool/buddy-core "Travis Badge") [![Dependencies Status](http://jarkeeper.com/funcool/buddy-core/status.svg)](http://jarkeeper.com/funcool/buddy-core) *buddy-core* module is dedicated to provide a Clojure friend...
[![Travis Badge](https://img.shields.io/travis/funcool/buddy-core.svg?style=flat)](https://travis-ci.org/funcool/buddy-core "Travis Badge") [![Dependencies Status](http://jarkeeper.com/funcool/buddy-core/status.svg)](http://jarkeeper.com/funcool/buddy-core) *buddy-core* module is dedicated to provide a Clojure friend...
Update readme with api docs link.
Update readme with api docs link.
Markdown
apache-2.0
funcool/buddy-core,funcool/buddy-core
markdown
## Code Before: [![Travis Badge](https://img.shields.io/travis/funcool/buddy-core.svg?style=flat)](https://travis-ci.org/funcool/buddy-core "Travis Badge") [![Dependencies Status](http://jarkeeper.com/funcool/buddy-core/status.svg)](http://jarkeeper.com/funcool/buddy-core) *buddy-core* module is dedicated to provide ...
0d1f9406b88afc0a7bd7e13dd6ff8edf537d9ff2
.travis.yml
.travis.yml
language: cpp compiler: - gcc - clang branches: only: - master before_install: # Update submodules before install - git submodule update --init --recursive before_script: - sudo apt-get update -qq - sudo apt-get install -qq libssl-dev script: - make clean all - sudo make install - cd build ...
language: cpp compiler: - gcc - clang branches: only: - master before_install: # Update submodules before install - git submodule update --init --recursive before_script: - sudo apt-get update -qq - sudo apt-get install -qq libssl-dev script: - make clean all - sudo make install - cd build ...
Make Travis export LD_LIBRARY_PATH before testing on Linux.
Make Travis export LD_LIBRARY_PATH before testing on Linux.
YAML
bsd-3-clause
jweyrich/sslpkix,jweyrich/sslpkix
yaml
## Code Before: language: cpp compiler: - gcc - clang branches: only: - master before_install: # Update submodules before install - git submodule update --init --recursive before_script: - sudo apt-get update -qq - sudo apt-get install -qq libssl-dev script: - make clean all - sudo make instal...
79caaf5112f98d6c4b81d968995b501d5ec25520
Library/Homebrew/tap_migrations.rb
Library/Homebrew/tap_migrations.rb
TAP_MIGRATIONS = { 'octave' => 'homebrew/science', 'opencv' => 'homebrew/science', 'grads' => 'homebrew/binary', 'denyhosts' => 'homebrew/boneyard', 'ipopt' => 'homebrew/science', 'qfits' => 'homebrew/boneyard', 'blackbox' => 'homebrew/boneyard', 'libgtextutils' => 'homebrew/science', 'syslog-ng' => '...
TAP_MIGRATIONS = { 'octave' => 'homebrew/science', 'opencv' => 'homebrew/science', 'grads' => 'homebrew/binary', 'denyhosts' => 'homebrew/boneyard', 'ipopt' => 'homebrew/science', 'qfits' => 'homebrew/boneyard', 'blackbox' => 'homebrew/boneyard', 'libgtextutils' => 'homebrew/science', 'syslog-ng' => '...
Move wkhtmltopdf to the boneyard
Move wkhtmltopdf to the boneyard Closes Homebrew/homebrew#26813.
Ruby
bsd-2-clause
muellermartin/dist,reitermarkus/brew,EricFromCanada/brew,AnastasiaSulyagina/brew,DomT4/brew,alyssais/brew,mahori/brew,claui/brew,reelsense/brew,nandub/brew,hanxue/linuxbrew,konqui/brew,konqui/brew,JCount/brew,sjackman/homebrew,hanxue/linuxbrew,tonyg/homebrew,sjackman/homebrew,rwhogg/brew,staticfloat/brew,muellermartin/...
ruby
## Code Before: TAP_MIGRATIONS = { 'octave' => 'homebrew/science', 'opencv' => 'homebrew/science', 'grads' => 'homebrew/binary', 'denyhosts' => 'homebrew/boneyard', 'ipopt' => 'homebrew/science', 'qfits' => 'homebrew/boneyard', 'blackbox' => 'homebrew/boneyard', 'libgtextutils' => 'homebrew/science', ...
82c31bb6827b162fbee956d9552d4d3414de5c3b
composer.json
composer.json
{ "name": "fail-whale/fail-whale", "description": "A robust error handler and pretty printer for PHP", "authors": [ { "name": "Jesse Schalken", "email": "me@jesseschalken.com" } ], "require": { "phpunit/phpunit": "3.7.*" }, "autoload": { ...
{ "name": "fail-whale/fail-whale", "description": "A robust error handler and pretty printer for PHP", "minimum-stability": "stable", "license": "MIT", "authors": [ { "name": "Jesse Schalken", "email": "me@jesseschalken.com" } ], "require-dev": { ...
Update comopser.json with license and minimium-stability
Update comopser.json with license and minimium-stability
JSON
mit
jesseschalken/fail-whale,jesseschalken/fail-whale
json
## Code Before: { "name": "fail-whale/fail-whale", "description": "A robust error handler and pretty printer for PHP", "authors": [ { "name": "Jesse Schalken", "email": "me@jesseschalken.com" } ], "require": { "phpunit/phpunit": "3.7.*" }, "aut...
6983e30713a77476ae3a0419ff955bce988c1229
js/main.js
js/main.js
/* -------------------------------------------------------------------------- Initialize --------------------------------------------------------------------------- */ $(document).ready(function() { /* Syntax Highlighter --------------------------------------------------------------------------- */ S...
/* -------------------------------------------------------------------------- Initialize --------------------------------------------------------------------------- */ $(document).ready(function() { /* Syntax Highlighter --------------------------------------------------------------------------- */ SyntaxHigh...
Comment code to add class on click sidebar element
Comment code to add class on click sidebar element
JavaScript
mit
AitorRodriguez990/documentation-template,AitorRodriguez990/documentation-template
javascript
## Code Before: /* -------------------------------------------------------------------------- Initialize --------------------------------------------------------------------------- */ $(document).ready(function() { /* Syntax Highlighter ---------------------------------------------------------------------...
e53d56bb5164d985abd43aa3d71930fdeeaded44
schema/CodeError.schema.yaml
schema/CodeError.schema.yaml
title: CodeError '@id': stencila:CodeError extends: Entity role: secondary status: unstable category: code description: An error that occured when parsing, compiling or executing some Code. properties: errorType: '@id': stencila:errorType description: The type of error. type: string message: '@id': ...
title: CodeError '@id': stencila:CodeError extends: Entity role: tertiary status: unstable category: code description: An error that occurred when parsing, compiling or executing a Code node. properties: errorType: '@id': stencila:errorType description: The type of error e.g. "SyntaxError", "ZeroDivisionError...
Modify prop names; errorType comment
fix(CodeError): Modify prop names; errorType comment The property names `message` and `trace` have a higher chance of clashing with e.g. schema.org in the future. Also `errorMessage` is more consistent with `errorType`.
YAML
apache-2.0
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
yaml
## Code Before: title: CodeError '@id': stencila:CodeError extends: Entity role: secondary status: unstable category: code description: An error that occured when parsing, compiling or executing some Code. properties: errorType: '@id': stencila:errorType description: The type of error. type: string mess...
1431abf38074bd0de1e097a55f67f5b44b9c741a
Resources/config/routing.yml
Resources/config/routing.yml
canal_tp_meth_homepage: pattern: / defaults: { _controller: CanalTPMethBundle:Default:index } canal_tp_meth_menu: pattern: /navigation/{current_route} defaults: { _controller: CanalTPMethBundle:Default:navigation, current_route: null } canal_tp_meth_stop_point_list: pattern: /coverage/{coverage_...
canal_tp_meth_homepage: pattern: / defaults: { _controller: CanalTPMethBundle:Default:index } canal_tp_meth_menu: pattern: /navigation/{current_route} defaults: { _controller: CanalTPMethBundle:Default:navigation, current_route: null } canal_tp_meth_stop_point_list: pattern: /coverage/{coverage_...
Add option to expose routes to javascript
Add option to expose routes to javascript
YAML
agpl-3.0
CanalTP/MttBundle,CanalTP/MttBundle,dvdn/MttBundle,datanel/MttBundle,Tisseo/MttBundle,datanel/MttBundle,datanel/MttBundle,dvdn/MttBundle,Tisseo/MttBundle,dvdn/MttBundle,CanalTP/MttBundle,Tisseo/MttBundle
yaml
## Code Before: canal_tp_meth_homepage: pattern: / defaults: { _controller: CanalTPMethBundle:Default:index } canal_tp_meth_menu: pattern: /navigation/{current_route} defaults: { _controller: CanalTPMethBundle:Default:navigation, current_route: null } canal_tp_meth_stop_point_list: pattern: /cov...
c08d065c5397afd0509450925fed8e80798e7f19
_drafts/2016-11-30-vim-clojure.md
_drafts/2016-11-30-vim-clojure.md
--- title: A Clojure + Vim setup tags: [clojure, programming, vim, plugin] --- Those in Emacs land need not worry about excellent Lisp and REPL support. Here in Vim land, the ground is less certain. There have been a myriad of attempts to provide paredit-like editing and slime-like evaluating to the modular editors in...
--- title: A Clojure + Vim setup tags: [clojure, programming, vim, plugin] --- Those in Emacs land need not worry about excellent Lisp and REPL support. Here in Vim land, the ground is less certain. There have been a myriad of attempts to provide paredit-like editing and slime-like evaluating to the modular editors in...
Add another reference to quote
Add another reference to quote
Markdown
mit
jeaye/jeaye.github.io,jeaye/jeaye.github.io
markdown
## Code Before: --- title: A Clojure + Vim setup tags: [clojure, programming, vim, plugin] --- Those in Emacs land need not worry about excellent Lisp and REPL support. Here in Vim land, the ground is less certain. There have been a myriad of attempts to provide paredit-like editing and slime-like evaluating to the mo...
055bd0f5f9c711e28cc7c0bf1dc6c0bcc8b205f8
client/src/components/footer/index.js
client/src/components/footer/index.js
import BottomNavigation from '@material-ui/core/BottomNavigation'; import BottomNavigationAction from '@material-ui/core/BottomNavigationAction'; import React, { Component } from 'react'; import './index.css' import kitwareLogo from './Kitware_Full_Logo.png'; import strobeLogo from './strobe.png'; import berkeleyLogo...
import BottomNavigation from '@material-ui/core/BottomNavigation'; import BottomNavigationAction from '@material-ui/core/BottomNavigationAction'; import React, { Component } from 'react'; import './index.css' import uclaLogo from './ucla.png'; import kitwareLogo from './Kitware_Full_Logo.png'; import strobeLogo from ...
Add the UCLA icon back
Add the UCLA icon back
JavaScript
bsd-3-clause
OpenChemistry/materialsdatabank,OpenChemistry/materialsdatabank,OpenChemistry/materialsdatabank,OpenChemistry/materialsdatabank
javascript
## Code Before: import BottomNavigation from '@material-ui/core/BottomNavigation'; import BottomNavigationAction from '@material-ui/core/BottomNavigationAction'; import React, { Component } from 'react'; import './index.css' import kitwareLogo from './Kitware_Full_Logo.png'; import strobeLogo from './strobe.png'; imp...
aac5ea6d37d606ecb9a7378f183146eb80b0cba9
usr.bin/ftp/Makefile
usr.bin/ftp/Makefile
LUKEMFTP= ${.CURDIR}/../../contrib/lukemftp .PATH: ${LUKEMFTP}/src PROG= ftp SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \ util.c CFLAGS+=-I${.CURDIR} -I${LUKEMFTP} LDADD+= -ledit -ltermcap -lutil DPADD+= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL} LINKS= ${BINDIR}/ftp ${BINDIR}/pftp \ ${B...
LUKEMFTP= ${.CURDIR}/../../contrib/lukemftp .PATH: ${LUKEMFTP}/src PROG= ftp SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c progressbar.c \ ruserpass.c util.c CFLAGS+=-I${.CURDIR} -I${LUKEMFTP} LDADD+= -ledit -ltermcap -lutil DPADD+= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL} LINKS= ${BINDIR}/ftp ${BINDI...
Update for latest lukemftp import.
Update for latest lukemftp import.
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: LUKEMFTP= ${.CURDIR}/../../contrib/lukemftp .PATH: ${LUKEMFTP}/src PROG= ftp SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \ util.c CFLAGS+=-I${.CURDIR} -I${LUKEMFTP} LDADD+= -ledit -ltermcap -lutil DPADD+= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL} LINKS= ${BINDIR}/ftp ${BIN...
6a17d505ce4fbeb761e6dd1656027c8602ea93d3
lib/dataproviders/README.md
lib/dataproviders/README.md
ocUsageCharts Adapters ====================== DataProviders are responsible for the retrieving and storing of the data for that specific chart type Implement DataProviderInterface to actually add multiple charts.
ocUsageCharts DataProviders =========================== DataProviders are responsible for the retrieving and storing of the data for that specific chart type Implement DataProviderInterface to actually add multiple charts.
Rename from adapter to provider in readme
Rename from adapter to provider in readme
Markdown
mit
arnovr/ocusagecharts,arnovr/ocusagecharts,arnovr/ocusagecharts
markdown
## Code Before: ocUsageCharts Adapters ====================== DataProviders are responsible for the retrieving and storing of the data for that specific chart type Implement DataProviderInterface to actually add multiple charts. ## Instruction: Rename from adapter to provider in readme ## Code After: ocUsageCharts Dat...
0b6b90a91390551fffebacea55e9cccb4fa3d277
capmetrics_etl/cli.py
capmetrics_etl/cli.py
import click from . import etl @click.command() @click.option('--test', default=False) def run(test): if not test: etl.run_excel_etl() else: click.echo('Capmetrics test.') # Call run function when module deployed as script. This is approach is common # within the python community if __name__ ...
import click import configparser import json from . import etl def parse_capmetrics_configuration(config_parser): worksheet_names = json.loads(config_parser['capmetrics']['worksheet_names']) capmetrics_configuration = { 'timezone': 'America/Chicago', 'engine': config_parser['capmetrics']['e...
Add configuration parsing to CLI.
Add configuration parsing to CLI.
Python
mit
jga/capmetrics-etl,jga/capmetrics-etl
python
## Code Before: import click from . import etl @click.command() @click.option('--test', default=False) def run(test): if not test: etl.run_excel_etl() else: click.echo('Capmetrics test.') # Call run function when module deployed as script. This is approach is common # within the python commun...
e893682e6a4b60e080ecc20e66d1aee7e800385f
feed_healthcheck.rb
feed_healthcheck.rb
require 'typhoeus' require 'feedjira' require 'yaml' CONFIG = YAML.load_file('config.yml') feeds = [] one_year_ago = Time.now - (365*24*60*60) errors = {} hydra = Typhoeus::Hydra.new CONFIG['feeds'].each do |feed| request = Typhoeus::Request.new(feed, followlocation: true) request.on_complete do |response| if...
require 'typhoeus' require 'feedjira' require 'yaml' CONFIG = YAML.load_file('config.yml') feeds = [] one_year_ago = Time.now - (365*24*60*60) errors = {} hydra = Typhoeus::Hydra.new CONFIG['feeds'].each do |feed| request = Typhoeus::Request.new(feed, followlocation: true) request.on_complete do |response| if...
Update feed healthcheck script to hopefully work with Github Actions
Update feed healthcheck script to hopefully work with Github Actions
Ruby
mit
codatory/indyhackers.org-planet
ruby
## Code Before: require 'typhoeus' require 'feedjira' require 'yaml' CONFIG = YAML.load_file('config.yml') feeds = [] one_year_ago = Time.now - (365*24*60*60) errors = {} hydra = Typhoeus::Hydra.new CONFIG['feeds'].each do |feed| request = Typhoeus::Request.new(feed, followlocation: true) request.on_complete do |...
bd50ef20cf470e7d0c26bb1419e2f854f885a811
config/schedule.rb
config/schedule.rb
env 'PATH', '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' every :day, at: '9:00am' do runner 'Assignment.send_reminders!' end
env 'PATH', '/opt/ruby/bin:/usr/sbin:/usr/bin:/sbin:/bin' every :day, at: '9:00am' do runner 'Assignment.send_reminders!' end
Change the path to where ruby will be
Change the path to where ruby will be
Ruby
mit
umts/screaming-dinosaur,umts/garrulous-garbanzo,umts/screaming-dinosaur,umts/garrulous-garbanzo,umts/screaming-dinosaur,umts/garrulous-garbanzo
ruby
## Code Before: env 'PATH', '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' every :day, at: '9:00am' do runner 'Assignment.send_reminders!' end ## Instruction: Change the path to where ruby will be ## Code After: env 'PATH', '/opt/ruby/bin:/usr/sbin:/usr/bin:/sbin:/bin' every :day, at: '9:00am' do ...
e8fda18ae32095a99bc0f6b9ef52ac6280575e5b
index.html
index.html
--- layout: default title: Android Design Patterns --- {% for post in paginator.posts %} <article class="snippet"> <div class="side"> <div class="date-posted"> <span class="date-block">{{ post.date | date: "%b %d %Y" }}</span> </div> </div> <div class="body"> <header> ...
--- layout: default title: Android Design Patterns --- {% for post in paginator.posts %} <article class="snippet"> <div class="side"> <div class="date-posted"> <span class="date-block">{{ post.date | date: "%b %-d %Y" }}</span> </div> </div> <div class="body"> <header><h2 class=...
Remove trailing zeros from timestamp
Remove trailing zeros from timestamp
HTML
mit
alexjlockwood/alexjlockwood.github.io,alexjlockwood/alexjlockwood.github.io,alexjlockwood/AndroidDesignPatterns,alexjlockwood/alexjlockwood.github.io,alexjlockwood/AndroidDesignPatterns,alexjlockwood/AndroidDesignPatterns
html
## Code Before: --- layout: default title: Android Design Patterns --- {% for post in paginator.posts %} <article class="snippet"> <div class="side"> <div class="date-posted"> <span class="date-block">{{ post.date | date: "%b %d %Y" }}</span> </div> </div> <div class="body">...
14ef66d00f92e7df03871c98b6cadbdc5fb5d245
lib/tasks/organisations.rake
lib/tasks/organisations.rake
require 'organisation_importer' namespace :organisations do desc "Imports organisations from the data.gov.uk hierarchy" task :import => :environment do response = Net::HTTP.get_response("data.gov.uk","/api/action/group_tree?type=organization") json = JSON.parse(response.body) results = json['result'] ...
require 'organisation_importer' namespace :organisations do #work around that heroku schedule only allows up to daily task :weekly_import => :environment do if Time.now.monday? Rake::Task["organisations:import"].execute end end desc "Imports organisations from the data.gov.uk hierarchy" ...
Add rake task to be called by heroku scheduler
Add rake task to be called by heroku scheduler
Ruby
mit
theodi/ODMAT,theodi/ODMAT,theodi/ODMAT,theodi/pathway,theodi/pathway,theodi/pathway
ruby
## Code Before: require 'organisation_importer' namespace :organisations do desc "Imports organisations from the data.gov.uk hierarchy" task :import => :environment do response = Net::HTTP.get_response("data.gov.uk","/api/action/group_tree?type=organization") json = JSON.parse(response.body) results =...
5540e2125813f51b33f59c008bebfdf24d7e4c75
composer.json
composer.json
{ "name": "pdepend/pdepend", "description": "Official version of pdepend to be handled with Composer", "license": "BSD-3-Clause", "require": { "php": ">=5.3.7" }, "require": { "symfony/dependency-injection": ">=2.4", "symfony/filesystem": ">=2.4", "symfony/config"...
{ "name": "pdepend/pdepend", "description": "Official version of pdepend to be handled with Composer", "license": "BSD-3-Clause", "require": { "php": ">=5.3.7" }, "require": { "symfony/dependency-injection": "^2.3.0", "symfony/filesystem": "^2.3.0", "symfony/confi...
Allow to use any Symfony 2.x release equal or greater 2.3
Allow to use any Symfony 2.x release equal or greater 2.3
JSON
bsd-3-clause
pdepend/pdepend,pdepend/pdepend
json
## Code Before: { "name": "pdepend/pdepend", "description": "Official version of pdepend to be handled with Composer", "license": "BSD-3-Clause", "require": { "php": ">=5.3.7" }, "require": { "symfony/dependency-injection": ">=2.4", "symfony/filesystem": ">=2.4", ...
fd86da77fdc2ca916f6064dc24d6ef5f34c5bce6
video/README.md
video/README.md
Using Docker to use the latest FFMPEG https://hub.docker.com/r/jrottenberg/ffmpeg/ * Convert input video file (input.MTS) in the **current directory** into an MP4 * `docker run -v $PWD:/temp/ jrottenberg/ffmpeg -stats -i /temp/input.MTS /temp/output.MP4` * [Rotate MP4 video without re-encoding](https://stackoverfl...
[Using Docker to use the latest FFMPEG](https://hub.docker.com/r/jrottenberg/ffmpeg/) * Convert input video file (input.MTS) in the **current directory** into an MP4 * `docker run -v $PWD:/temp/ jrottenberg/ffmpeg -stats -i /temp/input.MTS /temp/output.MP4` * [Rotate MP4 video without re-encoding](https://stackove...
Document converting AVI to MP4
fix(Video): Document converting AVI to MP4
Markdown
mit
danactive/history,danactive/history
markdown
## Code Before: Using Docker to use the latest FFMPEG https://hub.docker.com/r/jrottenberg/ffmpeg/ * Convert input video file (input.MTS) in the **current directory** into an MP4 * `docker run -v $PWD:/temp/ jrottenberg/ffmpeg -stats -i /temp/input.MTS /temp/output.MP4` * [Rotate MP4 video without re-encoding](htt...
c6ce1f31e4e45e36995e45a16b5155fa6a119a55
spec/models/attachment_spec.rb
spec/models/attachment_spec.rb
require 'spec_helper' describe Attachment do it { should belong_to(:object) } it { should validate_presence_of(:file) } it "show the avaible codes" do Attachment.codes.should eq([['Brief-Template', 'Prawn::LetterDocument']]) end context "when new" do specify { should_not be_valid } its(:to_s)...
require 'spec_helper' describe Attachment do it { should belong_to(:object) } it { should validate_presence_of(:file) } context "when new" do specify { should_not be_valid } its(:to_s) { should == "" } end context "when file is nil" do before(:all) { subject.file = nil } its(:to_s) { sho...
Remove a test on an old test for the attribute code.
Remove a test on an old test for the attribute code.
Ruby
agpl-3.0
wtag/bookyt,silvermind/bookyt,huerlisi/bookyt,silvermind/bookyt,silvermind/bookyt,wtag/bookyt,hauledev/bookyt,gaapt/bookyt,xuewenfei/bookyt,silvermind/bookyt,hauledev/bookyt,xuewenfei/bookyt,huerlisi/bookyt,gaapt/bookyt,wtag/bookyt,hauledev/bookyt,huerlisi/bookyt,hauledev/bookyt,gaapt/bookyt,gaapt/bookyt,xuewenfei/book...
ruby
## Code Before: require 'spec_helper' describe Attachment do it { should belong_to(:object) } it { should validate_presence_of(:file) } it "show the avaible codes" do Attachment.codes.should eq([['Brief-Template', 'Prawn::LetterDocument']]) end context "when new" do specify { should_not be_valid }...
00751402578705896ca4bba6640d47f6ae3121b4
README.md
README.md
bemlinter [![Build Status](https://travis-ci.org/M6Web/bemlinter.svg?branch=master)](https://travis-ci.org/M6Web/bemlinter) ====== A tool belt to lint bem components: * [bemlinter](https://github.com/M6Web/bemlinter/blob/master/packages/bemlinter/README.md): A cli tool to lint bem component isolation in CSS / SCSS f...
bemlinter [![Build Status](https://travis-ci.org/M6Web/bemlinter.svg?branch=master)](https://travis-ci.org/M6Web/bemlinter) ====== A tool belt to lint bem components: * [bemlinter](https://github.com/M6Web/bemlinter/blob/master/packages/bemlinter/README.md): A cli tool to lint bem component isolation in CSS / SCSS f...
Add documentation to update jest snapshot for all packages
Add documentation to update jest snapshot for all packages
Markdown
mit
M6Web/bemlinter
markdown
## Code Before: bemlinter [![Build Status](https://travis-ci.org/M6Web/bemlinter.svg?branch=master)](https://travis-ci.org/M6Web/bemlinter) ====== A tool belt to lint bem components: * [bemlinter](https://github.com/M6Web/bemlinter/blob/master/packages/bemlinter/README.md): A cli tool to lint bem component isolation...
70a5c72d3f69c6b0962e74c7be6b83dff6da42cf
lib/ropian/meter/raritan.rb
lib/ropian/meter/raritan.rb
module Ropian module Meter class Raritan def inspect "#<#{self.class} #{@manager.host}@#{@manager.community}>" end def initialize(ip_addr, community, version = :SNMPv2c) @manager = SNMP::Manager.new(:Host => ip_addr, :Community => community, :Version => version) e...
module Ropian module Meter class Raritan UnitCurrent = SNMP::ObjectId.new("1.3.6.1.4.1.13742.4.1.4.2.1.3.1") OutletCurrent = SNMP::ObjectId.new("1.3.6.1.4.1.13742.4.1.2.2.1.4") def inspect "#<#{self.class} #{@manager.host}@#{@manager.community}>" end def initialize(ip_addr, ...
Add collection method for gathering all outlet details at once
Add collection method for gathering all outlet details at once
Ruby
mit
m247/ropian
ruby
## Code Before: module Ropian module Meter class Raritan def inspect "#<#{self.class} #{@manager.host}@#{@manager.community}>" end def initialize(ip_addr, community, version = :SNMPv2c) @manager = SNMP::Manager.new(:Host => ip_addr, :Community => community, :Version => ...
b344bdded07d4427f95c2ec2c691e1f95c6742a9
README.md
README.md
Create a static web site for your music using the metadata in your mp3 files.
Create a static web site for your music using the metadata in your mp3 files. Usage: copy all your mp3 files into the songfiles directory, then run the script. Look for an autobandsite-build directory in the parent directory. Copy these files to your web site.
Put some info in the realm.
Put some info in the realm.
Markdown
mit
chrooke/autobandsite
markdown
## Code Before: Create a static web site for your music using the metadata in your mp3 files. ## Instruction: Put some info in the realm. ## Code After: Create a static web site for your music using the metadata in your mp3 files. Usage: copy all your mp3 files into the songfiles directory, then run the script. Look...
d528147c03178a2832fe3fa8a3d0621748b28e07
zsh/bindkeys.zsh
zsh/bindkeys.zsh
bindkey -e # Autoload some shit autoload -Uz up-line-or-beginning-search autoload -Uz down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search # Search in history with up and down arrows bindkey '\eOA' up-line-or-beginning-search bindkey '\e[A' up-line-or-beginning-search ...
bindkey -e # Autoload some shit autoload -Uz up-line-or-beginning-search autoload -Uz down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search # Search in history with up and down arrows bindkey '\eOA' up-line-or-beginning-search bindkey '\e[A' up-line-or-beginning-search ...
Make backspace delete characters in zsh
Make backspace delete characters in zsh
Shell
mit
Ash-Crow/dotfiles
shell
## Code Before: bindkey -e # Autoload some shit autoload -Uz up-line-or-beginning-search autoload -Uz down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search # Search in history with up and down arrows bindkey '\eOA' up-line-or-beginning-search bindkey '\e[A' up-line-or-b...