Skip to content

Instantly share code, notes, and snippets.

@dachev
dachev / hack.sh
Created March 31, 2012 14:20 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@dachev
dachev / wget
Created April 4, 2012 21:41
wget
blago@Blagovest-Dachevs-MacBook-Pro iOS (master) $ wget "http://d2xqg7gw3c1myh.cloudfront.net/tcvt_v002/tcvt_v002_cell200_ipad_29.ts"
--2012-04-04 16:30:51-- http://d2xqg7gw3c1myh.cloudfront.net/tcvt_v002/tcvt_v002_cell200_ipad_29.ts
Resolving d2xqg7gw3c1myh.cloudfront.net (d2xqg7gw3c1myh.cloudfront.net)... 205.251.203.119, 205.251.203.96, 205.251.203.121, ...
Connecting to d2xqg7gw3c1myh.cloudfront.net (d2xqg7gw3c1myh.cloudfront.net)|205.251.203.119|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 348368 (340K) [video/MP2T]
Saving to: `tcvt_v002_cell200_ipad_29.ts.1'
0% [ ] 0 --.-K/s in 0s
workout = {
buddys = "<null>";
completed = 1;
"gym_id" = "<null>";
mood = "<null>";
name = "Custom Workout";
provider = ios;
"total_workout_time" = 22;
"via_logger" = 1;
"workout_date" = 1483878574;
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);