This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
handler () { | |
kill -s SIGINT $PID | |
while kill -0 $PID &>/dev/null | |
do | |
wait $PID | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Web Components --> | |
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script> | |
<link rel="import" href="bower_components/polymer/polymer.html"> | |
<link rel="import" href="bower_components/iron-localstorage/iron-localstorage.html"> | |
</head> | |
<body unresolved> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Info: | |
===== | |
These snippets help me remember how to use Polymer syntax. Many come from the Polycasts YouTube videos. | |
Message me @qtrandev in the Polymer Slack or email qtrandev@gmail.com and I'll message you links I know. | |
Getting started: | |
================ | |
bower init | |
bower install --save Polymer/polymer#^1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch .git/hooks/pre-commit | |
chmod +x .git/hooks/pre-commit | |
cat > .git/hooks/pre-commit | |
#!/bin/sh | |
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""html2text: Turn HTML into equivalent Markdown-structured text.""" | |
__version__ = "2.35" | |
__author__ = "Aaron Swartz (me@aaronsw.com)" | |
__copyright__ = "(C) 2004-2008 Aaron Swartz. GNU GPL 3." | |
__contributors__ = ["Martin 'Joey' Schulze", "Ricardo Reyes"] | |
# TODO: | |
# Support decoded entities with unifiable. | |
# Relative URL resolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# can be used to hide email addresses in the html source of Web sites from spiders | |
def html_encode(email): | |
''' | |
Takes a unicode string as only parameter and returns | |
a sequence of html encoded chars. | |
>>> html_encode(u"test@website.org") | |
'test@website.org' | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name domain.com; | |
location / { | |
proxy_pass http://mystream; | |
proxy_set_header Host $http_host; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webapp2 | |
import mimetypes | |
import os | |
import time | |
from datetime import datetime | |
import base64 | |
_here = os.path.dirname(__file__) | |
USERNAME = 'foo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Disassembly of roms/Freeway (1981) (Activision).a26 | |
; Disassembled Thu Oct 19 22:17:47 2017 | |
; Using DiStella v3.01a | |
; | |
; Command Line: ./binaries/osx/distella -pafs roms/Freeway (1981) (Activision).a26 | |
; | |
processor 6502 | |
VSYNC = $00 | |
VBLANK = $01 |
OlderNewer