Interactive support and resistance line rendering on a chart. Illustrating setting start end end points and horizontal line at full width.
This file contains 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
#!/usr/bin/env bash | |
sudo apt-get update && \ | |
sudo sudo apt-get install -y git npm curl vim zsh build-essential unzip python-dev && \ | |
mkdir "${HOME}/.npm-packages" \ | |
\ | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \ | |
curl -sL https://cdn.rawgit.com/zwhitchcox/crouton-clipboard/ed2b0303/install.sh | sh && \ | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash && \ | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && \ |
This file contains 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
// Match the payload in the format of <category>:<userID>:<step> | |
// No way in heck a user would accidentally type this, and if a hacker figured out how to pull payloads out of my buttons or get at userID's, | |
// I'd have bigger issues to worry about. But ultimately, I'm checking everything serverside (this is part of a game, so the server has final word) so its hardly an issue | |
controller.hears('^planet:([a-zA-Z0-9.]{24}):cats', 'message_received', function(bot, message) { | |
var cats = { | |
attachment: { | |
type: 'template', | |
payload: { | |
template_type: 'generic', |
This file contains 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
sudo yum update -y &&\ | |
sudo yum install -y git zsh docker&&\ | |
sudo service docker start &&\ | |
sudo usermod -a -G docker ec2-user &&\ | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh &&\ | |
chsh -s $(which zsh) &&\ |
This file contains 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
/** | |
* Author: Julian Burr <https://github.com/julianburr> | |
* License: https://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* This script basically just runs through all source files and | |
* prints out a list of files and lines where it found the TODO | |
* keyword | |
* | |
* If you want to look for other keywords, just changed the | |
* searchRegEx to your needs :) |
This file contains 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
# list largest files in current dir by descending | |
du -ch -d 1 | sort -hr | |
# list files in a certain range | |
du -ch | grep '[0-5]G' | |
# common place to start | |
du -ch /home | grep '[0-9]G' |
This file contains 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
/** | |
* Author: Julian Burr <https://github.com/julianburr> | |
* License: https://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* This script basically just runs through all source files and | |
* prints out a list of files and lines where it found the TODO | |
* keyword | |
* | |
* If you want to look for other keywords, just changed the | |
* searchRegEx to your needs :) |