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
int d = [[n toStringWithDecimalPlaces:0] length]; | |
if (d > decimals) decimals = d; |
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 'kyoto' | |
use 'actors/velocity' | |
use 'actors/bound_to_world' | |
use 'game/pausable' | |
use 'game/score' | |
use 'color' | |
use 'collision_detection' | |
class Paddle < Actor |
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
#!/usr/bin/ruby | |
# | |
# Recursive git pull - will go into first-level subdirectories that are git repos and execute "git pull", stopping on first unsuccessful pull | |
# @Copyleft 2009 Esad Hajdarevic <[email protected]> http://dev.soup.io/ | |
repos = Dir["*/.git"].map {|path| path.chomp!("/.git") } | |
if repos.empty? | |
puts "No git repositories found" | |
else |
NewerOlder