This file contains 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 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 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 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 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 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 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 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
<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"> | |
<OperationRequest> | |
<HTTPHeaders> | |
<Header Name="UserAgent" Value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36"/> | |
</HTTPHeaders> | |
<RequestId>ecb727da-3cc7-4ea4-b7a3-869e90f869a7</RequestId> | |
<Arguments> | |
<Argument Name="Operation" Value="ItemSearch"/> | |
<Argument Name="Service" Value="AWSECommerceService"/> | |
<Argument Name="Signature" Value="bar/SKTWKZH1LQ97Rs2xNMwoYo="/> |
This file contains 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 MainController < UIViewController | |
.... | |
def display_login | |
animation = CATransition.animation | |
animation.setDuration(1) | |
animation.setType("kCATransitionFade") | |
self.view.layer.addAnimation(animation, forKey:nil) | |
@login = LoginController.alloc.init |
This file contains 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
[ethan@demo ~]$ easy_install | |
easy_install easy_install-2.6 easy_install-2.7 | |
[ethan@demo ~]$ easy_install-2.7 pip | |
error: can't create or remove files in install directory | |
The following error occurred while trying to add or remove files in the | |
installation directory: | |
[Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/test-easy-install-14871.write-test' |