Skip to content

Instantly share code, notes, and snippets.

View thelazycamel's full-sized avatar

Stuart Hanscombe thelazycamel

View GitHub Profile
@thelazycamel
thelazycamel / k2poker.ex
Created September 27, 2016 19:35
K2Poker.io Begins
@spec new(String.t, String.t) :: K2poker.Game.t
def new(player1, player2) do
game = %K2poker.Game{
players: [
%K2poker.Player{id: player1},
%K2poker.Player{id: player2}
],
deck: K2poker.Deck.shuffled_strings
}
@thelazycamel
thelazycamel / rubymotion_ad_tracking
Last active August 29, 2015 14:06
Ad Network for RubyMotion (using Leadbolt)
This is a walkthough on how to add an Advertising network into your RubyMotion Project, the AdNetwork I am using is leadbolt,
I have not used them long enough to give a full review, but so far they seem reputable and easy to use, with a web based dashboard for managing your apps and banners.
http://www.leadbolt.com/developers-signup/?ref=10083628 => This is a referral link, so would apprieciate if you used it :)
Sign up to leadbolt, Download their IOS sdk, add your app details, and follow the simple instructions on their site.
move downloaded files into:
/vendor/leadbolt/