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
{ | |
"name": "umplemon", | |
"version": "0.0.0", | |
"description": "Monitor, compile, and run Java umple files", | |
"main": "watch.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Jason Travis", | |
"license": "GPLv3", |
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
def print_type(data, indent_level): | |
if type(data) == dict: | |
for key in data: | |
print '\t' * indent_level + str(key) + ' ' + str(type(data[key])) | |
print_types(data[key], indent_level+1) | |
elif type(data) == list: | |
for i in range(len(data)): | |
print '\t' * indent_level + str(i) + ' ' + str(type(data[i])) | |
print_types(data[i], indent_level+1) |
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
// Copyright Jason Travis | |
package main | |
import ( | |
"encoding/csv" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" |
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
// The first array is an array of angular modules. The ng module is optional. | |
// It is normally implicitly included and provides access to the angular API. | |
// The second array is the module components that will be injected as parameters | |
// to the final element which is a function. | |
angular.injector(['ng', 'myModule']).inject(['myModuleFactory', ..., eventCtrl]); | |
// This is where the event handlers are registered | |
function eventCtrl(myModuleFactory) { | |
chrome.tabs.onCreated.addListener(myModuleFactory.doStuff); | |
// ... |
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
vendor/ | |
composer.lock |
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 zsh | |
layouts=(dot neato fdp sfdp twopi circo) | |
for layout in $layouts; do | |
filename="graph.$layout.png" | |
echo $filename | |
madge --exclude '^node_modules|templates|^test' --layout $layout --image $filename "$1" | |
#convert $filename -fuzz 30% -fill \#FFFFFF -opaque \#000000 filtered.$filename | |
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
#!/bin/bash | |
# | |
# Schedules a vcf_to_matrix job and diff the output against a reference folder | |
# | |
# The REPO_PATH and VCF_TO_MATRIX variables must be set by the user | |
# | |
# REFERENCE_PATH is an output folder from the nasp program. The vcf_to_matrix | |
# program will read its files and write its output to a folder | |
# Set Script Name variable |
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
# http://stackoverflow.com/a/27804765 | |
# I am using OSX Yosemite and Cisco Anyconnect (which are apparently a bad combo for using boot2docker) | |
# and the following finally worked for me (thanks to the linked GitHub issue comment): | |
# These steps will add a port forwarding rule and modify your environment to have docker point to 127.0.0.1 | |
# (instead of 192.168.59.103 or other NATed IP). | |
# First - boot2docker needs to be installed but not running. | |
# If it is currently running - stop it now: | |
boot2docker down |
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
Tools | |
===== | |
- [Intel XDK](https://software.intel.com/en-us/html5/tools) | |
HTML5 Cross platform dev tool. | |
- [Vagrant](https://www.vagrantup.com/) | |
Lightweight portable deve environments. | |
- [Docker](https://www.docker.com/) | |
An open platform for distributed applications for developers and sysadmins. |
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 | |
# The script does automatic checking on a Go package and its sub-packages, including: | |
# 1. gofmt (http://golang.org/cmd/gofmt/) | |
# 2. goimports (https://github.com/bradfitz/goimports) | |
# 3. golint (https://github.com/golang/lint) | |
# 4. go vet (http://golang.org/cmd/vet) | |
# 5. race detector (http://blog.golang.org/race-detector) | |
# 6. test coverage (http://blog.golang.org/cover) | |
set -e |
OlderNewer