Video - https://www.youtube.com/watch?v=Jw5vBlKLdmc
- NGINX 1.9.5+ / NGINX Plus R7+ (
nginx -v
)
/* Copyright 2011 Google */ | |
(function() { | |
var injectionScript = fillInTemplate("(function(){({{$code}})();})();", { | |
code: window.injection.toString() | |
}), | |
injectorScript = fillInTemplate("(function(){({{$code}})();})();", { | |
code: window.injector.toString() | |
}); | |
delete window.injector; | |
delete window.injection; |
ogr2ogr -f MySQL MySQL:DATABASENAME,host=localhost,user=USER,password=PASSWORD SHAPEFILE.shp -nln TABLENAME -update -overwrite -lco engine=MYISAM |
class SlackNotifier | |
def self.notify(load_id) | |
notify_first_votes(load_id) | |
notify_calls(load_id) | |
notify_runoffs(load_id) | |
notify_uncalls(load_id) | |
notify_ap_uncalls(load_id) | |
end | |
def self.notify_first_votes(load_id) |
from pyrabbit.api import Client | |
username = 'guest' | |
password = 'guest' | |
cl = Client('localhost:15672', username, password) | |
queues = [q['name'] for q in cl.get_queues()] | |
for q in queues: | |
#if q.startswith('Dispatch.259'): | |
print ('deleting...' + q) | |
cl.delete_queue('/', q) |
from django.db import models | |
from django.utils import timezone | |
class Bank(models.Model): | |
bank_ifsc = models.CharField(max_length=200, blank=False, primary_key=True) | |
bank_name = models.CharField(max_length=200, blank=False) | |
bank_addr = models.CharField(max_length=400, blank=True) | |
def __str__(self): |
mkdir tutorial | |
cd tutorial | |
# Create a virtualenv to isolate our package dependencies locally | |
virtualenv env | |
source env/bin/activate # On Windows use `env\Scripts\activate` | |
# Install Django and Django REST framework into the virtualenv | |
pip install django | |
pip install djangorestframework |
""" | |
This module contains an implementation of the Knuth-Morris-Pratt algorithm allowing to look for sequence matching. | |
For example if you want to find the sequence [1, 2, 3] in [2, 3, 1, 2, 3, 5, 6], you could do: | |
find_sequence([2, 3, 1, 2, 3, 5, 6], [1, 2, 3]) | |
This algorithm is especially interesting in case of many partial matches. Otherwise, you could simply use a brute | |
force search with correct performances. | |
The main function to use here is find_sequence which actually performs the KMP algorithm. |
Julia likes to study KMP algorithm again using lecture note. What she likes to do is to go over the lecture | |
notes word by word, and then focus on thinking process. | |
She started to review KMP using Chinese blog, but she found out that the blog is not clear, so she likes to | |
follow up with more detail lecture note. | |
She likes to write and also she likes to read good writing of the KMP algorithm. | |
https://www.ics.uci.edu/~eppstein/161/960227.html |
Video - https://www.youtube.com/watch?v=Jw5vBlKLdmc
nginx -v
)I bought new Macbook Pro 15 Retina. These are tools I like to install on macOS operating system.
xcode-select --install