Skip to content

Instantly share code, notes, and snippets.

View BobNisco's full-sized avatar
🚀
LGTM

Bob Nisco BobNisco

🚀
LGTM
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bobnisco on github.
  • I am bobnisco (https://keybase.io/bobnisco) on keybase.
  • I have a public key whose fingerprint is 3166 825A AEC6 CBC6 2077 8E32 B71C 4069 8B1D 045C

To claim this, I am signing this object:

@BobNisco
BobNisco / controller.js
Last active February 27, 2023 15:43
onLongPress AngularJS Directive - Great for mobile!
// Somewhere in your controllers for this given example
// Example functions
$scope.itemOnLongPress = function(id) {
console.log('Long press');
}
$scope.itemOnTouchEnd = function(id) {
console.log('Touch end');
}
@BobNisco
BobNisco / privacy.txt
Created March 27, 2014 02:09
Privacy Policy
This application does not store any information about you. We utilize Microsoft pubCenter for serving advertisements.
This privacy policy is subject to change without notice and was last updated on March 25, 2014.
@BobNisco
BobNisco / foo.ts
Created March 5, 2014 17:54
TypeScript Example
public foo(x: string) {
if (x == "bar") {
return 1;
} else {
return false;
}
}
@BobNisco
BobNisco / Capfile
Created February 14, 2014 20:26
Capistrano 3.1 + Rails 4 + RVM Simple Single-Stage Configuration
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
@BobNisco
BobNisco / config.xml
Last active August 29, 2015 13:56
Getting started with PhoneGap 3.x Facebook Login
<!-- If you're using PhoneGap Build -->
<feature name="org.apache.cordova.facebook.Connect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
</feature>
<!-- Cordova Plugin -->
<gap:plugin name="com.phonegap.plugins.facebookconnect">
<param name="APP_ID" value="YOUR_FB_APP_ID" />
<param name="APP_NAME" value="YOUR_APP_NAME" />
</gap:plugin>
@BobNisco
BobNisco / osx_sleeptimer.py
Last active January 16, 2020 02:40 — forked from samliu/osx_sleeptimer.py
A Python script to turn off your music and optionally put your computer to sleep after a period of time!
#!/usr/bin/env python
import os
import sys
import time
from datetime import datetime, timedelta
def main():
if len(sys.argv) >= 3:
music_service = str(sys.argv[1])
minutes_to_wait = float(sys.argv[2])