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
options = [:hit, :miss, :unknown].cycle | |
Array.new(10) { Array.new(10) { |v| options.next } } |
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
iterations = 0 | |
payloads = (1..1000).to_a | |
threads = [] | |
threads << Thread.new do | |
200.times do | |
add_num = rand(1000..2000) | |
puts "\nAdding #{add_num} to payload" | |
payloads << add_num | |
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
:VdebugOpt | |
setting debug_file | |
behaves like a vdebug option | |
the resulting option value | |
should == "path/to/file.log" | |
setting debug_file_level | |
behaves like a vdebug option | |
the resulting option value | |
should == "2" | |
setting debug_window_level |
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
["echo",["run_test_files",["spec/conductor_spec.rb","spec/observer_set_spec.rb","spec/event_spec.rb","spec | |
/test_event_spec.rb","spec/echo_event_spec.rb","spec/reader_spec.rb","spec/status_change_event_spec.rb","s | |
pec/pass_or_fail_event_spec.rb","spec/event_parser_spec.rb","spec/listener_spec.rb"]]] | |
["echo",["test","spec/conductor_spec.rb",[]]] | |
["echo",["test","spec/conductor_spec.rb",[],"spec/conductor_spec.rb.log",1]] | |
["test","spec/conductor_spec.rb",[],"spec/conductor_spec.rb.log",1] | |
["echo",["test","spec/observer_set_spec.rb",[]]] | |
["echo",["test","spec/observer_set_spec.rb",[],"spec/observer_set_spec.rb.log",0]] | |
["test","spec/observer_set_spec.rb",[],"spec/observer_set_spec.rb.log",0] | |
["echo",["test","spec/event_spec.rb",[]]] |
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
Information:Gradle tasks [:app:assembleDebug] | |
:app:preBuild UP-TO-DATE | |
:app:preDebugBuild UP-TO-DATE | |
:app:checkDebugManifest | |
:app:preReleaseBuild UP-TO-DATE | |
:app:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE | |
:app:prepareComAndroidSupportSupportV42211Library UP-TO-DATE | |
:app:prepareDebugDependencies | |
:app:compileDebugAidl UP-TO-DATE | |
:app:compileDebugRenderscript UP-TO-DATE |
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
src/main.rs:8:36: 8:42 error: cannot borrow immutable local variable `buffer` as mutable | |
src/main.rs:8 try!(stdin.read_to_string(&mut buffer)); | |
^~~~~~ | |
<std macros>:1:1: 6:48 note: in expansion of try! | |
src/main.rs:8:5: 8:45 note: expansion site | |
error: aborting due to previous error |
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
<?php | |
App::uses('PaginatorHelper','View/Helper'); | |
class CustomPaginatorHelper extends PaginatorHelper { | |
public function numbers($options = array()) { | |
if ($options === true) { | |
$options = array( | |
'before' => ' | ', 'after' => ' | ', 'first' => 'first', 'last' => 'last' | |
); |
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 Instruction < ActiveRecord::Base | |
#... | |
def self.new_over_period(from, to, range, user) | |
where = "" | |
if user.is_solicitor | |
where = " AND instructions.solicitor_id IN ('"+user.solicitor.id.to_s+"')" | |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Manage unicorn server | |
# Description: Start, stop, restart unicorn server for a specific application. | |
### END INIT INFO |
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
--- | |
layout: none | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"> | |
<channel> | |
<title>{{ site.name | xml_escape }}</title> | |
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> | |
<link>{{ site.url }}</link> | |
<language>en</language> |