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.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 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 | |
| { | |
| 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 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
| 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 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
| #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 !' |
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
| private void printFaceBookHash(String packageName){ | |
| String mAppPackage = packageName; | |
| try { | |
| PackageInfo info = getPackageManager().getPackageInfo( | |
| mAppPackage, PackageManager.GET_SIGNATURES); | |
| for (Signature signature : info.signatures) { | |
| MessageDigest md = MessageDigest.getInstance("SHA"); | |
| md.update(signature.toByteArray()); | |
| Log.d("KeyHash:", "===================================================="); | |
| Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>items</key> | |
| <array> | |
| <dict> | |
| <key>assets</key> | |
| <array> | |
| <dict> |
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
| 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 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
| - (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 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
| //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 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
| Ref: | |
| 1. http://cordova.apache.org/docs/en/3.4.0/guide_platforms_ios_tools.md.html#iOS%20Command-line%20Tools | |
| 2. http://cordova.apache.org/docs/en/3.4.0/plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins | |
| =================================================================== | |
| //From inside the project package | |
| ./create path/to/preoject/folder com.package.name ProjectName | |
| =================================================================== | |
| //From inside the Cordova project folder | |
| ====================================================================================== | |
| plugman install --platform ios --project . --plugin org.apache.cordova.battery-status |
OlderNewer