Skip to content

Instantly share code, notes, and snippets.

View kharmabum's full-sized avatar
💭
🧀

Juan-Carlos Foust kharmabum

💭
🧀
View GitHub Profile
desc 'Remove unused images'
task :clean_assets do
require 'set'
all = Set.new
used = Set.new
unused = Set.new
# White list
used.merge %w{Icon Icon-29 Icon-50 Icon-58 Icon-72 Icon-114}
@kharmabum
kharmabum / sample.md
Last active December 14, 2015 10:49
markdown examples

header1

#header1

header2

##header2 ###header3



@kharmabum
kharmabum / FTViewControllerTemplate.m
Last active December 14, 2015 14:48
Template for UIViewController sublcass organization.
//
// FTViewController.m
//
// Created by Juan-Carlos Foust on 06/03/2013.
//
#import "FTViewController.h"
#import "MBProgressHUD.h"
@interface FTViewController ()

Objective-C Coding Convention and Best Practices

Most of these guidelines are to match Apple's documentation and community-accepted best practices. Some are derived some personal preference. This document aims to set a standard way of doing things so everyone can do things the same way. If there is something you are not particularly fond of, it is encouraged to do it anyway to be consistent with everyone else.

This document is mainly targeted toward iOS development, but definitely applies to Mac as well.

Operators

NSString *foo = @"bar";
@kharmabum
kharmabum / FTCustomUIViewWithNib.m
Last active December 14, 2015 14:49
Generic custom UIView with nib file
//
// FTCustomUIViewWithNib.m
// OneHundredPlus
//
// Created by Juan-Carlos Foust on 06/03/2013.
//
#import "FTCustomUIViewWithNib.h"
@interface FTCustomUIViewWithNib ()
@kharmabum
kharmabum / FTCustomUITableViewCellWithNib
Last active December 14, 2015 14:49
Generic custom UITableViewCell with Nib
//
// FTCustomUITableViewCellWithNib.m
// Created by Juan-Carlos Foust on 06/03/2013.
//
#import "FTCustomUITableViewCellWithNib.h"
static UIImage *_placeholderImage = nil;
@interface FTGenericUITableViewCellWithNib ()
@kharmabum
kharmabum / default.html
Last active December 14, 2015 18:58
HTML boilerplate for stand-alone documents that might otherwise be .docx; export from http://dillinger.io/ and copy/paste into <body>.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@kharmabum
kharmabum / shopsense-api-reference.html
Created May 16, 2013 14:05
ShopSense API Reference
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@kharmabum
kharmabum / node-aws-setup.txt
Created May 21, 2013 04:22
Setting up 64bit Linux on AWS for Node.js
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
sudo yum install git-core
sudo yum install emacs
# Install nvm: node-version manager
# https://github.com/creationix/nvm
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
# Install rlwrap to provide libreadline features with node # See: http://nodejs.org/api/repl.html#repl_repl
sudo yum install readline-devel

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style