This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
#------------------------------------------------------------------------------- | |
# NOTES: | |
#------------------------------------------------------------------------------- | |
# * User @jimklimov (and probably some others called out in the long comment | |
# thread below) have modified this script to make it more robust and keep | |
# up with various changes in the GitHub API and response format at: | |
# https://github.com/jimklimov/github-scripts |
function ignore(paths, fn) { | |
return function(req, res, next) { | |
if (~paths.indexOf(req.url)) { | |
next(); | |
} else { | |
fn(req, res, next); | |
} | |
} | |
} |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
Date time=[2013/03/15-10:43:16];date time setting,format yyyy/mm/dd hh:mm:ss, | |
Movie resolution=[0];Movie resolution setting,0:720p 30fps,1:wvga 30fps,2:vga 30fps, | |
Movie cycle time=[1];movie cycle time,0:5 minutes,1:20 minutes,2:40 minutes,3: 70 minutes, | |
movie Loop Recording=[0];set loop recording on or off,0:off,1:on, | |
Movie stamp=[0];set date / time stamp on or off,0:off,1:on, | |
Movie sound=[2];set movie sound,0:mute,1:level 1,2:level 2,3:level 3, | |
LED=[0];set LED flicker when recording,0:off,1:on, | |
Movie quality=[1];set movie quality,set movie data rate,0:10 Mbps,1:7 Mbps, | |
Power off=[1];set system auto power off time when system pending,0:off,1:30 seconds,2:1 minutes,3:2 minutes, | |
Movie Flip=[0];set movie rotate,0:off,1:on, |
var myApp = angular.module("myApp", []); | |
myApp.directive("rangeChange", function ($rootScope) { | |
var linker = function (scope, element, attrs) { | |
var updateScope = function () { | |
scope[attrs.rangeControl](element.val()); | |
//may need to scope.$apply here | |
}; | |
element.bind("change", updateScope); | |
updateScope(); //get the default value | |
}; |
#Backup: | |
adb remount | |
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db mmssms.db | |
#Restore: | |
adb remount | |
adb push mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db |
// @license http://opensource.org/licenses/MIT | |
// copyright Paul Irish 2015 | |
// Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
// github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
// as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
// if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
// but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |