I have a two monitor setup, but I like my laptop screen turned off (via Display).
When disconnecting the VGA cable, the screen is blank. I put the following command into ~/hacks/turn_on_laptop_screen.sh.
xrandr --output eDP1 --mode 1366x768| #!/bin/bash | |
| mkdir foglayer | |
| cd foglayer | |
| cat << EOF > Gemfile | |
| source 'https://rubygems.org' | |
| gem 'fog-softlayer' | |
| EOF |
PubNub Evangelism Program Build your realtime apps & frameworks for free on PubNub's Global Realtime Network. Sound Good?
| Our startup (RivalIQ.com) is looking for a Seattle-based full-stack developer with strong front-end skills and 3+ years of experience. | |
| The person we're looking for is passionate about software, who relishes turning data into insight, and who is excited to work in a small, capable team where everyone has real impact. We highly value great engineering and teamwork (no egos please), and we use hire-by-audition to evaluate potential teammates. Our technology stack includes marionettejs/bootstrap/backbone/node/postgres/heroku. | |
| Most details are pretty standard: full time, cash + equity comp, flexible work locations (we mix office + home). | |
| Contact me if you are interested, or know someone who might be! (sethb@rivaliq.com) |
| // taken from http://thecodeplayer.com/walkthrough/cool-ascii-animation-using-an-image-sprite-canvas-and-javascript | |
| //some variables | |
| var r, g, b, gray; | |
| var character, line = ""; | |
| //sprite stuff | |
| var sprite = document.getElementById("sprite"); | |
| var W = sprite.width; | |
| var H = sprite.height; |
| // api/controllers/AuthController.js | |
| var passport = require('passport'); | |
| var AuthController = { | |
| login: function (req,res) | |
| { | |
| res.view(); | |
| }, |
| // api/controllers/TestController.js | |
| var TestController = { | |
| // since the policy will have run, we can now use req.form as "normal" | |
| formtest: function(req, res) | |
| { | |
| if (!req.form.isValid) | |
| { | |
| // Handle errors |
| // vim: ft=javascript: | |
| /*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */ | |
| /*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */ | |
| /* | |
| * A script to automate requesting data from an external url that outputs CSV data. | |
| * | |
| * Adapted from the Google Analytics Report Automation (magic) script. | |
| * @author nickski15@gmail.com (Nick Mihailovski) | |
| * @author ianmlewis@gmail.com (Ian Lewis) | |
| */ |
| sudo -i | |
| cd | |
| apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
| wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
| tar xzvf ImageMagick-6.8.9-1.tar.gz | |
| cd ImageMagick-6.8.9-1/ | |
| ./configure --prefix=/opt/imagemagick-6.8 && make | |
| checkinstall |
Add to .gitignore:
node_modules
public
Add to your app dependencies of package.json: