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.Tax = Ember.Object.extend({}); | |
App.taxesController = Ember.ArrayController.create({ | |
content: [ | |
{name:"tax1",rate:"10",number_id:"TaxIDNum"}, | |
{name:"tax2",rate:"9",number_id:null} | |
], | |
newTax: function() { | |
this.pushObject(App.Tax.create({})); | |
}, |
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
<!DOCTYPE html><head><script> | |
// ಠ === ಠ | |
var frames = [ | |
" The iFuck ", | |
" The iFuck ", | |
" The iFuck ", | |
" The iFuck ", | |
" The iFuck ", | |
" The iFuck ", | |
" The iFuck ", |
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
@interface ExampleObject : NSObject { | |
@public | |
NSString *name; | |
NSUInteger distance; | |
} | |
@property (nonatomic, retain) NSString *name; | |
@property (nonatomic) NSUInteger distance; | |
+ (ExampleObject *)itemWithName:(NSString *)initName |
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 ExtBaseHandler(BaseHandler): | |
allowed_methods = ('GET', 'POST', 'PUT', 'DELETE',) | |
def create(self, request, *args, **kwargs): | |
print "create" | |
if not self.has_model(): | |
return rc.NOT_IMPLEMENTED | |
print request.data | |
attrs = self.flatten_dict(request.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
@mixin font-face($font-family, $url) { | |
@font-face { | |
font-family: '#{$font-family}'; | |
src: url('#{$url}.eot?') format('eot'), url('#{$url}.woff') format('woff'), url('#{$url}.ttf') format('truetype'); | |
} | |
} |
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
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): FATAL EXCEPTION: main | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cymbeo.App/com.cymbeo.App.RemoteViewActivity}: java.lang.NullPointerException | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.app.ActivityThread.access$1500(ActivityThread.java:117) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.os.Handler.dispatchMessage(Handler.java:99) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at android.os.Looper.loop(Looper.java:123) | |
08-01 16:24:54.038: ERROR/AndroidRuntime(2181): at |
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
// If XML element is a tabview, build TabHost, TabWidget, FrameLayout, and LinearLayout to house tabs | |
if (N.equals("tabview")) { | |
TabHost th = new TabHost(context); | |
th.setId(android.R.id.tabhost); | |
TabWidget tw = new TabWidget(context); | |
tw.setId(android.R.id.tabs); | |
FrameLayout fl = new FrameLayout(context); |
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
<linearlayout orientation="vertical" width="100%" height="100%"> | |
<tabview width="100%" height="50%"> | |
<tab label="Tab 1"> | |
<linearlayout orientation="vertical" width="100%" height="100%"> | |
<image src="http://example.com/image.png" width="50" height="80"/> | |
<image src="http://example.com/image.png" width="200" height="80"/> | |
</linearlayout> | |
</tab> | |
<tab label="Tab 2" icon="http://example.com/icon.png"> | |
<linearlayout orientation="vertical" width="100%" height="100%"> |
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
(add-hook 'org-clock-in-hook | |
(lambda () | |
(when (string-match "^tweet" org-clock-heading) | |
(message | |
(shell-command-to-string (concat | |
"ttytter -status='" | |
(replace-regexp-in-string "^tweet " "" org-clock-heading) | |
"'")))))) |
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
UPDATE customer_entity_int SET value =123 WHERE attribute_id =925 |