I hereby claim:
- I am alexkahn on github.
- I am alexkahn (https://keybase.io/alexkahn) on keybase.
- I have a public key ASAwHU9DLrKOovCHkmcuEoxv7Nx9P7mb9yHAVVLOBJWJyAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/home/rof/.virtualenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line | |
utility.execute() | |
File "/home/rof/.virtualenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/home/rof/.virtualenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv | |
self.execute(*args, **cmd_options) | |
File "/home/rof/.virtualenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 398, in execute |
Each topic that was brought up in the Slack channel has a heading with a answers between them.
So this is a question of trade-offs. Sometimes you need to have some JS inline with your HTML due to your web framework. Eg. You have some JS that sends Google Analytics/Mixpanel events and needs to have a user's email address which must be given to your JavaScript.
function constructor(spec) { | |
var that = other_constructor(spec), | |
member, | |
method = function() { | |
//spec, member, method | |
}; | |
that.method = method; | |
return that; | |
} |
# blow away untracked files | |
git ls-files --others --exclude-standard | xargs rm |
var markerInfo = [ | |
//MONDAYS | |
{ | |
"location": "City Hall Plaza - Fisher Park", "latitude": "42.360082", | |
"longitude": "-71.058880", | |
"day": "Mondays" | |
}, | |
// TUESDAYS & THURSDAYS | |
{ | |
"location": "South End - Harrison Avenue and East Concord Street by BMC", |
var hoursLocations = [{ | |
'days': 'mondays', | |
'times': '11AM - 3PM', | |
'location': 'City Hall Plaza - Fisher Park' | |
}, | |
{ | |
'days': 'TUESDAYS & THURSDAYS', | |
'times': "11AM - 3PM", | |
'location': "South End - Harrison Avenue and East Concord Street by BMC" | |
}, |
var header = document.getElementsByTagName('header'); | |
var range = 200; | |
window.addEventListener('scroll', opacityHandler, false) | |
function opacityHandler() { | |
var scrollTop = $(this).scrollTop(); | |
var offset = header.offset().top; | |
var height = header.outerHeight(); | |
from .forms import AccountCreationForm | |
class IndexView(TemplateView): | |
template_name = 'myapp/mytemplate.html' | |
def get_context_data(self, **kwargs): | |
ctx = super(IndexView, self).get_context_data(**kwargs) | |
# you can use any query param key you'd like... | |
ctx['form'] = AccountCreationForm(initial={'promotion_code': self.request.GET.get('c', '')}) |