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
package com.favtest.app; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.support.v7.app.ActionBarActivity; | |
import android.support.v7.app.ActionBar; | |
import android.support.v4.app.Fragment; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.Menu; |
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
@Override | |
public boolean onOptionsItemSelected(MenuItem menuItem) { | |
if (menuItem.getTitle().toString().equalsIgnoreCase("save")) { | |
new CreateItemTask(this,itemName.getText().toString(), catId).execute(); | |
Intent returnIntent = new Intent(); | |
returnIntent.putExtra("result", "one"); | |
setResult(RESULT_OK, returnIntent); | |
finish(); | |
return true; | |
} |
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
somegist |
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 MyMapScreen < PM::MapScreen | |
title "My Map" | |
start_position latitude: 35.090648651123, longitude: -82.965972900391, radius: 4 | |
def on_appear | |
update_annotation_data | |
end | |
def annotation_data | |
[{ |
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 FormController < Formotion::FormController | |
include BW::KVO | |
def initWithSomething | |
puts "came ere" | |
@form = Formotion::Form.new({ | |
title: "", | |
sections: [ | |
{ | |
rows: [ { |
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
App.obj = Ember.Object.create({ | |
"things": Ember.A(["Dog", "CAT", "Rat"]) | |
}); | |
App.ApplicationController = Ember.ArrayController.extend({ | |
selectterm: null, | |
submit: function (context) { | |
var term = this.get("selectterm"); | |
alert(term); | |
} |
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
{ | |
"meta": { | |
"code": 200 | |
} | |
"response": { | |
"stuff": [{ | |
"id": 1, | |
"author": "someone", | |
"book": "some book" | |
}, |
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
package myapp | |
class Foo { | |
String message | |
static constraints = { | |
message nullable: true, blank: true | |
} |
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 save() { | |
request.withFormat { | |
json { | |
println "came here" | |
render params?.colors?.myParam | |
} | |
html { | |
render "html" |
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
~/springws/spring-ws/samples/tutorial $ mvn jetty:run | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Spring WS Holiday Service Tutorial 2.1.4.RELEASE-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] >>> maven-jetty-plugin:6.1.26:run (default-cli) @ tutorial >>> | |
[WARNING] The POM for org.springframework.ws:spring-ws-core:jar:2.1.4.RELEASE-SNAPSHOT is missing, no dependency information available | |
[INFO] ------------------------------------------------------------------------ |