Skip to content

Instantly share code, notes, and snippets.

;**
;* configuration
;*
craft_count := 30 ; how many items to be crafted
practice_mode := false
macro_keys := [ [5, 8] ] ; [ [macro key, duration in seconds], ... ]
start_hotkey = F10 ; key to start the script
stop_hotkey = F12 ; key to cancel & reload the script
exit_hotkey = F11 ; key to force exit the script
craft_menu_key = N ; key to open craft menu
@Jarvie8176
Jarvie8176 / foo.ts
Created June 1, 2019 23:15
denormalize nested json to key value pairs
import _ = require("lodash");
test("foo", () => {
const input = {
a: { c: { d: 1, e: 2 } },
f: { g: 3 }
};
console.log(parserRunner(input));
});

Model

[request_definition]
r = sub, obj, act

[policy_definition]
p = obj, act

[policy_effect]
git checkout <dest-branch>
git pull origin <dest-branch>
@Jarvie8176
Jarvie8176 / doc.md
Last active April 27, 2016 21:01
resolve merge conflicts in command line

squash commits in dev branch

git checkout -b origin/<dev-branch>
git rebase -i HEAD~<number-of-commits-in-dev-branch>
  • mark the first commit as "pick" and the others as "squash"