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
#include "YourProjectName.h" | |
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { | |
return new YourProjectName(audioMaster); | |
} | |
YourProjectName::YourProjectName(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 0, NUM_PARAMS) { | |
} | |
YourProjectName::~YourProjectName() { |
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
void resumePlugin(AEffect *plugin) { | |
dispatcher(plugin, effMainsChanged, 0, 1, NULL, 0.0f); | |
} | |
void suspendPlugin(AEffect *plugin) { | |
dispatcher(plugin, effMainsChanged, 0, 0, NULL, 0.0f); | |
} |
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 | |
# This is a simple script which will take a screenshot from a currently | |
# connected Android device and dump it to the user's desktop. | |
# Written by Nik Reiman: [email protected] | |
# INSTALLATION: | |
# For this tool, you will need the Android SDK installed, and you will also | |
# need to build the Android "screenshot" tool. | |
# | |
# To build the screeshot tool, you must download the source by running: |
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
// Fun trick I've been playing with to replace abstract classes with empty java interfaces. | |
public class BaseClass { | |
// stuff ... | |
} | |
public class PurpleClass extends BaseClass implements Controller.IsPurple { | |
// methods ... | |
} |
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
function git-log-for-branch() { | |
branch="$1" | |
git --no-pager log --format=online --no-merges $branch --not \ | |
$(git for-each-ref --format="%(refname)" refs/remotes/origin | \ | |
grep -F -v $branch) | |
} |
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
function git-pull-safe() { | |
local currentBranch=$(git-branch-current) | |
local localLastCommit=$(git log --format="%H" $currentBranch | head -1) | |
local localLastPushCommit="$(git log --format="%H" origin/${currentBranch}.. | tail -n-1)^" | |
#local remoteLastCommit=$(git log origin/$currentBranch | head -1 | cut -f 2 -d ' ') | |
git fetch origin $currentBranch | |
local remoteHeadCommit=$(git log --format="%H" origin/$currentBranch | head -1) | |
if [ "$remoteHeadCommit" = "$localLastCommit" ] ; then | |
# Same message as git pull prints in this case |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Command</key> | |
<string>$HOME/Dropbox/Nik/Scripts/cowfort</string> | |
<key>DropShadow</key> | |
<true/> | |
<key>FailureImage</key> | |
<data> |
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
Day | |
--- | |
%a weekday, abbreviated Tue | |
%A weekday, full Tuesday | |
%d day of the month (dd), zero padded 22 | |
%e day of the month (dd) 22 | |
%j day of year, zero padded 001-366 | |
%u day of week starting with Monday (1), i.e. mtwtfss 2 | |
%w day of week starting with Sunday (0), i.e. smtwtfs 2 |
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
0 tornado | |
1 tropical storm | |
2 hurricane | |
3 severe thunderstorms | |
4 thunderstorms | |
5 mixed rain and snow | |
6 mixed rain and sleet | |
7 mixed snow and sleet | |
8 freezing drizzle | |
9 drizzle |
OlderNewer