Skip to content

Instantly share code, notes, and snippets.

View gearsandcode's full-sized avatar

Jesse Clark gearsandcode

  • Seattle, WA
View GitHub Profile
@gearsandcode
gearsandcode / .gitignore
Created January 11, 2022 01:31
.gitignore
node_modules/*
.vscode/settings.json
.DS_Store
@gearsandcode
gearsandcode / material-design-breakpoints.css
Created April 25, 2017 00:34 — forked from eyecatchup/material-design-breakpoints.css
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */
@gearsandcode
gearsandcode / android_studio-sim-remote_debug-OSX.md
Last active March 28, 2017 17:06
Android Studio + Simulator + remote debug w/ devtools on OSX

For this example we'll add a Virtual Device for a Samsung Galaxy 5 aka 'the main culprit'. You will not have access to Network activity with a virtual device, you'd need to plug in the physical device.

Setup Simulator

  1. Download Android Studio here: https://developer.android.com/studio/install.html and follow the installation instructions.
  2. Download the Galaxy S5 emulator skin from the top of the page here: http://developer.samsung.com/technical-doc/view.do?v=T000000215 then save it and extract it to a directory for use in a later step
  3. Start Android Studio, you may have to browse to it
  4. Start a New Project.
    • Make sure that Phone and Tablet are checked and use the latest API 25+
    • Use default activity and click through and Finish
  • Wait for build..
@gearsandcode
gearsandcode / ng1-partition-array.filter.js
Last active June 22, 2016 02:13
partition array filter - distribute an array into columns #angularjs #array #partition #columns
Example usage: <!-- ngRepeat: thing in things | limitTo:6 | partition:3 -->
limitTo = max items to return
partition = how many arrays
.filter('partition', [ '$cacheFactory', function($cacheFactory) {
var arrayCache = $cacheFactory('partition');
var filter = function(arr, size) {
if (!arr) { return; }
var newArr = [];