A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| case status | |
| when 0 then 'New' | |
| when 1 then 'Assigned' | |
| when 2 then 'In Progress' | |
| when 3 then 'Pending' | |
| when 4 then 'Resolved' | |
| when 5 then 'Closed' | |
| when 6 then 'Cancelled' | |
| else to_char(status) | |
| end status |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True,Position=1)] | |
| $Filter=".*", | |
| #TODO: handle https & no basic auth as well.. | |
| $RegistryEndpoint = "registry.mysite.com", | |
| $UserName = "user", | |
| $Password = "password" | |
| ) |
| { | |
| "server": true, | |
| "rejoin_after_leave": true, | |
| "enable_syslog": false, | |
| "syslog_facility": "local5", | |
| "data_dir": "/var/consul/data", | |
| "ui_dir": "/var/consul/ui", | |
| "datacenter": "dc1", | |
| "statsd_addr": "<some IP>:8125", | |
| "recursor": "<some IP>" |
| #!/bin/sh | |
| # Must have boot2docker installed if using Mac OS X | |
| installMachineMac() { | |
| sudo wget --no-check-certificate -O /usr/local/bin/docker-machine http://docker-machine-builds.evanhazlett.com/latest/docker-machine_darwin_amd64 | |
| sudo chmod +x /usr/local/bin/docker-machine | |
| } | |
| installDockerBinMac(){ | |
| sudo wget --no-check-certificate -O /usr/local/bin/docker https://get.docker.com/builds/Darwin/x86_64/docker-latest |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
| <script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(function () { | |
| var extractToken = function(hash) { |
| 'use strict'; | |
| angular.module('app') | |
| .controller('CreateWorkflowCtrl', function($scope, $location, Workflow, Category) { | |
| $scope.workflow = new Workflow(); | |
| $scope.page = 0; | |
| $scope.create = function() { | |
| $scope.workflow.$save(function(data) { | |
| $location.path("/workflow/" + data.id); |
| http://jsfiddle.net/brendanowen/uXbn6/8/ | |
| <script type="text/ng-template" id="tree_item_renderer.html"> | |
| {{data.name}} | |
| <button ng-click="add(data)">Add node</button> | |
| <button ng-click="delete(data)" ng-show="data.nodes.length > 0">Delete nodes</button> | |
| <ul> | |
| <li ng-repeat="data in data.nodes" ng-include="'tree_item_renderer.html'"></li> | |
| </ul> | |
| </script> |