Skip to content

Instantly share code, notes, and snippets.

View simonexmachina's full-sized avatar

Simon Wade simonexmachina

  • Melbourne, Australia
View GitHub Profile
import java.util.Map;
public class Test {
public static void main (String[] args) {
Map<String, String> env = System.getenv();
String envName = "ANDROID_HOME";
System.out.format("%s=%s%n", envName, env.get(envName));
}
}

Client QA

jtribe will move cards into the Client QA column when a build has been deployed and is ready for you to test. You can subscribe to this list so that you're alerted when new cards are ready for QA.

When you're ready to perform the QA, make sure that you've got the latest build:

  • iOS: you will receive a TestFlight notification when the new build is ready, use this to update the app
  • Android: you will have received an email invitation to become an Alpha tester at the start of these
@simonexmachina
simonexmachina / gist:3df8377ea2bc0ecfd583
Created January 8, 2016 01:28
match IO error on CircleCI
bundle exec match appstore --readonly
+----------------+--------------------------------------------+
| Summary for match 0.2.4 |
+----------------+--------------------------------------------+
| git_url | [email protected]:jtribe/bwf-certificates.git |
| type | appstore |
| app_identifier | org.bwfbadminton.ShuttleTime |
| username | [email protected] |
| keychain_name | login.keychain |

I have a number of work and non-work-related podcasts this week:

JavaScript Jabber - The Evolution of Flux Libraries with Andrew Clark and Dan Abramov

A good interview with the authors of two Flux implementations: Flummox and Redux. Both of whom suggest that Redux is the ultimate Flux implementation, disposing of unnecessary concepts and leveraging the idea of "reducers" from Elm

Ted Radio Hour - Simply Happy

@simonexmachina
simonexmachina / mergepbx-setup.sh
Last active October 15, 2015 06:45
mergepbx setup
# you can run this using:
# curl -o- https://gist.githubusercontent.com/aexmachina/8608764bfb56c4e244b0/raw/e53953bfb97993059661daf623579763ccc95f03/mergepbx-setup.sh | bash
set -o errexit # exit on most errors
brew install mergepbx
git config --global merge.mergepbx.name "XCode project files merger"
git config --global merge.mergepbx.driver "mergepbx %O %A %B"
git config --global core.attributesfile ~/.gitattributes
echo '*.pbxproj merge=mergepbx' >> ~/.gitattributes
@simonexmachina
simonexmachina / .gitignore
Last active October 24, 2019 05:44
Example .gitignore file for iOS projects
## Build generated
build/
DerivedData
build.xcarchive
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9NsGqgmJObGpNOnv7i3dC44EEFXVx4hgZd26Basewc9DF51xbD3jImykrp4lA/k6QAJvv1tKapMK5V3CX07WIr4AJiSR73MM/27qDkIPsOjurC/9wtOdgZ8wl9O/bZlwJCLGCapNaqkePHba/x0hdSgIqN2+XR8wauahyJaN+SQ0x6uSLG033htnC8mu3VfHRWeqB79EHW6WiodvP8g5QSUfzwNHqeX+FwWxEUnpzCJ/DOvNKNmSvr+wn2su1PRMDgsOwP1jIpPzbv76h63VZub2FUrWjpuKey4PmM7nrCNeUYzAmD5yPPiuNUd0pp8k6NFq5MxGOUFpDlcPuLxdX [email protected]
@simonexmachina
simonexmachina / dashboard.map.correct.json
Created February 6, 2015 11:00
ember-cli source maps
This file has been truncated, but you can view the full file.
{"version":3,"sources":["dashboard/app.js","dashboard/components/accordion-button.js","dashboard/components/accordion-container.js","dashboard/components/accordion-header.js","dashboard/components/accordion-item.js","dashboard/components/acl-create-button.js","dashboard/components/acl-delete-link.js","dashboard/components/acl-edit-link.js","dashboard/components/acl-link.js","dashboard/components/action-buttons.js","dashboard/components/address-locator.js","dashboard/components/address-select.js","dashboard/components/autocomplete-input.js","dashboard/components/bread-crumbs.js","dashboard/components/change-input.js","dashboard/components/color-palette.js","dashboard/components/color-picker.js","dashboard/components/confirm-action-mixin.js","dashboard/components/confirm-action.js","dashboard/components/confirm-input.js","dashboard/components/confirm-popover.js","dashboard/components/drag-spacer.js","dashboard/components/ember-notify.js","dashboard/components/ember-spinner.js","dashboard/components/event-delega
@simonexmachina
simonexmachina / unbork-arraycomputed-reducecomputed.js
Last active August 29, 2015 14:11
Alternative implementations of some Ember.computed functions to avoid issues with broken ArrayComputed and ReduceComputed
Em.computed.map = function(key, callback) {
return Em.computed(key + '.[]', function() {
return Em.get(this, key).map(callback.bind(this));
});
};
Em.computed.mapBy = function(key, property) {
return Em.computed(key + '.@each.' + property, function() {
return Em.get(this, key).mapBy(property);
});

Franq Change Notifications

Server-side

On PUT, POST or DELETE to an API endpoint:

  • Get the next tid counter value from Redis
  • Emit an event in the changes channel of Socket.io:

{ name: 'create|update|delete',