process id is 928
sudo dtrace -n \
'ruby*:::method-entry { printf("-> %s %s\n",copyinstr(arg0),copyinstr(arg1)) }' \
-p 928
<div class="container"> | |
<h1>This page contains some example of <b>@extend</b> where ther result is non obvious</h1> | |
<h2>Example 1</h2> | |
<span>First button bellow is done via simple col-xs-1 attribute, second done via @extend</span> | |
<div class="small-box"> | |
<div class="row"> | |
<button class="btn col-xs-1">+</button> | |
</div> | |
<div class="row"> | |
<button class="btn col-xs-1-via-extend">+</button> |
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
gem 'byebug' | |
GEMFILE | |
system 'bundle' |
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
#gem 'rails', github: 'rails/rails', branch: '4-2-stable' | |
gem 'rails', '4.2.0.rc2' | |
#gem 'rails', '4.1.8' | |
#gem 'arel', github: 'rails/arel' | |
#gem 'rack', github: 'rack/rack' | |
gem 'i18n', github: 'svenfuchs/i18n' |
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
gem 'pg' | |
gem 'byebug' | |
GEMFILE |
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# Activate the gem you are reporting the issue against. |
@interface LoggerProxy : NSObject | |
{ | |
id original; | |
} | |
- (id)initWithOriginal:(id) value; | |
@end | |
@implementation LoggerProxy |
define assemble | |
# dont enter routine again if user hits enter | |
dont-repeat | |
if ($argc) | |
if (*$arg0 = *$arg0) | |
# check if we have a valid address by dereferencing it, | |
# if we havnt, this will cause the routine to exit. | |
end | |
printf "Instructions will be written to %#x.\n", $arg0 | |
else |
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' |
#!/usr/bin/python | |
""" Implement parametric testMethods and testCases for nose and unittest | |
usage for parametric test methods: | |
@parametric | |
class MyTest(unittest.TestCase): | |
@parametric(foo=[1,2],bar=[3,4]) | |
def testWithParams(self,foo,bar): | |
self.assertLess(foo,bar) |