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
$ git init | |
$ git add . | |
$ git commit -m "initial commit" | |
$ heroku create | |
$ git push heroku master | |
$ heroku open |
// 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) => { |
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): |
// ==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 |
'use strict'; | |
let db = require('machdb')('mongo url here'); | |
const faker = require('faker'); | |
const userUtils = require('./dev-tools/users-utils.js'); | |
const Connection = userUtils.Connection; | |
const User = userUtils.User; |
const steno = require('steno') | |
const fs = require('graceful-fs') | |
let temp = {} | |
function write(key, value) { | |
temp[key] = value; | |
fs.readFile('test.json', 'utf-8', (err, data) => { | |
console.log(data) | |
if (!data) data = '{}'; |
import React, {Component} from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
const Comp = g => | |
({ | |
fold: g, | |
contramap: f => | |
Comp(x => g(f(x))), | |
concat: other => |
body { | |
margin: 0 auto; | |
max-width: 50em; | |
font-family: "Helvetica", "Arial", sans-serif; | |
line-height: 1.5; | |
padding: 4em 1em; | |
} | |
h2 { | |
margin-top: 1em; |
const Observable = subscribe => | |
({ | |
subscribe, | |
map: f => | |
Observable(observer => | |
subscribe({next: x => observer.next(f(x))}) | |
), | |
filter: f => | |
Observable(observer => | |
subscribe({next: x => f(x) ? observer.next(x) : null}) |