Skip to content

Instantly share code, notes, and snippets.

@cmdoptesc
cmdoptesc / change_screenshots_path.md
Created February 1, 2018 15:06
Change macOS / OSX screenshots location

defaults write com.apple.screencapture location ~/Desktop/screenshots

killall SystemUIServer

@cmdoptesc
cmdoptesc / olo_widget.css
Last active December 21, 2017 20:55
OLO Widget
.up-olo-opener {
cursor: pointer;
}
.up-olo-container, .up-olo-overlay {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;

Keybase proof

I hereby claim:

  • I am cmdoptesc on github.
  • I am cmdoptesc (https://keybase.io/cmdoptesc) on keybase.
  • I have a public key whose fingerprint is 59DA 9BAB 126F 9AFC BCFE 6BA8 1918 CAA8 286A 134E

To claim this, I am signing this object:

@cmdoptesc
cmdoptesc / hn_search_with_sort.js
Last active April 12, 2016 10:44 — forked from kristopolous/hn_seach.js
HackerNews "Who is Hiring" Search w/ Date Sorting
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';
@cmdoptesc
cmdoptesc / Readme.md
Last active March 12, 2016 09:52
muniNow Quick Demo

muniNow Demo

muniNow aims to be a nicer NextMuni by giving users the ability to see when the soonest Muni bus is arriving at a glance.

Live demo on Bl.ocks.org

Powered by D3, built at Catalyst/Hack Reactor as a personal project. And many thanks to Mike and Adnan.

al lin, aug. 2013

@cmdoptesc
cmdoptesc / quicksort.js
Created September 9, 2013 06:49
QuickSort In Place (in JavaScript)
// 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;
}
@cmdoptesc
cmdoptesc / color-palettes
Created August 8, 2013 07:08
colors schemes combinations
http://design-seeds.com/
http://www.colourlovers.com/palettes/most-loved/past-month/
@cmdoptesc
cmdoptesc / get-selected-text
Last active December 20, 2015 13:19
getSelectedText
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;
};