- {{tags}}
- {{date}}
| import json | |
| import redis | |
| import serial | |
| import sys | |
| import time | |
| from art import text2art | |
| if len(sys.argv) == 1: | |
| print("Please provide a numeric value for the first down") |
| CLIENT_ID=PUT_CLIENT_ID_HERE | |
| CLIENT_SECRET=PUT_CLIENT_SECRET_HERE | |
| REDIRECT_URI=PUT_REDIRECT_URI_HERE |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This page summarizes the tips and checklists found in The Pragmatic Programmer.
For more information about The Pragmatic Programmers LLC, source code for the examples, up-to-date pointers to Web resources, and an online bibiography, visit us at www.pragmaticprogrammer.com
1. Care About Your Craft
Why spend your life developing software unless you care about doing it well?
| #!/usr/bin/env ruby | |
| branches_to_build = ["master","develop","release1"] | |
| while (input = STDIN.read) != '' | |
| rev_old, rev_new, ref = input.split(" ") | |
| if ref =~ /#{branches_to_build.join("|")}#/ | |
| # figure out your teamcity build url via help from http://bit.ly/dAFVO3 | |
| url="https://username:password@teamcitydomain.com/httpAuth/action.html?add2Queue=bt2" | |
| puts "Run CI build for application" | |
| # avoid check of self signed-certificates |
| import requests | |
| import json | |
| HOST = "PUT YOUR IP HERE" | |
| API_VERSION = "v2.0" | |
| ADMIN_PASSWORD = "PUT YOUR ADMIN PASSWORD FROM YOUR DEVSTACK LOCAL.CONF HERE" | |
| url = "http://%s:%s/%s/tokens" % (HOST, "5000", API_VERSION) | |
| data = {'auth': {'tenantName': 'admin', 'passwordCredentials': {'username': 'admin', 'password': ADMIN_PASSWORD}}} | |
| headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'python-neutronclient'} |