Skip to content

Instantly share code, notes, and snippets.

View danramteke's full-sized avatar

Daniel Ramteke danramteke

View GitHub Profile
@danramteke
danramteke / gist:b60c782ad6f05cdffe0c
Created October 8, 2014 15:33
xcode 6 and ruby motion : (
Last login: Mon Oct 6 23:16:20 on ttys001
Avalanche:xcode6test daniel$ rake clean:all --trace
WARNING! BubbleWrap::HTTP is deprecated and will be removed, see https://github.com/rubymotion/BubbleWrap/issues/308
WARNING! Switch to a different networking library soon - consider AFNetworking: http://afnetworking.com/
WARNING! You can use the 'bubble-wrap-http' gem if you need compatibility: https://github.com/rubymotion/BubbleWrap-HTTP
** Invoke clean:all (first_time)
** Execute clean:all
** Invoke clean (first_time)
** Execute clean
rm -rf ./build
@danramteke
danramteke / .bash_login
Last active October 21, 2015 15:14
useful bash configurations
RED="\033[0;31m"
YELLOW="\033[0;33m"
GREEN="\033[0;32m"
NO_COLOUR="\033[0m"
function parse_git_branch () {
git status -b --porcelain 2> /dev/null | head -1 | sed -e 's/## //' -e 's/\.\.\..*//'
}
<h1 align="center">Recipe for Pulao</h1>
<ol><li>Make mixtures:<br><table border>
<tr><th colspan="2">Mix 1 (blender)</th></tr>
<tr><td> 1 inch</td><td>fresh ginger</td></tr>
<tr><td> 4 </td><td>Garlic cloves</td></tr>
<tr><td> 1</td><td> chopped onion</td></tr>
<tr><td> 1 handful</td><td> corriander leaves(silanto)</td></tr>
<tr><th colspan="2">Mix 2 (pot)</th></tr>
class Object
def self.my_attr_accessor variable
class_eval("def #{variable}= val; @#{variable} = val; end")
class_eval("def #{variable}; @#{variable}; end")
end
end
module PlayingCards
class Card
attr_accessor :rank, :suit
def initialize(a_rank, a_suit)
@rank = parse_rank a_rank
@suit = parse_suit a_suit
end