- Turbolinks.controller.disable();
+ Turbo.navigator.delegate.stop()
- Turbolinks.controller.currentVisit
+ Turbo.navigator.currentVisit
- Turbolinks.controller.disable();
+ Turbo.navigator.delegate.stop()
- Turbolinks.controller.currentVisit
+ Turbo.navigator.currentVisit
#!/bin/bash | |
DWDIR=~/Downloads/`date +%Y-%m-%d` | |
if [ ! -d $DWDIR ]; then | |
cd ~/Downloads/ && find -maxdepth 1 -type d -empty -delete | |
mkdir $DWDIR | |
unlink ~/Downloads/Current | |
ln -sf $DWDIR ~/Downloads/Current | |
fi; |
SELECT details.installer.name, COUNT(*) | |
FROM | |
TABLE_DATE_RANGE( | |
[the-psf:pypi.downloads], | |
TIMESTAMP("20160601"), | |
TIMESTAMP("20160630") | |
) | |
WHERE file.project='django-material' | |
group by details.installer.name |
class Task(Model): | |
@contextmanager | |
def activate(self): | |
activation = self.flow_task.activation_cls(self.task) | |
with activation.lock(): | |
yield activation | |
def start_view(request, start_task): | |
with start_task.activate() as activation: |
from collections import namedtuple | |
from functools import wraps | |
from itertools import chain | |
from django.utils.functional import curry | |
from django.db.models import CharField | |
class StateField(CharField): | |
Starts = namedtuple('Starts', ['state']) |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'socket' | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
# Fix no-tty error | |
# if there a line that only consists of 'mesg n' in /root/.profile, replace it with 'tty -s && mesg n' | |
config.vm.provision :shell, | |
:inline => "(grep -q -E '^mesg n$' /root/.profile && sed -i 's/^mesg n$/tty -s \\&\\& mesg n/g' /root/.profile && echo 'Ignore the previous error about stdin not being a tty. Fixing it now...') || exit 0;" |
*.pyc | |
*.p12 | |
.tox | |
settings.py |