C-x C-c
End emacs sessionC-g
Partially quit entered command
C-v
Move forward one screenfulM-v
Move backward one screenfulC-l
Move the text around the cursor to the center of the screen. Also, it clears the screen and redisplay all the text
// ==UserScript== | |
// @name tagpro macros | |
// @namespace http://www.reddit.com/user/contact_lens_linux/ | |
// @description Help your team with quick chat macros. | |
// @include http://*.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://*.newcompte.fr:* | |
// @exclude http://*.koalabeast.com:3000* | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @author steppin, Watball |
import random | |
def compose(f, g): | |
return lambda x: f(g(x)) | |
class RandomFunctor: | |
def __init__(self, f): | |
self.value = f | |
def map(self, f): |
// from http://forwardjs.com/university/a-million-ways-to-fold-in-js | |
'use strict' | |
const first = (xs) => xs[0] | |
const rest = (xs) => xs.slice(1) | |
const concat = (xs1, xs2) => xs1.concat(xs2) | |
// recursion | |
const sum = (xs) => { |
$ git init | |
$ git add . | |
$ git commit -m "initial commit" | |
$ heroku create | |
$ git push heroku master | |
$ heroku open |
node_modules |
web: node bin/www |
hr | |
each post in posts | |
h4= post.title | |
span= post.date | |
p= post.text |
router.get('/', function(req, res) { | |
Post.find(function(err, posts) { | |
res.render('index', { | |
title: 'my Blog!', | |
posts: posts | |
}); | |
}); | |
}); |
router.post('/', function(req, res) { | |
if (!req.body.title || !req.body.text) { | |
return res.redirect('/'); | |
} | |
var post = new Post({ | |
title: req.body.title, | |
text: req.body.text, | |
date: (new Date()) | |
}); | |
post.save(function(err) { |