defaults write com.apple.screencapture location ~/Desktop/screenshots
killall SystemUIServer
defaults write com.apple.screencapture location ~/Desktop/screenshots
killall SystemUIServer
.up-olo-opener { | |
cursor: pointer; | |
} | |
.up-olo-container, .up-olo-overlay { | |
position: fixed; | |
left: 0; | |
top: 0; | |
width: 100%; | |
height: 100%; |
I hereby claim:
To claim this, I am signing this object:
function query() { | |
var SORT_RECENT_FIRST = true; | |
var SEARCH_REPLIES = true; | |
var query_list = Array.prototype.slice.call(arguments); | |
var commentTable = document.querySelector('.comment-tree'); | |
var commentNodes = Array.prototype.slice.call(commentTable.querySelectorAll('.athing')); | |
var COMMENT_TEXT_SELECTOR = '.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88'; |
muniNow aims to be a nicer NextMuni by giving users the ability to see when the soonest Muni bus is arriving at a glance.
Powered by D3, built at Catalyst/Hack Reactor as a personal project. And many thanks to Mike and Adnan.
al lin, aug. 2013
// quicksort using new arrays is easy, but surprisingly, there weren't too many examples | |
// in javascript of in-place quick sort... | |
// the outer function is simply just a wrapper that copies the original array; | |
// you can just use lines 12-37 if preserving the original array isn't important | |
function quickSortInPlace(unsortedArray) { | |
var unsorted = unsortedArray.slice(); // copy the original array |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.graticule { | |
fill: none; | |
stroke: #777; | |
stroke-opacity: .5; | |
stroke-width: .5px; | |
} |
http://www.jeromecukier.net/blog/2013/03/05/d3-tutorial-at-strata-redux/
transition parameter inheritance d3/d3#400 (comment)
DRYing up D3 http://urbanairship.com/blog/2013/07/11/drying-up-d3
http://design-seeds.com/ | |
http://www.colourlovers.com/palettes/most-loved/past-month/ |
var getSelectedText = function() { | |
var txt = ""; | |
if (window.getSelection) { | |
txt = window.getSelection().toString(); | |
} else if (document.selection && document.selection.type != "Control") { | |
txt = document.selection.createRange().text; | |
} | |
return txt; | |
}; |