Skip to content

Instantly share code, notes, and snippets.

View halfbaked's full-sized avatar

Eamonn O'Connell halfbaked

View GitHub Profile
@halfbaked
halfbaked / Install Hubflow in Windows.md
Last active August 11, 2022 07:06 — forked from abhisekp/Install Hubflow in Windows.md
How to install hubflow in Windows?

How to install hubflow in Windows?

— by Abhisek Pattnaik <[email protected]>

Clone latest hubflow

git clone https://github.com/datasift/gitflow hubflow
cd hubflow

Copy all git-hf prefixed files to bin directory in git installation directory

@halfbaked
halfbaked / RxFirebase.java
Created July 19, 2016 08:01 — forked from gsoltis/RxFirebase.java
RxJava Bindings for Firebase
package com.firebase.client;
import com.firebase.client.core.Constants;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Action0;
import rx.functions.Func1;
import rx.subscriptions.Subscriptions;
public class RxFirebase {
@halfbaked
halfbaked / exampleDreddCommand.bash
Created October 29, 2013 11:39
Example of using Dredd command
dredd blueprint.md http://api.myservice.tld
FORMAT: 1A
HOST: http://www.google.com
# Notes Collection [/notes]
## List all Notes [GET]
+ Response 200 (application/json)
[{
"id": 1, "title": "Jogging in park"
}, {
@halfbaked
halfbaked / sampleApiBlueprintV1
Created October 29, 2013 10:56
Sample of the syntax used for the ApiBlueprint v1 standard. This standard has been replaced, by an new standard.
-- Dog Resources --
Retrieve details about your dog
GET /dog/{id}
< 200
< Content-Type: application/json
{ name: "Rover", legs: 3}
ngular.module('http-loading-interceptor', ['spinner']).config([
'$httpProvider', 'spinnerProvider', function($httpProvider, spinnerProvider) {
var interceptor;
interceptor = function(data, headersGetter) {
spinnerProvider.startSpinner();
return data;
};
return $httpProvider.defaults.transformRequest.push(interceptor);
}
]).config([
@halfbaked
halfbaked / uaa_config_example
Last active December 16, 2015 09:38
example config for Cloud foundry UAA
oauth:
client:
override: true
autoapprove:
- cf
clients:
cf:
override: true
authorized-grant-types: password,implicit
authorities: uaa.none
@halfbaked
halfbaked / CoreGrailsPlugin.groovy
Last active December 10, 2015 00:48
setting the location of database migration changelogs to be in a Grails plugin
import org.codehaus.groovy.grails.plugins.PluginManagerHolder
...
def doWithConfig = { config ->
// Here we need to tell the database migrations plugin the change log is in the s5-core plugin
try {
def pluginManager = PluginManagerHolder.pluginManager
def plugin = pluginManager.getGrailsPlugin('s5-core')
def pluginDir = org.codehaus.groovy.grails.plugins.GrailsPluginUtils.getPluginDirForName('s5-core')?.path
@halfbaked
halfbaked / MultiPaginateTagLib.groovy
Created December 13, 2012 15:25
Rough description of how one might do multiPageTagLib
Closure paginate = { attrs ->
// define new prefix aware keys
def _sort = attrs.prefix? attrs.prefix +"_sort" : 'sort'
def _offset = attrs.prefix? attrs.prefix + "_offset" : "offset"
def _total = attrs.prefix? attrs.prefix + "_total" : "total"
def writer = out
if (attrs.total == null) {
@halfbaked
halfbaked / Config.groovy
Created December 11, 2012 21:01
How to include Config Partials placed in src/java (Grails)
grails.config.locations = [ "classpath:Config-core-main.groovy",
"classpath:Config-core-logging.groovy",
"classpath:Config-core-sec.groovy" ]