irb
- load file into IRB
irb -r "./some_file.rb"
irb> load ".some_file.rb"
\n
\t
\"
module IsEven exposing (output) | |
import List | |
getFirstArg : List String -> String | |
getFirstArg list = | |
case List.head list of | |
Nothing -> | |
"0" | |
Just val -> |
let people = [ | |
{ name: 'Bob', age: 28, child: { name: 'Sally', age: 8, grade: 3 } }, | |
{ name: 'Sara', age: 46, child: { name: 'Lois', age: 14, grade: 9 } }, | |
{ name: 'Ann', age: 27, child: { name: 'George', age: 9, grade: 4 } }, | |
{ name: 'Dave', age: 52, child: { name: 'Hale', age: 17, grade: 11 } }, | |
]; | |
const add1 = (x) => x + 1; | |
const toFieldApplyFunc = (field, fn) => { | |
return (obj) => { |
var APP = APP || {}; | |
APP.deckURL = "https://gfx.tarot.com/images/site/decks/rider/full_size/"; // xx.jpg | |
APP.randCard = function () { return Math.floor((Math.random() * 77)) }; // 0 - 77 | |
APP.mkTarotImg = function (id, cardNum) { | |
var cardNum = cardNum || APP.randCard(); | |
var card = document.createElement("img"); | |
card.id = id; | |
card.className = "tarot"; | |
card.src = APP.deckURL + cardNum + ".jpg"; | |
card.width = 100; |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<h2><span id="countdown_clock"></span></h2> | |
<p>This is a countdown clock</p> |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<h2><span id="countdown_clock"></span></h2> | |
<p>This is a countdown clock</p> |
func error2(err error, c appengine.Context) bool {
if err != nil {
c.Errorf("%v", err.Error())
Get the specs for the model MBA. My version was the Mac Book Air 3.1 11". Noted the graphics card so I could load the proper video driver post-installation. | |
http://www.everymac.com/systems/apple/macbook-air/specs/macbook-air-core-2-duo-1.4-11-late-2010-specs.html | |
Ubuntu 12.10 (Quantal Quetzal) | |
http://releases.ubuntu.com/12.10/ | |
64-bit Mac (AMD64) desktop image | |
http://releases.ubuntu.com/12.10/ubuntu-12.10-desktop-amd64+mac.iso | |
Since my MBA doesn't have a floppy or cd-rom, I have to install it via USB-stick. I found several pages to install the ubuntu iso onto a usb-stick. |