This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Gl::TransactionsController < ApplicationController | |
| def new | |
| end | |
| def create | |
| teller = Gl::TellerService.new() | |
| response = teller.transfer_funds(params) | |
| if response.successful? | |
| @transactions = response.data | |
| respond_with @transactions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%customizable_form_for @test, :permissions => @current_user do |f|%> | |
| <%=f.arrangeble_fields do%> | |
| <%f.text_field :name%> | |
| <%f.text_field :number%> | |
| <%f.check_box :active%> | |
| <%end%> | |
| <%=field_set_tag "Custom Fields" do%> | |
| <%=f.custom_fields :custom%> | |
| <%end%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def pm = org.codehaus.groovy.grails.plugins.PluginManagerHolder.pluginManager; | |
| for ( plugin in pm.getAllPlugins() ) { | |
| for ( wp in plugin.getWatchedResourcePatterns() ) { | |
| if ( "plugins" == wp.getDirectory()?.getName() && "groovy" == wp.getExtension() ) | |
| wp.extension = "groovyXX"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (Ext.firefoxVersion >= 18) { | |
| var noArgs = []; | |
| Ext.override(Ext.Base, { | |
| callParent : function(args) { | |
| var method, superMethod = (method = this.callParent.caller) && | |
| (method.$previous || ((method = method.$owner ? | |
| method : | |
| method.caller) && method.$owner.superclass[method.$name])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'oohlalog' | |
| Oohlalog.api_key = "MY API KEY HERE" | |
| logger = Oohlalog::Logger.new(10) | |
| logger.add(Oohlalog::WARN,"My warning Message","My App Name") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb | |
| sudo dpkg -i elasticsearch-0.90.2.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git ls-tree -r HEAD|sed -re 's/^.{53}//'|while read filename; do file "$filename"; done|grep -E ': .*text'|sed -r -e 's/: .*//'|while read filename; do git blame -w "$filename"; done|sed -r -e 's/.*\((.*)[0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/' -e 's/ +$//'|sort|uniq -c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SpudPermalinksUrlMappings { | |
| static mappings = { | |
| "/spud/admin/permalinks"(resources: 'permalinks', namespace: 'spud_admin') | |
| "/spud/admin/permalinks/$id/delete"(controller: 'permalinks', action: 'delete', method: 'POST', namespace: 'spud_admin') | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DS.RESTAdapter.reopen({ | |
| pathForType: function(type) { | |
| return Ember.String.camelize(type); | |
| } | |
| }); | |
| App.ApplicationSerializer = DS.RESTSerializer.extend({ | |
| normalizePayload: function(type, payload) { |
OlderNewer