- 編輯時請以四口之家為準,約三個月的存量。實際使用時請列印出來並標註有效日期。
- 數量先抓一下,再來驗證。
- 白米 (2kg 真空包) * 10包
- 每 125g 約二碗飯
((lambda (x) x) "hello") |
function printString (str) { | |
setTimeout( | |
console.log, | |
Math.floor(Math.random() * 100) + 1, | |
str | |
) | |
} | |
function printAll () { | |
printString('A') |
const fact0 = t => n => | |
(n === 0) ? | |
1 : | |
n * t(n - 1) | |
const fib0 = t => n => | |
(n === 0) ? | |
1 : | |
(n === 1) ? |
async function main () { | |
async function asyncThrows (id) { | |
return new Promise((res, rej) => { | |
console.log(`ASYNC ERROR ${id}`) | |
throw `ASYNC ERROR ${id}` | |
}) | |
} | |
/* sequentially */ | |
// try { |
const trace = require('./javascript-trace-prototype-chain') | |
class Animal {} | |
class Dog extends Animal {} | |
class Bichon extends Dog {} | |
class Foo extends Bichon {} | |
const foo = new Foo() | |
console.log(trace(foo)) | |
console.log(trace('abc')) |
/* | |
* https://medium.freecodecamp.org/requiring-modules-in-node-js-everything-you-need-to-know-e7fbd119be8 | |
* | |
*/ | |
function(exports, require, module, __filename, __dirname) { | |
// let exports = module.exports; | |
// Your Code... | |
return module.exports; | |
} |
const R = require('ramda') | |
const { equals, T, cond, always, range } = R | |
/* dispatch by ramda */ | |
function yaff (n) { | |
return cond([ | |
[equals(0), always(1)], | |
[equals(1), always(1)], | |
[T, x => yaff(x - 1) + yaff(x - 2)], | |
])(n) |
" lambda λ | |
imap <C-j> <C-k>l* | |
" right arrow → | |
imap <C-l> <C-k>-> | |
" left arrow ← | |
imap <C-h> <C-k><- | |
" compose ∘ |
#!/bin/bash | |
user= | |
pass="" | |
host_port=127.0.0.1:8332 | |
echo password... | |
read -s pass | |
while true; do |