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
.PHONY: all clean start asterisk websocketd | |
all: clean start | |
clean: | |
echo > call_log | |
-sudo killall asterisk | |
-sudo killall websocketd | |
start: asterisk websocketd |
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 ruby | |
# This script translates Christy's Company's investors to all companies by investors. | |
# INPUT: arg0 as a path to a csv | |
# OUTPUT: arg1 as a path to a csv | |
require 'CSV' | |
investors = {} | |
CSV.foreach(ARGV[0], {headers: false}) do |row| |
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 | |
#Taken from: | |
#https://gist.github.com/1965569 | |
function ask { | |
while true; do | |
if [ "${2:-}" = "Y" ]; then | |
prompt="Y/n" |
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
<script> | |
originalRegister = document.registerElement; | |
document.registerElement = function() { | |
console.log('document.registerElement called with:', arguments); | |
// Call the function as it would have been called normally: | |
originalRegister.apply(this, arguments); | |
} | |
</script> |
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
atom-text-editor::shadow .jumpy { | |
&.label { | |
background-color: orange; | |
color: black; | |
} | |
&.jump { | |
} | |
} |
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
.editor.vim-mode.command-mode::shadow { | |
.cursor.idle, .cursor.idle.blink-off { | |
background-color: #00ff44; // bright green | |
visibility: visible; | |
opacity: .5; | |
border-style: solid; | |
border-width: 1px; | |
border-color: #ff0000; // bright red | |
} | |
.cursor.idle.blink-off { |
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
git log -n 1 --no-merges --pretty=format:"%h" | |
#can be used for cache busting in combination with post comit... |
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 pystache | |
import os, glob | |
#TODO: use argparse or some config vars | |
ACTIONS_DIR_PREFIX = '_m_' | |
MAIN_TEMPLATE_NAME = 'main.mustache' | |
START_WALK = os.getcwd() | |
ENV = {} | |
for root, directories, files in os.walk(START_WALK): |
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 os | |
from flask import Flask | |
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) | |
app = Flask(__name__, | |
static_folder=os.path.join(PROJECT_ROOT, 'public'), | |
static_url_path='/public') | |
try: |
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 os | |
from flask import Flask | |
from werkzeug import SharedDataMiddleware | |
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) | |
app = Flask(__name__, | |
static_folder=os.path.join(PROJECT_ROOT, 'public'), | |
static_url_path='/public') |