Skip to content

Instantly share code, notes, and snippets.

Verifying I am +leftiefriele on my passcard. https://onename.com/leftiefriele
@leftieFriele
leftieFriele / gist:38143fc3ee5705f9b115
Created May 30, 2015 15:53
Getting started with NodeSchool localization

Overview

Modules involved:

  • nodeschool.github.if
  • workshopper
  • And all exercises..

NodeSchool website

Components

  • Html files act as templates

Keybase proof

I hereby claim:

  • I am leftiefriele on github.
  • I am leftiefriele (https://keybase.io/leftiefriele) on keybase.
  • I have a public key whose fingerprint is 2209 95E4 FE8C 2119 603E 62CD 4D80 43D6 4834 9DEE

To claim this, I am signing this object:

This is just a small write up on how to make npm work while being offline.

Offline with your cache

Use the npm-offline module to setup a proxy with your local cache.

Easy switching between npmrc configs

npmrcs

@leftieFriele
leftieFriele / tlsconfighapiwithconvict
Created July 1, 2014 20:25
Configuring TLS for Hapi using Convict
/// This is just a simple sample of how you can easily use Convict for configuration of server options for TLS in a node web app
// config.js
var convict = require('convict');
var conf = convict({
env: {
doc: 'Application enviroments',
format: ['production', 'development'],
default: 'development',
env: 'NODE_ENV'
@leftieFriele
leftieFriele / gulplearnings
Last active August 29, 2015 14:01
My learnings from Gulp
===============================
Useful modules
===============================
* gulp-debug (https://www.npmjs.org/package/gulp-debug) - get a better overview of what's going on with files
===============================
Debugging
===============================
This one dumps errors with stack trace. Just drop this in your file somewhere and you'll get all the error from tasks running, also from other modules which aren't gulp plugins.
@leftieFriele
leftieFriele / process
Last active August 29, 2015 13:56
Min Jævla Prosess - MJP
1. identify problem / oportunity / issue
2. scetch / dream / envision or just guess how the end result would look like as a picture / diagram / poster / video / what-ever-visual thing
3. start bridging the gap between now and what you made in step 2
@leftieFriele
leftieFriele / jsunittestshowdown
Created August 26, 2012 18:17
JavaScript unit test showdown
Contestants:
===============================================
Jasmine - http://pivotal.github.com/jasmine/
BusterJS - busterjs.org
jsTestDriver - http://code.google.com/p/js-test-driver/ (https://plus.google.com/100948987862442440080/posts)
Mocha + Chai - http://visionmedia.github.com/mocha/ and http://chaijs.com/
QUnit - http://qunitjs.com/
CasperJS - http://casperjs.org/
Things to take into the evaluation:
@leftieFriele
leftieFriele / dabblet.css
Created December 17, 2011 11:56
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@leftieFriele
leftieFriele / 1-tablemarkup.html
Created August 1, 2011 13:54 — forked from paulirish/1-tablemarkup.html
whitespace use for html/css readability
<!-- formatting fun #1: tables! -->
<!-- use whitespace to mimic the layout you want. leave off optional end tags for readability -->
<table>
<caption>Selector engines, parse direction</caption>
<thead>
<tr><th>Left to right <th>Right to left
<tbody>
<tr><td>Mootools <td>Sizzle