This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYTHON=python2 | |
npm install module-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
, http = require('http') | |
, path = require('path'); | |
require('systemd'); | |
var app = express(); | |
// configuration and routes go here... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint node: true */ | |
"use strict"; | |
var express = require("express"), | |
consolidate = require("consolidate"), | |
Handlebars = require("handlebars"), | |
fs = require("fs"); | |
var app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas width=220 height=150></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the user to _users: | |
$ curl -X POST 'http://admin:[email protected]:5984/_users/' -H 'Content-Type: application/json' -d @user.json | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache CouchDB 1.0.2 (LogLevel=debug) is starting. | |
Configuration Settings ["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]: | |
[async_mailer] port="9000" | |
[attachments] compressible_types="text/*, application/javascript, application/json, application/xml" | |
[attachments] compression_level="8" | |
[couch_httpd_auth] auth_cache_size="50" | |
[couch_httpd_auth] authentication_db="_users" | |
[couch_httpd_auth] authentication_redirect="/_utils/session.html" | |
[couch_httpd_auth] require_valid_user="false" | |
[couch_httpd_auth] secret="0c0cd567d2672d625bc8f493c9b2b354" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sinatra couldn't load my fonts once I updated to the latest version (1.1.0). | |
# The solution was to specify the mime types for those fonts. | |
## mime types for fonts | |
mime_type '.woff', "application/x-woff" | |
mime_type '.ttf', "application/x-font-ttf" | |
mime_type '.eot', "application/vnd.ms-fontobject" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sass (SCSS) version of the Simpler CSS Grid system | |
// http://www.webdesignerwall.com/tutorials/the-simpler-css-grid/ | |
$grid-width: 978px; | |
$column-width: 54px; | |
$column-gutter: 30px; | |
.grid-col { | |
float: left; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: HTML (version 5) | |
" Maintainer: Rodrigo Machado <[email protected]> | |
" URL: http://rm.blog.br/vim/syntax/html.vim | |
" Last Change: 2009 Aug 19 | |
" License: Public domain | |
" (but let me know if you liked it :) ) | |
" | |
" Note: This file just adds the new tags from HTML 5 | |
" and don't replace default html.vim syntax file |