re: https://twitter.com/apiblueprint/status/374456335846612992
application/json;charset=utf-8
application/json; charset=utf-8
application/json; charset="utf-8"
application/json // since JSON's default unicode charset is UTF-8
let elementsFromPoint = function(x, y) { | |
let items = []; | |
let element; | |
do { | |
element = document.elementFromPoint(x, y); | |
if (!element || element === (items[0] || {}).element) { | |
break; | |
} | |
items.unshift({ |
set +x | |
# Add this as the 1st build Exec shell | |
# Only for situations where you have 1 and only 1 executor per machine | |
# And you don't care about processes being left running after the job run ends | |
# Look for processes that have a BUILD_ID env var | |
# that is NOT the same as the current job's BUILD_ID | |
# nor same as dontKillMe | |
echo "Killing orphan spawned processes..." |
#!/usr/bin/env bash | |
make $@ 2> >(grep -v "warning: \(overriding\|ignoring\)" >&2) |
Traffic lights should be removed because they allow people to cross red lights. | |
Hospitals should all shut down because treatments there can have harmful effects when done incorrectly. | |
Companies should stop selling food because it allows people to eat too much and could cause medical problems in the long run. | |
Tools should be banned because they could be used maliciously. | |
Stores should all close because it would allow the possibility of shoplifting. |
class A | |
@temp: 'A' | |
constructor: () -> | |
console.log A.temp | |
class B extends A | |
@temp: 'B' | |
constructor: () -> | |
super | |
console.log B.temp |
#!/usr/bin/env bash | |
# Ask for the administrator password upfront | |
sudo -v | |
# Require password immediately after sleep or screen saver begins | |
defaults write com.apple.screensaver askForPassword -int 1 | |
defaults write com.apple.screensaver askForPasswordDelay -int 0 |
# After seeing that Mac AppStore has all these timers (both dumb and "smart") that each cost 3 USD (for what?!), | |
# I think this will do for 0 USD and 5 minutes. | |
# Works wonders as `timer 5 fuck off` :) | |
[[ "`uname`" == 'Linux' ]] && alias say="espeak" | |
function timer() { | |
minutes=${1:-1} | |
steep=$(($minutes*60)) | |
wakeup=${@:2} | |
wakeup=${wakeup:-"time's up"} |
re: https://twitter.com/apiblueprint/status/374456335846612992
application/json;charset=utf-8
application/json; charset=utf-8
application/json; charset="utf-8"
application/json // since JSON's default unicode charset is UTF-8
By no means do I want to sound assertive. I lack a lot of knowledge in the area, so please slap me and set me straight, teach me a thing or two. The only thing that I standby is that it is stupid to explain syntax, to re-invent syntax, to argue about syntax, to have a liberal syntax, etc. Whatever does not matter (i.e. produce added value) should be standardized IMO. Eliminate mundane topics from the discussion to elevate the quality level. There are better things to do. That said readability, performance, simplicity, portability, ... still matter. A lot, I'd say.