These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
/// | |
/// Factorial function in lambda calculus - implemented in JS | |
/// | |
//// Lambda calculus | |
// zero = λs.λz.z | |
// succ = λn.λs.λz.s (n s z) | |
// mult = λn.λm.λs.m (n s) | |
// pred = λn.λf.λx.n(λg.λh.h (g f))(λu.x)(λu.u) | |
// minus = λn.λm.m pred n |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
// clone this gist to a empty folder, the run: | |
// npm init (and follow steps) | |
// npm install express --save | |
// npm install swig --save | |
// node app.js and open http://localhost:3000 | |
function App() { | |
var express = require('express'); |
#!/bin/bash | |
# Creates a bootable ISO from CoreOS' PXE images. | |
# Also adds a run script to the OEM partition and converts the ISO so it can boot from USB media. | |
# Based heavily off https://github.com/nyarla/coreos-live-iso - Thanks Naoki! | |
set -e | |
# Default configurations | |
SYSLINUX_VERSION="6.02" |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
var mongoose = require('./index') | |
, TempSchema = new mongoose.Schema({ | |
salutation: {type: String, enum: ['Mr.', 'Mrs.', 'Ms.']} | |
}); | |
var Temp = mongoose.model('Temp', TempSchema); | |
console.log(Temp.schema.path('salutation').enumValues); | |
var temp = new Temp(); | |
console.log(temp.schema.path('salutation').enumValues); |