This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @creator: Slipp Douglas Thompson | |
/// @license: WTFPL | |
/// @purpose: A `UIViewController` subclass (instantiable from code or XIB/Storyboard) that initializes its `SCNView` using the specified `viewFrame` & `viewOptions`. | |
/// @why: Because this functionality should be built-into SceneKit. | |
/// @usage: _FILL_IN_ | |
/// @interwebsouce: https://gist.github.com/capnslipp/6d3e4d3a5f0aeb96eda416774e22dd1f | |
import UIKit | |
import SceneKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct GlobalsStruct { | |
public static let aValue = 5 | |
private init() {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Plainy | |
{ | |
public: | |
readonly: | |
int foo; | |
int bar; | |
} | |
static class Clingy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slippyd@silverdelicious:~$ cd Desktop/ | |
# cloning git repo from github: | |
slippyd@silverdelicious:~/Desktop$ git clone git@github.com:capnslipp/p001.git p001_git | |
Cloning into 'p001_git'... | |
remote: Counting objects: 3360, done. | |
remote: Compressing objects: 100% (870/870), done. | |
remote: Total 3360 (delta 2407), reused 3331 (delta 2380) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Hook script that blocks pushing of branches and tags with the form 'wip/*', and commits commits the log message starts | |
# with "WIP" (work in progress).. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double (^multiplyTwoValues)(double, double) = ^(double firstValue, double secondValue) { | |
return firstValue * secondValue; | |
}; | |
double result = multiplyTwoValues(2, 4); | |
// or | |
typedef double (^CombineTwoValuesBlock)(double firstValue, double secondValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @purpose: Removes applications from OS X's filetype association database (LaunchServices). | |
# Useful for .apps you'd like around but never want automatically launched. I use it for alpha/beta/developer preview versions that I like to play with, but don't want to commit to yet. | |
lsregister="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister" # or `locate -l1 lsregister` | |
argc=$# | |
if [ $argc -ne 1 ]; then | |
scriptname=`basename $0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run prior to building with XcodeTest to install WaxSim. | |
# @note: assumed that WaxSim is already present in the repo at WAXSIM_PATH | |
# I recommend installing a submodule (rather than including WaxSim's source in the repo itself) via something to the effect of `git submodule add git@github.com:jonathanpenn/WaxSim.git Tools/WaxSim`. But you're free to do whatever you want. | |
WAXSIM_PATH=./Tools/WaxSim/ | |
# install waxsim | |
cd "$WAXSIM_PATH" | |
xcodebuild install DSTROOT=/ INSTALL_PATH=/usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// LoopErrorTest | |
// | |
// Created by Slipp D. on 5/13/13. | |
// Copyright (c) 2013 me!. All rights reserved. | |
// | |
#import "ViewController.h" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sampling process 84871 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling Finder (pid 84871) every 1 millisecond | |
Process: Finder [84871] | |
Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder | |
Load Address: 0x1035a3000 | |
Identifier: com.apple.finder | |
Version: 10.8.1 (10.8.1) | |
Build Info: Finder_FE-808001006000000~2 | |
Code Type: X86-64 (Native) |