Show branches still to be merged to master
git fetch
git branch --no-merged master
Create new branch and switch to it
| // format an array into columns as sub arrays | |
| var splitter = function (columns, data) { | |
| try { | |
| var out = [], col = []; | |
| var colSize = Math.ceil(data.length / columns); | |
| var count = 0; | |
| for (key in data) { | |
| if (count > colSize) { | |
| out.push(col); | |
| col = []; |
| <!-- typical filesystem location ../config/spring/api/discovery.xml --> | |
| <!-- sort filters for the discovery search--> | |
| <property name="searchSortConfiguration"> | |
| <bean class="org.dspace.discovery.configuration.DiscoverySortConfiguration"> | |
| <property name="defaultSortOrder" value="desc"/> | |
| <property name="sortFields"> | |
| <list> | |
| <ref bean="sortTitle" /> | |
| <ref bean="sortDateIssued" /> | |
| <ref bean="sortSomeField" /> |
| // typical input data | |
| // Years and semesters need to be unique so they are stored as keys | |
| var data = { | |
| count: 2, | |
| found: 5, | |
| results: { | |
| '2011': {'Semester 1': {url: 'http://site.nz/?pid=401067'}}, | |
| '2012': { | |
| 'Semester 1': {url: 'http://site.nz/?pid=493997'}, |
| require 'yaml' | |
| module Valet | |
| class Messages | |
| @messages ||= YAML::load_file(File.expand_path('../../../messages.yml', __FILE__)) | |
| def self.text(key) | |
| @messages[key]['text'] | |
| end |
Show branches still to be merged to master
git fetch
git branch --no-merged master
Create new branch and switch to it
| #!/usr/bin/env ruby -w | |
| require 'rubygems' | |
| require 'json' | |
| #local = "localhost:3000" | |
| local = false | |
| json = File.read(ARGV[0]) | |
| obj = JSON.parse(json) |
| $key = ''; // fill in these details | |
| $secret = ''; | |
| $id = ''; | |
| // Nonce of the current Unix timestamp string encoded | |
| $nonce = strval(time()); | |
| $sigtext = $nonce . $id . $key; | |
| $signature = hash_hmac ('sha256',$sigtext,$secret); |
Global values - values that vary
Start is a room. "You are at the start of the game. [if the era is the past] In the past[otherwise] In the present[end if]."
The time machine is a thing in the start.
Instead of examining the time machine:
say "You feel your mind drifting...";
now the era is the past.
Openable things that change when you open them
| Verifying that +robcarter is my blockchain ID. https://onename.com/robcarter |
I hereby claim:
To claim this, I am signing this object: