This file contains hidden or 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
| public |
This file contains hidden or 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
| * { | |
| font-family: Verdana; | |
| } | |
| QToolButton { | |
| font-weight: bold; | |
| padding: 1px; | |
| } | |
| #video_half { background: black; } |
This file contains hidden or 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 'set' | |
| rows,columns = `stty size`.scan(/\d+/).map{|x| x.to_i} | |
| # ruby 1.8.x compatible way to say "\u2743" | |
| Flake = ["2743".to_i(16)].pack("U*") | |
| # Shapes from far away to still closer | |
| Snow = ['.','*',Flake] | |
| # flake state descriptor |
This file contains hidden or 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
| # reverse engineering gawk code | |
| { | |
| rnd_column = $3; # comes from bash $(($RANDOM%$COLUMNS)) | |
| snow = $4; # comes from bash $(printf "\u2743\n") | |
| snow_progress[ rnd_column ] = 0; | |
| for(row in snow_progress) { | |
| old_col = snow_progress[row]; | |
| snow_progress[row] = snow_progress[row] + 1; | |
| # erase snowflake at previous position | |
| printf "\033[%s;%sH ",old_col,row; |
This file contains hidden or 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
| Process: ruby [15955] | |
| Path: /Users/artm/.rbenv/versions/1.9.3-p194/bin/ruby | |
| Identifier: ruby | |
| Version: ??? (???) | |
| Code Type: X86-64 (Native) | |
| Parent Process: bash [25775] | |
| Date/Time: 2012-11-09 11:45:01.335 +0100 | |
| OS Version: Mac OS X 10.6.8 (10K549) | |
| Report Version: 6 |
This file contains hidden or 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 "fileutils" | |
| class BundleFixer | |
| def initialize(bundle) | |
| @bundle_dir = bundle.sub(%r{/$},"") | |
| raise "No such bundle #{bundle}" unless File.directory? @bundle_dir | |
| basename = File.basename(@bundle_dir, ".app") | |
| @embed_dir = "#{@bundle_dir}/Contents/Frameworks" | |
| @embed_rel_dir = "@executable_path/../Frameworks" |
This file contains hidden or 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 'psych' | |
| require 'yaml' | |
| class General | |
| def gen | |
| # this amount was found expetimentally and exposes the problem eventually on my machine | |
| (1...2000).map do |x| | |
| Float(x) | |
| end | |
| end |
This file contains hidden or 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
| Given /^I puts "([^"]*)"$/ do |arg1| | |
| if !$ran | |
| puts arg1 | |
| $ran = arg1 == 'fg1' | |
| else | |
| true.should == false | |
| end | |
| end |
This file contains hidden or 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
| set viminfo=!,'100,<50,s10,h | |
| au VimLeavePre * let g:BG = &background | |
| au VimEnter * if exists("g:BG") | let &background = g:BG | endif |
This file contains hidden or 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
| template.gsub!('{{CONNECT_MEETING_099}}', delegate[12] || '') |