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
define('social/util', | |
['dependentLib'], | |
function(){ | |
var myUtilLib = _.extend({ | |
init: function(){ | |
this.trigger("myUtilLib:init", "init message"); | |
}, | |
destroy: function(){ | |
this.trigger("myUtilLib:destroy", "destroy message"); |
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
- (void)viewDidLoad | |
{ | |
//hide backbutton | |
[self.navigationItem setHidesBackButton:YES]; | |
//hide the complete navigation bar | |
[self.navigationController setNavigationBarHidden:YES]; | |
//hide tool bar | |
self.navigationController.toolbarHidden=YES; | |
} |
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
//The options object must have set, changeHash:true, as in the first example | |
//1 | |
$.mobile.pageContainer.pagecontainer("change", "pageID", { reload:true, transition:'flow', changeHash:true }); | |
//alternates | |
//2 | |
$(":mobile-pagecontainer").pagecontainer("change", "target", { options }); | |
//3 | |
$("body").pagecontainer("change", "target", { options }); |
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
- (void)viewWillAppear:(BOOL)animated | |
{ | |
// View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView), | |
// you can do so here. | |
//Original | |
//[super viewWillAppear:animated]; | |
//Fix for Cordova on iOS 7 | |
//Lower screen 20px on ios 7 |
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
node bin/kii-servercode.js deploy-file --file path/to/myServerCode.js --site us --app-id <AppID> --app-key <AppKey> --client-id <ClientID> --client-secret <ClientSecret> |
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
// | |
var express = require('express'); | |
var app = express(); | |
app.all('*', function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "X-Requested-With"); | |
next(); | |
}); |
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 | |
{ | |
import com.saumya.study.MyProxyObject; | |
import flash.display.MovieClip; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.utils.Proxy; | |
import flash.utils.flash_proxy; | |
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.saumya.study | |
{ | |
import flash.utils.Dictionary; | |
import flash.utils.Proxy; | |
import flash.utils.flash_proxy; | |
/** | |
* Learning the proxy object | |
* @author saumya | |
* @version 0.0.1 |
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
void main() { | |
//print("Hello, World!"); | |
num a=24; | |
printNumber(a); | |
var b=45;//declaring without a type declaration, but you can see assigning a string to this will throw compile time error | |
printNumber(b); | |
Joe j=new Joe(); | |
//print(j.age);//can not access private var | |
print('j is of ${j.userAge}');//getter | |
j.userAge=30;//setter |
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
#jQuery -> | |
# console.log "DOM Ready : 1 : Hello World" | |
#jQuery(document).ready -> | |
# console.log "DOM Ready : 2 : " | |
#jQuery(window).load -> | |
# console.log "DOM Ready : 3 : " | |
#jQuery Mobile | |
jQuery(document).on 'pageinit', -> | |
console.log 'Coffe Script says : Page initialised !' |
OlderNewer