This file contains 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
#!/usr/bin/env bash | |
# Backup Android via ADB | |
set -euf -o pipefail | |
# configuration | |
ADB_DEVICE_ID="beefdead" # your device id from `adb devices` | |
OUT_DIR="/Volumes/SOMEDRIVE/Android Backups" | |
FILENAME="android-$(date +%Y-%m-%d-%H%M).ab" | |
# change to script directory |
This file contains 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 | |
# Size at the end is * 2048 where 2048 = 1 MB, so 1572864 = 768 MB | |
#DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://1572864` | |
DISK=`/usr/bin/hdiutil attach -nobrowse -nomount ram://2097152` | |
/usr/sbin/diskutil erasevolume HFS+ "RamDiskCache" $DISK | |
CACHEDIR="/Volumes/RamDiskCache/$USER" |
This file contains 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
GroupAdd, Browsers, ahk_class Chrome_WidgetWin_1 | |
GroupAdd, Browsers, ahk_class MozillaWindowClass | |
GroupAdd, Browsers, ahk_class ApplicationFrameWindow | |
#MaxHotkeysPerInterval 219 | |
;-----three finger tap for middle click----- | |
+^#F22:: | |
SendInput, {MButton} | |
return |
This file contains 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
@charset "UTF-8"; | |
/*--------------------------------------------------------------- | |
IE78 - Zurb Foundation 4 Grid | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
https://gist.github.com/replete/7082477 | |
(an enhanced fork of https://gist.github.com/zurbchris/5068210 ) | |
1) Make sure $row-width-px = your max large breakpoint row width (e.g. 960px) |
This file contains 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() { | |
'use strict'; | |
angular.module('shopperTrak.validators') | |
.directive('blacklistedCharacters', function (){ | |
return { | |
require: 'ngModel', | |
restrict:'A', | |
link: function(scope, elem, attrs, ngModel) { |
This file contains 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() { | |
'use strict'; | |
angular.module('shopperTrak.validators') | |
.directive('blacklistedValues', function (){ | |
return { | |
require: 'ngModel', | |
restrict:'A', | |
link: function(scope, elem, attr, ngModel) { |
This file contains 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
// Browser support | |
(function (d, h, w, n) { | |
//function hasProperties(properties, tagName) { | |
// var isStyle = !!!tagName; | |
// tagName = tagName || 'div'; | |
// var el = d.createElement(tagName); | |
// for (var prop in properties) { | |
// if ((isStyle ? el.style[properties[prop]] : el[properties[prop]]) !== undefined ) { | |
// return true; |
This file contains 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 (w, d, undefined) { | |
'use strict'; | |
// TODO: Make some methods private for better inheritance | |
var h = d.documentElement; | |
function getNamespace(ns, names) { | |
for (var i = 0, n = names.split('.'), l = n.length; i < l; i++) { |
This file contains 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
FROM debian:latest | |
RUN apt-get -y update && apt-get install -y fortunes | |
CMD /usr/games/fortune |
This file contains 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
/*--------------------------------------------------------------- | |
Media Queries | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
Mixins | |
˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭*/ | |
//Default values | |
$MEDIUM_MIN: 740px !default; | |
$LARGE_MIN: 1134px !default; | |
$XLARGE_MIN: 1440px !default; |