Skip to content

Instantly share code, notes, and snippets.

@briandigital
briandigital / gist:27e39fe2e718e1815147
Last active August 29, 2015 14:01
The Best iOS Weather apps. Any why.

Top 3 daily driver weather apps:

Weather Underground

Weather Underground Downloads for multiple platforms

Free, Universal on iOS. WU subscribers have ads removed ($10/ur or connect your weather station and get it for free)

"If I had to have only one weather app", it would have to be this one. Part of that is more heavily weighted because I operate a weather station at my house that updates to WU every 3 seconds, and this app allows me to keep watch on it. But beyond that, I've found this app, while not the prettiest weather app, has the best overall utility. Excellent radar, excellent written forecasts. They've recently added nice graphs to show forecasted trends from the next few hours to ten days out. A big deal here is that they don't rely upon the National Weather Service forecasts. Those forecasts don't translate to regular people very well because they cover what can happen within a large reporting area. So "30% chance of rain" is true if it h

@jdunck
jdunck / gist:9414127
Created March 7, 2014 15:54
Find gendered language in code
find . -not \( -path '*node_module*' -o -path '*.git*' -o -path '*jasmine*' -o -path '*assets*' -o -type d \) | xargs grep -in -E '(\bhe\b)|(\bhis\b)|(\bher\b)|(\b\she\b)'
@Lucien
Lucien / track-to-text.applescript
Last active January 27, 2017 22:58 — forked from poritsky/track-to-text.applescript
Get current stream title if available, otherwise show song's current artist - name
# Get current song, album and artist from iTunes.
#
# Intended for use with Smile Software's TextExpander:
# http://www.smilesoftware.com/TextExpander/index.html
#
# Set up as a snippet to turn current track into text. A nice way to spin your wheels while writing/coding/contemplating the shape of the universe.
tell application "iTunes"
set current_song to the name of current track
set current_artist to the artist of current track
@marcedwards
marcedwards / high-dpi-media.css
Last active November 19, 2023 12:56
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
@garann
garann / gist:3353532
Created August 14, 2012 22:23
Crowdsourced career mentorship for female developers

I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!

Also: there is a wealth of info online and elsewhere dating back to the first time it occurred to our species to exchange labor for currency on these topics in general. What I hope we can provide here is our take as individuals. What we would say to someone if we were sitting across from her acting as a mentor. I don't think we should worry about being objectively "right", or about duplicating topics. I add this bit of anti-editorializing in hopes that women will contribute without feeling pressured to be experts, which I worry might prevent them from doing so. TY. :)

Applying for jobs

@nrrrdcore
nrrrdcore / inset_input.css
Created August 9, 2012 23:35
The Perfect Inset Input CSS
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
@pquimo
pquimo / gist:2589890
Last active February 27, 2018 23:26
kinesis keyboard config

net result: http://www.keyboard-layout-editor.com/#/layouts/a3e0e4ed3ba8062b1cfcf454436477f2

the red keys are ones I never press, the orange ones rarely press enable key remapping by pressing Progrm + F12, then sequences of keys: press they key you want it to be first, then the key you will press to get that

general setting

  • reset everything: Progrm + Shift + F2
  • turn off key clicks: Progrm + backslash (right side)

bare minimum needed even with Karabiner full remap

@kplawver
kplawver / paginate_array.js
Created October 11, 2011 13:23
I needed to page through results in an array and couldn't find any simple pagination functions through the googles, so I wrote this. I hope it's useful!
function paginateArray(arr,page_num,per_page) {
var i,r=[];
if (arr.length < 1) {
return r;
}
if (per_page == undefined || per_page == null) {
per_page = 10;
}