A complete gdb to lldb command map.
- Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
- p - Print primitive type
function run(fn) { | |
var pointer = fn(); | |
var next = function(result) { | |
if (result.value.then && typeof result.value.then === 'function') { | |
result.value.then(function(data) { | |
var out = pointer.next(data); | |
if (!out.done) next(out); | |
}); | |
} else { | |
var out = pointer.next(result.value); |
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
) | |
type ( | |
Map map[string]interface{} | |
) |
package main | |
import ( | |
"fmt" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
) | |
func main() { |
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
module FizzBuzz | |
extend self | |
def run(n) | |
if n % 3 == 0 && n % 5 == 0 | |
return "FizzBuzz" | |
elsif n % 3 == 0 | |
return "Fizz" | |
elsif n % 5 == 0 | |
return "Buzz" |
[merge] | |
tool = vimdiff | |
[mergetool] | |
prompt = true | |
[mergetool "vimdiff"] | |
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' | |
[difftool] | |
prompt = false | |
[diff] | |
tool = vimdiff |
let ___expect_finish_timer = null; | |
const expect = function(input) { | |
if (___expect_finish_timer) { | |
clearTimeout(___expect_finish_timer); | |
} | |
___expect_finish_timer = setTimeout(() => { | |
console.log('\n\x1b[32m✓ All tests passed!\x1b[0m\n'); | |
}, 200); |
package colors | |
import ( | |
"fmt" | |
"regexp" | |
) | |
var ( | |
TERM_STYLE = []string{ | |
// LIGHT |
I hereby claim:
To claim this, I am signing this object: