This script demonstrates challenges when inlining async function calls like setTimeout
as well as a solution.
inspect-code
does this.
Things to be solved:
setTimeout
needs to return a timer id.clearTimeout
This script demonstrates challenges when inlining async function calls like setTimeout
as well as a solution.
inspect-code
does this.
Things to be solved:
setTimeout
needs to return a timer id.clearTimeout
/** Config part */ | |
var FIXED_SIZE = 600; | |
var FIXED_MEASURE = 'Height'; | |
/** Name maping */ | |
var fixedName = FIXED_MEASURE; | |
var resName = fixedName === 'Height' ? 'Width' : 'Height'; | |
var FIXED_NAME = fixedName.toUpperCase(); | |
var RES_NAME = resName.toUpperCase(); |
# Build environment. I use vagrant ubuntu/trusty64 | |
sudo apt-get install build-essential git-core | |
sudo git clone https://github.com/raspberrypi/tools.git /opt/tools | |
export CCPREFIX="/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-" | |
# Get ffmpeg and x264 repos | |
git clone git://source.ffmpeg.org/ffmpeg.git |
# pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ | |
# expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu | |
# tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks | |
# OSX terminal | |
brew install qemu | |
# kernel-qemu is a linux kernel compiled with ARM1176 support. | |
# learn more here: http://xecdesign.com/compiling-a-kernel/ | |
curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu | |
curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
static CGColorRef CGColorCreateWithCSSColor( NSString * string ) | |
{ | |
union { | |
struct { | |
#if LITTLE_ENDIAN | |
uint8 alpha ; | |
uint8 blue ; | |
uint8 green ; | |
uint8 red ; | |
#else |