Skip to content

Instantly share code, notes, and snippets.

hey it worked!
@arturadib
arturadib / FabricPostBuildiOS-snippet.cs
Created April 7, 2016 15:36
FabricPostBuildiOS snippet
string shellScriptLines =
"\t\t" + scriptUUID + " /* ShellScript */ = {\n" +
"\t\t\tisa = PBXShellScriptBuildPhase;\n" +
"\t\t\tbuildActionMask = 2147483647;\n" +
"\t\t\tfiles = (\n" +
"\t\t\t);\n" +
"\t\t\tinputPaths = (\n" +
"\t\t\t);\n" +
"\t\t\toutputPaths = (\n" +
"\t\t\t);\n" +
@arturadib
arturadib / pre-commit
Last active December 21, 2023 08:54
Pre-commit hook to prevent debug code from being committed
#
# Paste this script in your .git/hooks/pre-commit file (create one if it doesn't exist yet)
# To prevent debug code from being accidentally committed, simply add a comment near your
# debug code containing the keyword !nocommit and this script will abort the commit.
#
if git commit -v --dry-run | grep '!nocommit' >/dev/null 2>&1
then
echo "Trying to commit non-committable code."
echo "Remove the !nocommit string and try again."
@arturadib
arturadib / dropbox-slideshow.js
Created June 15, 2014 17:51
Dropbox slideshow
var goingFwd = true;
setInterval(function() {
if (goingFwd) {
var $el = jQuery('.next');
if ($el.hasClass('opacity-zero')) {
goingFwd = false;
} else {
$el.click();
}
} else {