Skip to content

Instantly share code, notes, and snippets.

View inureyes's full-sized avatar

Jeongkyu Shin inureyes

View GitHub Profile
<link rel="import" href="{{ STATIC_URL }}vendor/polymer/polymer.html">
<link rel="import" href="{{ STATIC_URL }}vendor/core-ajax/core-ajax.html">
<polymer-element name="django-ajax" extends="core-ajax">
<script>
Polymer({
ready: function() {
this.super();
this.headers = {
"X-CSRFToken": {{ csrf_token }},
@inureyes
inureyes / README.md
Last active November 23, 2019 05:13 — forked from jonathantneal/README.md

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward edit to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
import os, time, shutil, heapq
MAX_CACHE_MB = 200
_CACHED_FILES = []
_CACHED_SIZE = None # in bytes
def cache_file(filename):
'''
Automatically maintain a cached version of the given filename.