Checkout the blog post for the whole story.
Setup Bower and install components:
npm install -g bower
bower install
Before deploying to Heroku, switch to the multi buildpack:
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
Checkout the blog post for the whole story.
Setup Bower and install components:
npm install -g bower
bower install
Before deploying to Heroku, switch to the multi buildpack:
#!/bin/sh | |
# extend non-HiDPI external display on DP* above HiDPI internal display eDP* | |
# see also https://wiki.archlinux.org/index.php/HiDPI | |
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949 | |
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319 | |
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1` | |
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1` | |
ext_w=`xrandr | sed 's/^'"${EXT}"' [^0-9]* \([0-9]\+\)x.*$/\1/p;d'` |
How to install Ubuntu 14.04.1 LTS 64-bit on a MacBook Pro Retina 15" Mid 2014 (11,3)
Note: This document is specific to the FocusVision development environment, however it's mostly applicable elsewhere.
Mercurial branches are not "cheap". Unlike Git, to create or destroy a branch, you actually have to commit a changeset to the repository. Branches are great for…something…but whatever that is, we're not doing it.
Enter Bookmarks.
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
Rails' use of strict naming conventions means a lot of core code SHOULD be in the same format whoever writes it? It could be written by a friend, colleague or a computer... it shouldn't matter because the same Rails rules apply to everyone.
This means that Rails can actually do some tasks for you! It can actually build things and write code on your behalf...
Coming from another language like PHP, this can seem like magic.
#include <stdio.h> | |
#include <sys/io.h> | |
#define GMUX_PORT_SWITCH_DISPLAY 0x10 | |
#define GMUX_PORT_SWITCH_DDC 0x28 | |
#define GMUX_PORT_SWITCH_EXTERNAL 0x40 | |
#define GMUX_PORT_DISCRETE_POWER 0x50 | |
#define GMUX_PORT_VALUE 0xc2 | |
#define GMUX_PORT_READ 0xd0 | |
#define GMUX_PORT_WRITE 0xd4 |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\