To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
month_seq <- seq(as.Date("2000-01-01"), as.Date("2000-12-31"), "month") | |
months <- factor(months(month_seq), levels = months(month_seq)) | |
months_abbr <- factor(months(month_seq, TRUE), levels = months(month_seq, TRUE)) | |
wday_seq <- seq(as.Date("2000-01-02"), as.Date("2000-01-08"), "day") | |
wdays <- factor(weekdays(wday_seq), levels = weekdays(wday_seq)) | |
wdays_abbr <- factor(weekdays(wday_seq, TRUE), levels = weekdays(wday_seq, TRUE)) | |
second <- function(x) as.POSIXlt(x)$sec | |
minute <- function(x) as.POSIXlt(x)$min |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
.leaflet-div-icon { | |
background: transparent; | |
border: none; | |
} | |
.leaflet-marker-icon .number{ | |
position: relative; | |
top: -37px; | |
font-size: 12px; | |
width: 25px; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
post.html.eco
used for displaying prev and next page links on your current page (static site friendly)posts.html.eco
used for displaying a content listing, that is split up onto multiple pages (requires dynamic site)#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# fetch_and_combine.py | |
# | |
""" | |
Scans CloudFront logs in an S3 bucket for any that are new. Combines log files | |
into a single local file per hour. If logs for multiple CloudFront | |
distributions are present, combines them all. |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) | |
type HttpConnection struct { |
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |
module.exports = | |
initialize: (sessionUserObject) -> | |
(req, res, next) -> | |
passport = @ | |
passport._key = 'passport' | |
passport._userProperty = 'user' | |
passport.serializeUser = (user, done) -> done null, user | |
passport.deserializeUser = (user, done) -> done null, user |