sudo apt-get update
This file contains hidden or 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
sudo su | |
easy_install supervisor | |
echo_supervisord_conf > /etc/supervisord.conf | |
mkdir /etc/supervisord | |
echo '[include] | |
files=/etc/supervisord/*' >> /etc/supervisord.conf | |
# verify it installed correctly with a test | |
echo '[program:filewatcher] |
This file contains hidden or 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
from sqlalchemy import Column, Integer, String, Index | |
from sqlalchemy.ext.declarative import declarative_base | |
Base = declarative_base() | |
class Person(Base): | |
__tablename__ = 'person' | |
id = Column(Integer, primary_key=True, autoincrement=True) | |
first_name = Column(String(64), index=True) # A single-column index |
This file contains hidden or 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 bash | |
# | |
# Copyright (c) <year> <copyright holders> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in | |
# the Software without restriction, including without limitation the rights to | |
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
# the Software, and to permit persons to whom the Software is furnished to do so, | |
# subject to the following conditions: |
I hereby claim:
- I am boaf on github.
- I am boaf (https://keybase.io/boaf) on keybase.
- I have a public key whose fingerprint is 07D7 5E97 F711 FF04 3AF7 F9E3 B2AD 55C7 3D1B 81B7
To claim this, I am signing this object:
This file contains hidden or 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
PROJECT_NAME = my-rad-project | |
COFFEE_SRC = coffee | |
JS_DEST = js | |
BIN = ./node_modules/.bin | |
COFFEE_FILES = $(wildcard $(COFFEE_SRC)/*.coffee) | |
JS_FILES = $(COFFEE_FILES:$(COFFEE_SRC)/%.coffee=$(JS_DEST)/%.js) | |
MAP_FILES = $(JS_FILES:%.js=%.js.map) |
This file contains hidden or 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
Show hidden characters
{ | |
"cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", | |
"$file", "--js_output_file", | |
"${file_path}/${file_base_name}.min.js", "--compilation_level", | |
"WHITESPACE_ONLY"], | |
"file_regex": "^(.*):([0-9]+):() ERROR - (.*)", | |
"selector": "source.js" | |
} |