Skip to content

Instantly share code, notes, and snippets.

View wookiehangover's full-sized avatar
💭
just setting up my gthb...

Sam Breed wookiehangover

💭
just setting up my gthb...
View GitHub Profile
or: 'AnonymousUser' object has no attribute 'user'
[2014-04-04 17:22:52,462] ERROR django.request - Internal Server Error: /ajax/accounts/plan/list.json
Traceback (most recent call last):
File "/Users/sam/dev/sprintly/sprint.ly/src/django-ajax/ajax/decorators.py", line 61, in json_response
result = f(*args, **kwargs)
File "/Users/sam/dev/sprintly/sprint.ly/src/django-ajax/ajax/views.py", line 60, in endpoint_loader
data = endpoint(request)
File "/Users/sam/dev/sprintly/sprint.ly/src/django-ajax/ajax/endpoints.py", line 92, in list
objects = self.get_queryset(request.user)
File "/Users/sam/dev/sprintly/sprint.ly/snowbird/apps/accounts/endpoints.py", line 228, in get_queryset
config =
requirejs:
options:
mainConfigFile: 'some/path/to/your/config.js'
baseUrl: 'some/path/to/your/assets'
almond: true
optimize: 'uglify2'
wrap: false
browser.waitForElementByCssSelector('.modal-footer button', 30e3)
.delay(1000)
.then(function(elem){
return $('.modal-footer button').click();
})
...

Sprintly Env Setup

git clone git@github.com:sprintly/sprint.ly.git

brew install python
brew install memcached
brew install libmemcached
brew install mysql
brew install pv
/*global _, moment, JST*/
jQuery.fn.tweeeeet = function(options){
"use strict";
var defaultOptions = {
screen_name: 'quickleft',
count: 10,
page: 1,
include_rts: true,
include_entities: true
[client] -- > [pouchdb] -- > [node] -- > [couchdb] -- (x-zone replication) -- > [couchdb] -- > [node] -- (web sockets) -- > [client] -- > [pouchdb]
| | ^ | ^
| V | V |
| [local ES] -------------- [ES] |
| |
(web rtc on successful sync to remote) (changes propagate upstream)
|
@wookiehangover
wookiehangover / index.html
Last active October 31, 2016 06:58
Pusher
<body>
<div class="wrapper">
All non-footer content goes here.
<div class="pusher"></div>
</div>
<footer class="primary-footer">
Footer Content
</footer>
curl -o latest.dump `heroku pgbackups:url`
pg_restore --verbose --clean --no-acl --no-owner -d quickleft-cms_development latest.dump

Stickies Development

  • make a config module that's not checked in
  • tweak theme colors, transitions
  • TODO list transform v1
  • exports to Gist
  • email

Bugz

Stickies Development

  • make a config module that's not checked in
  • tweak theme colors, transitions
  • TODO list transform v1
  • exports to Gist
  • email

Roadmap