Name | Followers | Genre(s) | Related Artists |
---|---|---|---|
"The Musical Adventures of Grace" - Book Reading Session at Appleton Public Library |
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
import ScrollContainer from 'nanoScroller-react.js'; | |
export default React.createClass({ | |
render() { | |
return ( | |
<nav id="sidebar-wrapper"> | |
<ScrollContainer id="sidebar-scroll-container"> | |
<ul> |
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 teamStream = storeObserver.observeStateStream(store, state => state.team.requestedTeam.id); | |
teamStream.onValue(requestedTeamId => { | |
// clean up old connection (this will happen if we look at different teams) | |
if (this.teamRef) this.teamRef.off('value', this.teamCallback); | |
this.teamRef = rootRef.child(`teams/${requestedTeamId}`); | |
this.teamCallback = this.teamRef.on('value', snapshot => { | |
try { |
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 mockAPI = { | |
provideResponse(dataToProvide) { | |
const timeout = Math.round(Math.random() * (3000 - 500)) + 500; | |
const retVal = new Promise((resolve, reject)=> { | |
setTimeout(() => { | |
resolve(dataToProvide); | |
}, timeout); |
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
# Go to Settings -> Console -> Python Console (Do not use Django Console - even if you plan to use this with a Django project) | |
# Ad this gist to the "starting script" option. | |
import os | |
# Chdir to "working directory" | |
os.chdir('/vagrant') | |
import sys | |
sys.path.extend([ '/home/vagrant/.pycharm_helpers/pycharm', '/home/vagrant/.pycharm_helpers/pydev']) | |
import django_manage_shell; django_manage_shell.run("/vagrant") | |
# Django 1.7 app loading | |
import django |
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
from django.core import management | |
from django.conf import settings | |
def enable_south_migrations(): | |
management.get_commands() | |
if hasattr(settings, "SOUTH_TESTS_MIGRATE") and not settings.SOUTH_TESTS_MIGRATE: | |
# point at the core syncdb command when creating tests | |
# tests should always be up to date with the most recent model structure | |
management._commands['syncdb'] = 'django.core' |
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
# Deploy and rollback on Heroku in qa and production | |
# sources: https://gist.github.com/njvitto/362873 | |
# https://gist.github.com/djburdick/4410411 | |
task :deploy_qa_light => ['deploy:set_qa_app', 'deploy:push', 'deploy:tag'] | |
task :deploy_production_light => ['deploy:set_production_app', 'deploy:push', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'my-heroku-prod-app' | |
QA_APP = 'my-heroku-qa-app' |