- RaidBots - Allows you to sim your character to find the best gear combinations, generate stat weights, etc. (requires Simulationcraft addon)
- Warcraft Logs - Combat analysis for raid encounters. Gives your percentile ranking relative to the other players of your class and iLvL around the world. Someone in the guild might already be recording these but if not (or if you just want to upload them yourself) the getting started guide is helpful.
- WoWAnalyzer - If you or the guild is recording logs you can plug a WL report into this app and get an analysis of where you're screwing up. Example.
- Twitch Desktop App - Best tool for installing / updating your addons. After installing go to Mods -> World of Warcraft.
- [Icy Veins](https://www.icy-ve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
# This is the decorator - it's essentially a function that takes in a function | |
# as a parameter and returns a modified version of it | |
def retry(func, max_attempts=4, initial_delay=1): | |
def wrapper(*args, **kwargs): | |
delay = initial_delay | |
attempt = 1 | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Another idea, you could avoid any "custom language" / parsing / regex stuff by just referencing | |
# variables by ID an having them provide valid python strings that have format placeholders | |
# documentation on the string.format function: https://www.geeksforgeeks.org/python-format-function/ | |
json = { | |
'variables': { | |
'foo': 'asdf', | |
'bar': 'fdsa' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh b1 | |
Last login: Thu Jan 31 15:08:19 2019 from 10.82.35.207 | |
[ops.b1-prv][swood@rampart1-app ~]$ mkdir -p foo/bar/codebase | |
[ops.b1-prv][swood@rampart1-app ~]$ touch foo/bar/codebase/a.c | |
[ops.b1-prv][swood@rampart1-app ~]$ touch foo/bar/codebase/b.c | |
[ops.b1-prv][swood@rampart1-app ~]$ cd foo/bar/codebase/ | |
[ops.b1-prv][swood@rampart1-app codebase]$ pwd | |
/mnt/home/swood/foo/bar/codebase | |
[ops.b1-prv][swood@rampart1-app codebase]$ logout | |
Shared connection to rampart.b1-prv.qops.net closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh b1 | |
Last login: Thu Jan 31 15:02:56 2019 from 10.82.35.207 | |
[ops.b1-prv][swood@rampart1-app ~]$ touch test.txt | |
[ops.b1-prv][swood@rampart1-app ~]$ logout | |
Shared connection to rampart.b1-prv.qops.net closed. | |
~/workspace | |
$ scp b1:test.txt . | |
test.txt 100% 100% 0 0.0KB/s 00:00 | |
$ ls | |
test.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function all(promises) { | |
return new Promise((resolve, reject) => { | |
if (!isIterable(promises)) { | |
reject(new TypeError(`${promises} is not iterable`)) | |
return | |
} | |
const promisesArray = [...promises] | |
if (promisesArray.length === 0) { | |
resolve([]) | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chunkAsync = (arr, callback, chunkSize = 1) => { | |
const results = [] | |
const chunks = chunkArray(arr, chunkSize) | |
const work = chunks.reduce((previousPromise, chunk) => { | |
return previousPromise.finally(() => { | |
results.push(...chunk.map(callback)) | |
return Promise.all(results) | |
}) | |
}, Promise.resolve()) | |
return work.finally(() => results) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Anything wrong with doing this? | |
class ExampleComponent extends Component { | |
defaultState = { | |
isLoading: false, | |
fileUploaded: false, | |
currentFile: null, | |
pendingImports: null, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Definition for singly-linked list. | |
* function ListNode(val) { | |
* this.val = val; | |
* this.next = null; | |
* } | |
*/ | |
/** | |
* @param {ListNode} l1 | |
* @param {ListNode} l2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*/ | |
.bs fieldset { | |
padding: 0; | |
margin: 0; | |
border: 0; | |
min-width: 0; } |