Skip to content

Instantly share code, notes, and snippets.

{
"meta": {
"code": 200
}
"response": {
"stuff": [{
"id": 1,
"author": "someone",
"book": "some book"
},
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);
}
class FormController < Formotion::FormController
include BW::KVO
def initWithSomething
puts "came ere"
@form = Formotion::Form.new({
title: "",
sections: [
{
rows: [ {
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
[{
@Omnipresent
Omnipresent / somegist
Created December 6, 2013 22:48
some gist
somegist
@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;
}
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;
<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="/>
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
[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'