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
_ReSharper* | |
bin | |
obj | |
*.user | |
*.suo | |
*.cache |
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 'abc db.test(me) someting' | sed 's/.*\(db.test(.*)\).*/\1/g' |
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 Test | |
def x() | |
puts 'x' | |
end | |
define_method("this is a method") do |y| | |
puts 'called with >> ' + y.to_s | |
end | |
alias :msg :send |
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
$: << 'lib' | |
Dir.glob(File.dirname(__FILE__) + '/lib/*') {|file| require file} |
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
def x(&block) | |
$t = 'TEST' | |
block.call | |
end | |
def y(v) | |
puts "Value passed in was #{v}" | |
end | |
x { y($t) } #=> Value passed in was TEST |
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
config_file = 'app.config' | |
dns = 'ec2-127.0.0.1.amazon.com' | |
command = "require \'mscorlib\'; " + | |
"contents = System::IO::File.read_all_text(\'#{ config_file }\');" + | |
"contents = contents.replace(\'$(MACHINE_DNS)\', \'#{dns}\'); " + | |
"System::IO::File.write_all_text(\'#{ config_file }\', contents)" | |
ironruby_cmd = "C:\\TeamCityBuildTools\\ironruby\\1.0\\bin\\ir.exe -d -e \"#{command}\"" |
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
using System; | |
using System.Configuration; | |
using Castle.Components.DictionaryAdapter; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using Rhino.Mocks; | |
namespace CastleDictionaryAdapterExample | |
{ | |
class Program |
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 'meerpush' | |
task :deploy => [:delete, :create, :start] | |
desc "Delete Website" | |
delete_site :delete do |w| | |
w.name = 'Meerpush_Website' | |
end | |
desc "Create Website" |
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 Environment < some_class | |
end | |
extend Environment::DSL |
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
{"size":1,"position":2,"status":"1.0","search_engine":"http://www.google.com/search?q=","theme":"GleeThemeDefault","bookmark_search":0,"scroll_animation":1,"tab_shortcut_status":1,"esp_status":1,"shortcut_key":"71.0","tab_shortcut_key":"190.0","hyper":"0.0","version":"1.6.2","disabledUrls":["mail.google.com","wave.google.com","mail.yahoo.com"],"scrapers":[],"espModifiers":[{"url":"google.com/search","selector":"h3:not(ol.nobr>li>h3),a:contains(Next)"},{"url":"bing.com/search","selector":"div.sb_tlst"},{"url":"github.com","selector":".message>a:not(a:contains(Compare)),a:contains(issue),code>a,a:contains(News Feed):not(.selected):not(.feed),a:contains(Your Actions):not(.selected),div.message>pre>a,a.issue_title,span:contains(started) + a,span:contains(created) + a"},{"url":"google.co.uk/search","selector":"h3:not(ol.nobr>li>h3),a:contains(Next)"}]} |