get started

Overflow error

# long text long text long text long text long text long text
r2 -d
  • 123123123123123123123123123123123123123123123123123
  • 789 print('hello world')safsdfasfasdfsadfasdfdsaf

Text out side code block

#set breakpoint at main function
break *main

examine win function
x win

print win fucntion
f win

Sheets 3 columns

Purpose Movement Sets x Reps
Pull: power Bent over / Pendlay rows 3 x 3-5
Pull: assistance Weighted Pull ups 2 x 6-10
Pull: auxiliary Rack chins 2 x 6-10
Press: power Flat dumbbell presses 3 x 3-5
Press: assistance Weighted dips 2 x 6-10

Divider

the first line
the second line

hexo commandhexo
hexo commandhexo server

  • divider for ul
  • divider for ul

Sheets 2 columns

Purpose Movement
Pull: power Bent over / Pendlay rows
Pull: assistance Weighted Pull ups
Pull: auxiliary Rack chins
Press: power Flat dumbbell presses

title: JavaScript shortcuts
category: JavaScript
layout: 2017/sheet


Shortcuts

Examples

n = +'4096'    // n === 4096
s = '' + 200   // s === '200'
now = +new Date()
isPublished = !!post.publishedAt

Shortcuts

What Lazy mode
String to number +str
Math floor `num
Number to string '' + num
Date to UNIX timestamp +new Date()
Any to boolean !!value
Check array contents if (~arr.indexOf(v))

.includes is ES6-only, otherwise use .indexOf(val) !== -1 if you don’t polyfill.

debug

Breakpoint

#set breakpoint
db <address>

Reference: link

Instruction flow

#run program
dc
# step into [instructions]
s
#step over [instructions]
shift+s

Help

#To get help,append ? to the end of any command
?
#auto analysis functions
aaa