#VSCode Quick TS setup:
on .vscode/tasks.json root folder:
// create js from ts file
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "tsc",
| ### WHAT | |
| ### HOW TO TEST | |
| ``` | |
| ``` | |
| ### WHAT TO CHECK |
| (function firstPaintRemote() { | |
| // form rawGit proxy url | |
| var ghUrl = 'bahmutov/code-snippets/master/first-paint.js'; | |
| var rawUrl = 'https://rawgit.com/' + ghUrl; | |
| // download and run the script | |
| var head = document.getElementsByTagName('head')[0]; | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = rawUrl; | |
| head.appendChild(script); |
| alias gbpurge='git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | grep -v "staging" | xargs -n 1 git branch -d' | |
| alias gbprune='git remote prune origin' |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Seti_Mod</string> | |
| <key>settings</key> | |
| <array> | |
| <!-- ==================================== | |
| General |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
#VSCode Quick TS setup:
on .vscode/tasks.json root folder:
// create js from ts file
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "tsc",
| package main | |
| import ( | |
| "fmt" | |
| "bufio" | |
| "os" | |
| ) | |
| func main() { | |
| reader := bufio.NewReader(os.Stdin) |
| import time | |
| import resource | |
| from collections import deque | |
| # Global Constants | |
| DIMENSIONS = 3 | |
| DIRECTIONS = {"U": -1, "D": 1, "L": -1, "R": 1} | |
| UPPER_BOUND = 0 | |
| LEFT_BOUND = 0 | |
| DOWN_BOUND = DIMENSIONS - 1 | |
| RIGHT_BOUND = DIMENSIONS - 1 |
| // Get class name from object: | |
| new String(target.class()).concat() |