Skip to content

Instantly share code, notes, and snippets.

View jlindsey's full-sized avatar
🐢

Josh Lindsey jlindsey

🐢
View GitHub Profile
{
"Version":"2012-10-17",
"Statement": [
{
"Sid": "AllowUserToSeeBucketListInTheConsole",
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"]
},
{
const mapStateToProps = ({alerts}) => ({ alerts });
~/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 ***
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";
@jlindsey
jlindsey / .zshrc
Last active December 29, 2015 19:43
# 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
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() {
require 'fileutils'
FileUtils.mv __FILE__, 'foo.rb'
your_parsed_json_hash[:test].map { |item| item.split("=") }
str = "foo"
str[0] = "p"
puts str # => poo
all_pics = get_all_pictures()
subset_a = all_pics.find_all(&:foo?)
subset_b = all_pics - subset_a