Original rules by Сергей Слюсарев.
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
| 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
| * { | |
| 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
| 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
| # I have something like: | |
| def map_stream source, destination, options_and_mapping | |
| option1 = options_and_mapping.delete :option1 | |
| quiet = options_and_mapping.delete :quiet | |
| source.each do |input_record| | |
| output_record = map_record input_record, options_and_mapping | |
| some_extra_operation(output_record,option1) if option1 | |
| @logger.info("mapped record #{input_record} to #{output_record}") unless quiet | |
| destination.insert output_record |
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
| module Something | |
| def self.foo a, *args | |
| a.zip(*args).flatten.select{|e|e} | |
| 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
| [ey-local] A box named ey-gentoo-rack already exists. | |
| [ey-local] Using /home/artm/src/dpi/reflex2 as the application directory. | |
| [ey-local] VM already created. Booting if it's not already running... | |
| [ey-local] Creating instance DNA ... | |
| [ey-local] Initiating Chef run ... | |
| [default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: Starting Chef Solo Run | |
| [default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: Mounting devices for kernel 2.6.32-amazon-xen-r3 | |
| [default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: 2.6.32+ kernel detected, assuming paravirtual mount style | |
| [default] [Fri, 09 Aug 2013 09:36:45 +0000] INFO: {"SHELL"=>"/bin/bash", | |
| "TERM"=>"vt100", |
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
| artm@parurak:~/src/dpi/dashboards/kraamzorgcompleet | |
| $ grep -R "_chain_ =" bower_components/dash.js/src | sed -r 's/.*: //;s/\._chain_ = /({...}) -> /;s/"(.*)";/\1/;s/terminate/-/' | column -t | |
| Plain.with({...}) -> Plain | |
| Plain.split({...}) -> Split | |
| Plain.filter({...}) -> Plain | |
| Plain.extract({...}) -> Plain | |
| Plain.size({...}) -> - | |
| SubSplit.sum({...}) -> LabeledNumbers2D | |
| SubSplit.highcharts({...}) -> - | |
| LabeledNumbers2D.mul({...}) -> LabeledNumbers2D |
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
| artm@parurak:~/src/artm/so/test/foo | |
| $ ls | sort | |
| a | |
| b | |
| c | |
| d | |
| e | |
| F | |
| artm@parurak:~/src/artm/so/test/foo |
