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
{ | |
"Version":"2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowUserToSeeBucketListInTheConsole", | |
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"], | |
"Effect": "Allow", | |
"Resource": ["arn:aws:s3:::*"] | |
}, | |
{ |
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
const mapStateToProps = ({alerts}) => ({ alerts }); |
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
~/projects rbenv use 2.3.0 | |
rbenv: no such command `use' | |
✘ ~/projects rbenv local 2.3.0 | |
~/projects ruby -v | |
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15] | |
~/projects gem list thin | |
*** LOCAL GEMS *** | |
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
void Game::initGLFW() { | |
glfwSetErrorCallback(glfwErrorCallback); | |
LOG(DEBUG) << "Using GLFW: " << glfwGetVersionString(); | |
glfwInitialized = glfwInit(); | |
if (!glfwInitialized) { | |
throw std::runtime_error("Unable to initialize GLFW"); | |
} | |
LOG(DEBUG) << "Initialized GLFW"; |
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
# vim: ft=zsh: | |
# PATH to override system coreutils with gnu | |
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
# Use vim keybinds | |
bindkey -v | |
# Source zim | |
if [[ -s ${ZDOTDIR:-${HOME}}/zim/init.zsh ]]; then | |
source ${ZDOTDIR:-${HOME}}/zim/init.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
diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme | |
index e034cf4..53446c2 100644 | |
--- a/modules/prompt/themes/eriner.zsh-theme | |
+++ b/modules/prompt/themes/eriner.zsh-theme | |
@@ -1,3 +1,4 @@ | |
+# vim: ft=zsh: | |
# Eriner's Theme - fork of agnoster | |
# A Powerline-inspired theme for ZSH | |
# | |
@@ -95,9 +96,16 @@ prompt_git() { |
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
require 'fileutils' | |
FileUtils.mv __FILE__, 'foo.rb' |
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
your_parsed_json_hash[:test].map { |item| item.split("=") } |
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
str = "foo" | |
str[0] = "p" | |
puts str # => poo |
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
all_pics = get_all_pictures() | |
subset_a = all_pics.find_all(&:foo?) | |
subset_b = all_pics - subset_a |