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
private func paintGraphView() { | |
let graphView = ScrollableGraphView(frame: CGRect(x: 0, y: 0, width: 375, height: 350)) | |
let purpleColor = UIColor.colorFromHex("#8D2595") | |
barPlot.set(data: data, withLabels: labels) | |
barPlot.topMargin = 80 |
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/python | |
#: Stripe on OSX might need | |
#: pip install pyOpenSSL backports.ssl requests | |
#: Your Stripe secret key | |
STRIPE_API_KEY = "STRIPE_KEY" | |
#: JPEG that has evidence for the entity | |
EVIDENCE_JPEG_PATH = "abn.jpg" |
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
# Must be defined out side a target | |
CONTAINER_DIR=src | |
CLEAN_PATTERNS=*.pyo *.egg *.eggs *.egg-info *~ __pycache__ | |
.PHONY: prep-devel-env | |
prep-devel-env: | |
$(foreach package, $(PACKAGES),(cd $(CONTAINER_DIR)/$(package); $(PIP) install -e .) &&): | |
.PHONY: clean | |
clean: |
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/python | |
""" | |
The object here is to demonstrate the following about Python decorators: | |
- All decorators that execute logic prior to calling the decorated function | |
executed before the decorators that execute logic after the decorated | |
function executes | |
- Order or application of the decorators does not break the point above |
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 | |
# MySQL configuration | |
# For the script to run headless without entering a password create ~/.my.cnf and | |
# [mysqldump] | |
# user=username | |
# password=password | |
# | |
# This makes mysqldump refer to the configuration for the password | |
# | |
USERNAME="username" |
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
# modified from http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip | |
sudo pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 sudo pip install -U |
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
var hqLocation = new google.maps.LatLng(-35.107231, 147.369983); | |
var mapOptions = { | |
zoom: 17, | |
minZoom: 17, | |
maxZoom: 17, | |
center: hqLocation, | |
scrollwheel: false, | |
disableDefaultUI: true, | |
keyboardShortcuts: false, |
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 2014 Anomaly Software Pty Ltd. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
NewerOlder