___ ___ ____ __ __ ______ __ __ _____ _____
( ( ) ) ( ) ) ) ( ( (____ \ \ \ / / ( __ \ )__ \
\ \ _ / / / /\ \ ( ( ) ) ) / () \/ () ) )_) ) __) /
\ \/ \/ / ( (__) ) \ \ / / __ / / / _ _ \ ( ___/ (__ (
) _ ( ) ( \ \/ / / \/ / __ / / \/ \ \ ) ) \ \
\ ( ) / / /\ \ \ / ( () \__/ / /_/ \_\ ( ( ___/ )
\_/ \_/ /__( )__\ \/ \__\____( (/ \) /__\ )____/
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
| export PATH=/Applications/Postgres.app/Contents/Versions/9.4/bin/:$PATH | |
| pip install psycopg2 |
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
| nst>brew install redis | |
| ==> Downloading http://download.redis.io/releases/redis-2.8.12.tar.gz | |
| ######################################################################## 100.0% | |
| ==> make -C /private/tmp/redis-qA8O/redis-2.8.12/src CC=clang | |
| ==> Caveats | |
| To have launchd start redis at login: | |
| ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents | |
| Then to load redis now: | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist | |
| Or, if you don't want/need launchctl, you can just run: |
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
| web: php -S 0.0.0.0:8000 -t . | |
| #gulp: gulp watch |
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
| from django.contrib import admin | |
| from polls.models import Poll, Choice | |
| from django.contrib.auth.models import User | |
| from django.contrib.admin import AdminSite | |
| from polls.views import index | |
| class MyAdminSite(AdminSite): |
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
| # Add this to your ~/.bash_profile | |
| # Disable pyc | |
| export PYTHONDONTWRITEBYTECODE=x |
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
| // Toaster AI v2 | |
| // by Richard Caceres | |
| // 11/12/09 | |
| // | |
| // Safety Precautions that could be put in place | |
| // Overheating | |
| // Description: Precautions to prevent the toaster from being on too long. | |
| // Status: A solution is put in place where the toaster can only be on N seconds at a time. | |
| // There is also a cool down period. | |
| // |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am rchrd2 on github. | |
| * I am rchrd2 (https://keybase.io/rchrd2) on keybase. | |
| * I have a public key whose fingerprint is A166 5BE1 E8F6 A2A3 BEC7 382A 8CCA 345A 01E9 EF4B | |
| To claim this, I am signing this object: |
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
| /** | |
| * jQuery plugin to add a faux browser around some images | |
| * Based off of http://cloudcannon.com/deconstructions/2014/11/21/flat-css-browser-wrapper.html | |
| * | |
| * Example usage: | |
| * | |
| * <body> | |
| * <img class="fakeBrowser" src="http://example.com/image.jpg" | |
| * </body> | |
| * |
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
| sudo killall VDCAssistant |