Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
#!/usr/bin/ruby | |
# | |
# This script fixes /usr/local only. | |
# | |
# 6th January 2010: | |
# Modified the script to just fix, rather than install. - rpavlik | |
# | |
# 30th March 2010: | |
# Added a check to make sure user is in the staff group. This was a problem | |
# for me, and I think it was due to me migrating my account over several |
<blockquote cite="https://twitter.com/aaronbassett/status/84037182196678658"> | |
<p>I had ice-cream tonight. It was awesome.</p> | |
<footer itemscope itemtype="http://schema.org/Person"> | |
— <a href="https://twitter.com/aaronbassett" itemprop="url"><span itemprop="name">Aaron Bassett</span></a> | |
on <cite><a href="https://twitter.com/aaronbassett/status/84037182196678658">Twitter</a></cite> | |
</footer> | |
</blockquote> |
{ | |
"Version": "2008-10-17", | |
"Id": "b2cc31d0-cc91-4285-a658-473099d2c867", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
# Sublime Text 3 - Useful Shortcuts | |
*Tested in Mac OS X: super == command* | |
Open/Goto | |
_________ | |
- super+t: go to file | |
- super+ctrl+p: go to project | |
- super+r: go to methods | |
- super+shift+p: command prompt |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
# ghost | |
# description "An Upstart task to make sure that my Ghost server is always running" | |
# author "@allenhurff" | |
start on startup | |
script | |
cd /var/www/ghost/ | |
npm start --production |
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
import tweepy | |
import csv | |
import pandas as pd | |
####input your credentials here | |
consumer_key = '' | |
consumer_secret = '' | |
access_token = '' | |
access_token_secret = '' | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
#!/bin/bash | |
# To install: | |
# add to ~/Scripts/ | |
# add "alias brewup='~/Scripts/brewup.sh'" to ~/.bash_profile | |
brew update -a; brew upgrade -a; brew prune; brew cleanup; brew cu -a -y; brew cask cleanup; brew doctor; |