This file has been truncated, but you can view the full file.
This file contains hidden or 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) |
This file contains hidden or 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
| (* | |
| @author: Slipp Douglas Thompson | |
| @purpose: Pauses Spotify after the current song finishes playing. | |
| @todo: Optimize so it's more efficient. | |
| @usage: Drop a compiled script (a .scpt file, converted with AppleScript Editor if this is a .applescript file) into ~/Library/Scripts/Applications/Spotify. | |
| Ensure than “Show Script menu in menu bar” is enabled (which can be found in the AppleScript Editor preferences). | |
| When playing a song in Spotify and wishing to stop the music when the track finished, choose “When Song Finishes, Pause” from the script menu, and then walk, walk away. | |
| *) | |
| tell application "Spotify" | |
| log "“When Song Finishes, Pause”: player state is " & (player state) |
This file contains hidden or 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 contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
| /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. | |
| /// @why: Because this functionality should be built-into Unity. | |
| /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. | |
| /// @intended project path: Assets/Plugins/EditorUtils/HideInNormalInspectorAttribute.cs | |
| /// @interwebsouce: https://gist.github.com/capnslipp/8138106 | |
| using UnityEngine; |
This file contains hidden or 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: Public Domain per The Unlicense. See <http://unlicense.org/>. | |
| /// @purpose: Genericized Unity3D SerializedProperty value access. | |
| /// @why: Because this functionality should be built-into Unity. | |
| /// @usage: Use as you would a native SerializedProperty method; | |
| /// e.g. `Debug.Log(mySerializedProperty.Value<Color>());` | |
| /// @intended project path: Assets/Plugins/Editor/UnityEditor Extensions/SerializedPropertyValueExtension.cs | |
| /// @interwebsouce: https://gist.github.com/capnslipp/8516384 | |
| using System; |