# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module IsEven exposing (output) | |
import List | |
getFirstArg : List String -> String | |
getFirstArg list = | |
case List.head list of | |
Nothing -> | |
"0" | |
Just val -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
- [App Engine Go SDK][appengine-go-sdk]
- [App Engine Go manual][appengine-go-manual]
- [Go Specification][go-spec]
- [Go standard library docs][go-core-docs]
- Go's [error handling][thispltlife]. You can try figuring it out: there's a [blog post][errors-blog] and a [book section][errors-book]. Alternatively, you can give up and use two error-handling functions provided below.
func error2(err error, c appengine.Context) bool {
if err != nil {
c.Errorf("%v", err.Error())
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |