Skip to content

Instantly share code, notes, and snippets.

View kattrali's full-sized avatar

Delisa kattrali

View GitHub Profile
@ryansobol
ryansobol / gist:5276501
Last active December 15, 2015 14:39
What Really Happened at #inspect 2013

What Really Happened at #inspect 2013

For those who couldn't make it to Brussels, here's what you missed.

Dispassionate objectivity

From my experience, great conferences have one thing in common -- debates during, in-between and after talks. #inspect 2013 was no different.

Most speakers had opinions on snake_case vs camelCase. I overheard arguments both for and against Teacup at lunch. Colleagues from around the globe weighed in on the benefits of wrappers and the pitfalls of additional dependencies. Even the venue for #inspect 2014 sparked a catch phrase -- "Tan or tech, Cancun or New York".

@mattt
mattt / uiappearance-selector.md
Last active June 4, 2024 13:28
A list of methods and properties conforming to `UIAppearance` as of iOS 12 Beta 3

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \
#!/usr/bin/env bash
for num in {1..30} ; do
volume=$(printf %02d ${num%.*})
volumefolder="Mangajin v${volume}"
mkdir "${volumefolder}"
for i in {0..99} ; do
if (("$num" > "21")) && (("$num" < "29")) ; then
page=$(printf %03d ${i%.*})
else

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.

@rtomayko
rtomayko / testlib.sh
Last active April 29, 2022 07:23
Simple shell command language test library.
#!/bin/sh
# Usage: . testlib.sh
# Simple shell command language test library.
#
# Tests must follow the basic form:
#
# begin_test "the thing"
# (
# set -e
# echo "hello"
###
# Scheme code is translated to YARV byte code, then evaluated in the
# Ruby Virtual Machine
require 'rbconfig'
require 'dl'
require 'fiddle'
require 'strscan'
class RubyVM
@andkerosine
andkerosine / raskell.rb
Created August 15, 2012 05:56
Haskell-like list comprehensions in Ruby
$stack, $draws = [], {}
def method_missing *args
return if args[0][/^to_/]
$stack << args.map { |a| a or $stack.pop }
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :<
end
class Array
def +@

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
  • NBC
@alloy
alloy / Instructions.md
Created June 28, 2012 12:56
Run iOS unit tests (in a Xcode workspace) when a file changes and *only* those tests related to the changed file. Also trims otest output and colors test results.