Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block narbs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ATPLogoView.swift
// Source for the Accidental Tech Podcast (ATP) T-Shirt:
// By Troy Gaul, June 2, 2014.
// Based on Obj-C veresion by Marco Arment, April 28, 2014. MIT license.
import UIKit
jkubicek / birds.txt
Last active Aug 29, 2015
Print the names of all the birds
View birds.txt
Striated Pardalote
Elegant Crested Tinamou
Little Tinamou
Slaty-breasted Tinamou
Thicket Tinamou
Great Tinamou
Chilean Tinamou
Cinereous Tinamou
Brown Tinamou
Greater Rhea
dawsontoth / AndroidMenuNavigation.js
Created Feb 17, 2011
Menu based navigation in Appcelerator Titanium that supports the use of the "Back" button to go back a view.
View AndroidMenuNavigation.js
// this is your app.js
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
// define our main window and open it. it will be an activity (navBarHidden: true), and will control our child window views
navBarHidden: true,
backgroundColor: '#fff',
url: 'mainwindow.js',
exitOnClose: true
View app.js
var win = Titanium.UI.createWindow({
var memPool = Titanium.UI.createWindow({});;
var memView = Titanium.UI.createView({
size : {
View gist:3056322
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)];
View ars_live.rb
# Pipe Ars Technica's live Apple event coverage into a Campfire room.
# Usage:
# $ gem install -r hpricot tinder
# $ ruby -rubygems ars_live.rb -ssl mysubdomain myroomid myapikey
require "hpricot"
require "open-uri"
require "tinder"
yagitoshiro / push_notifications.js
Last active Aug 13, 2016
apple push notification sample (Titanium Mobile)
View push_notifications.js
var apns = function(){
var pref = require('preferences').preferences;
types: [
mantonaci / gist:10731724
Created Apr 15, 2014
Convert byte array to base64 string
View gist:10731724
var i2a = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'];
exports.base64_encode = function(s) {
var length = s.length;
var groupCount = Math.floor(length / 3);
var remaining = length - 3 * groupCount;
var result = "";
var idx = 0;
for (var i = 0; i < groupCount; i++) {
marcoarment / gist:5393014
Created Apr 16, 2013
Simple script to fetch Libsyn podcast download totals and display them in Panic's Status Board app.
View gist:5393014
$graph_title = 'Downloads By Episode';
$libsyn_show_id = 12345; // Find this in the various URLs in your control panel
$libsyn_credentials = array(
'email' => '',
'password' => 'your libsyn password'
$most_recent_episodes_to_include = 5;
function csv_with_headers_to_array($csv_str)
dawsontoth / RecordingVideo.js
Created Feb 17, 2011
How to record video, then share or save it. Using Appcelerator Titanium!
View RecordingVideo.js
* This sample lets you record and share video with Appcelerator Titanium on Android.
* First, create our UI. We'll have two buttons: record, and share.
var win = Titanium.UI.createWindow({
You can’t perform that action at this time.