Skip to content

Instantly share code, notes, and snippets.

@imranansari
imranansari / dabblet.css
Created March 10, 2012 20:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.note {
position:relative;
width:480px;
padding:1em 1.5em;
margin:2em auto;
color:#fff;
@imranansari
imranansari / dabblet.css
Created March 10, 2012 20:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.note {
position:relative;
width:480px;
padding:1em 1.5em;
margin:2em auto;
color:#fff;
@imranansari
imranansari / dabblet.css
Created March 10, 2012 20:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.note {
position:relative;
width:480px;
padding:1em 1.5em;
margin:2em auto;
color:#fff;
@imranansari
imranansari / juggernaut_channels.rb
Created June 26, 2012 12:20 — forked from maccman/juggernaut_channels.rb
Sinatra Server Side Event streaming with private channels.
# Usage: redis-cli publish message.achannel hello
require 'sinatra'
require 'redis'
conns = Hash.new {|h, k| h[k] = [] }
Thread.abort_on_exception = true
get '/' do
@imranansari
imranansari / touch.css
Created September 13, 2012 12:11 — forked from jlongster/touch.css
Web Audio API demo (iOS 6, Chrome) - The Web is a Platform
html, body {
background-color: black;
width: 100%;
height: 100%;
margin: 0;
}
canvas {
display: block;
margin: 0;
class MyController < UIViewController
def viewDidLoad
super
top_view.addSubview chart_view([[0,0], [100,100],
[10, 20, 20, 15, 35],
["#203a65", "#37537c", "#5b7faa", "#aec2d6", "#aec2d6", "#ffffff"]
)
end
def chart_view(frame, data, colors)
//
// StickyHeaderLayout.h
// Wombat
//
// Created by Todd Laney on 1/9/13.
// Copyright (c) 2013 ToddLa. All rights reserved.
//
// Modified from http://blog.radi.ws/post/32905838158/sticky-headers-for-uicollectionview-using THANKS!
//
@imranansari
imranansari / Rakefile
Created February 10, 2013 16:56 — forked from alloy/Rakefile
desc "Create a new version tag and push a new podspec"
task :release do
require 'cocoapods'
require 'colored'
version = Pod::Specification.from_file(Pathname.pwd + 'MyLib.podspec').version
puts "Releasing version `#{version}'. Is that correct? (y/n)"
if $stdin.gets.strip.downcase == 'y'
sh "git tag -a #{version} -m 'Release #{version}'"
sh "git push --tags"
sh "pod lint"

RubyMotion #inspect 2013 Traveling Guide

Overview

This document is a travel guide to RubyMotion's first conference, #inspect 2013.

http://www.rubymotion.com/conference

If you are attending or considering attending the conference, you might find here some handy tips that will answer questions you might have. If you have a question that isn't answered here, feel free to contact us and we will update this document accordingly.

class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
PXEngine.licenseKey('YOUR SERIAL', forUser:'YOUR USER')
@button = UIButton.buttonWithType(UIButtonTypeRoundedRect)
@button.styleId = "myButton"
@button.frame = [[100, 100], [80, 40]]
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.addSubview(@button)