Skip to content

Instantly share code, notes, and snippets.

View lehtu's full-sized avatar
:octocat:

Juho Lehtinen lehtu

:octocat:
View GitHub Profile
@milon
milon / LEMP SERVER on Ubuntu 14.04.md
Created May 25, 2016 05:59
Installing LEMP Server on Ubuntu 14.04

LEMP Server on Ubuntu 14.04

For detail look here

Install nginx

sudo apt-get install nginx

then get IP address and try it on browser

@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@ToddSmithSalter
ToddSmithSalter / gulpfile.js
Created June 18, 2014 23:27
Base gulpfile.js as of June 18, 2014
'use strict';
var
chalk = require('chalk'),
gulp = require('gulp'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
deporder = require('gulp-deporder'),
gulpif = require('gulp-if'),
@possibilities
possibilities / meteor-async.md
Created August 23, 2012 22:53
Meteor Async Guide

From Meteor's documentation:

In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.

This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.

Basic async

Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase: