Evan gave some quick overview of vue history and how the project and community grew to one of the biggest js framework around.
- 2.3: ssr guide (https://ssr.vuejs.org/en/)
""" | |
Run it with: | |
pytest dicts.py --tb=short | |
""" | |
import dictdiffer | |
import json | |
import pytest | |
@pytest.fixture |
Evan gave some quick overview of vue history and how the project and community grew to one of the biggest js framework around.
import 'whatwg-fetch' | |
import Auth from './Auth'; | |
import Url from 'url-parse'; | |
const API_URL = process.env.API_URL | |
const http = { | |
get: get, | |
getAuthed: getAuthed, |
/* Example implementation of password hasher similar to Django's PasswordHasher | |
* Requires Java8 (but should be easy to port to older JREs) | |
* Currently it would work only for pbkdf2_sha256 algorithm | |
* | |
* Django code: https://github.com/django/django/blob/1.6.5/django/contrib/auth/hashers.py#L221 | |
*/ | |
import java.nio.charset.Charset; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.InvalidKeySpecException; | |
import java.security.spec.KeySpec; |
I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).
I kinda regret for not using Boxen to automate the process, but TBH I have this laptop for almost 3yrs and this is the first time I needed to reinstall everything, maybe the next time...
PRAGMA foreign_keys=OFF; | |
BEGIN TRANSACTION; | |
CREATE TABLE "package" ( | |
"id" integer NOT NULL PRIMARY KEY, | |
"name" varchar(1024) NOT NULL UNIQUE, | |
"versions" text NOT NULL | |
); | |
INSERT INTO "package" VALUES(1,'0x10c-asm','["0.0.2"]'); | |
INSERT INTO "package" VALUES(2,'1009558_nester','["1.0.1"]'); | |
INSERT INTO "package" VALUES(3,'18-e','["final"]'); |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import os | |
import sys | |
from django.conf import settings | |
abspath = lambda *p: os.path.abspath(os.path.join(*p)) | |
ROOT_DIR = abspath(os.path.dirname(__file__)) | |
APP = os.path.splitext(os.path.basename(__file__))[0] |
class Handler: | |
def handle(self): | |
self.process() | |
self.postprocess() | |
def process(self): | |
pass | |
#!/usr/bin/env python | |
""" | |
Use it as:: | |
ls -l | python linecat.py | |
or:: | |
python linecat.py < file.txt | |
#!/usr/bin/env python | |
from Foundation import NSUserNotification | |
from Foundation import NSUserNotificationCenter | |
from Foundation import NSUserNotificationDefaultSoundName | |
from optparse import OptionParser | |
def main(): | |
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE') |