This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
require 'pp' | |
require 'set' | |
require 'colorize' | |
require 'forwardable' | |
unless ARGV.size >= 1 | |
puts "Usage: __FILE__ <input file> [<output file>]" | |
exit(1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CodePoint | |
def initialize(b) | |
@b = b | |
end | |
def hex | |
@b.to_s(16) | |
end | |
def char_windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test file | Total time (secs) | Num tests | |
---|---|---|---|
Admin::PublicationsControllerTest | 64.40897911399999 | 179 | |
Admin::ConsultationsControllerTest | 53.54554799800004 | 192 | |
Admin::PoliciesControllerTest | 51.64296816499997 | 133 | |
Admin::SpeechesControllerTest | 49.026733437999994 | 125 | |
Admin::DetailedGuidesControllerTest | 47.214723524 | 161 | |
Admin::NewsArticlesControllerTest | 44.89375400000001 | 133 | |
Admin::StatisticalDataSetsControllerTest | 34.746459009000006 | 129 | |
Admin::FatalityNoticesControllerTest | 33.682851786000015 | 118 | |
Admin::CaseStudiesControllerTest | 26.38523314900001 | 99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello <%= name %>! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Old Url | New Url | Status | |
---|---|---|---|
http://www.ago.gov.uk/aboutus/pages/thing | https://www.gov.uk/government/organisations/attorney-generals-office/thing | 301 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'ruby2ruby' | |
gem 'rspec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'stanford-core-nlp' | |
# Set an alternative path to look for the JAR files | |
# Default is gem's bin folder. | |
StanfordCoreNLP.jar_path = File.realpath(File.dirname(__FILE__)) + '/jars/' | |
StanfordCoreNLP.model_path = File.realpath(File.dirname(__FILE__)) + '/jars/' | |
StanfordCoreNLP.use :english | |
StanfordCoreNLP.model_files = {} | |
StanfordCoreNLP.default_jars = [ | |
'jollyday.jar', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
_ "github.com/lib/pq" | |
"log" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Migration.verbose = false | |
ActiveRecord::Schema.define do | |
create_table :products, :force => true do |t| | |
t.timestamps | |
end | |
create_table :product_translations, :force => true do |t| | |
t.string :locale | |
t.references :product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"userName": "alphagov", | |
"repo": "asset-manager" | |
}, | |
{ | |
"userName": "alphagov", | |
"repo": "authenticating-proxy" | |
}, | |
{ |
OlderNewer