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
| var greetingTextField = [CPTextField labelWithTitle:translations.greeting[userLanguage]]; | |
| var farewellTextField = [CPTextField labelWithTitle.translations.farewell[userLanguage]]; |
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
| userLanguage = "en"; |
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
| @include "translations.j" |
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
| translations = { | |
| greeting: { | |
| en: "Hello!", | |
| de: "Hallo!", | |
| mn: "сайн байна уу?" | |
| }, | |
| farewell: { | |
| en: "Goodbye!", | |
| de: "Auf Wiedersehen!", | |
| mn: "баяртай!" |
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
| [[scrollview documentView] scrollRectToVisible: | |
| CGRectMake(0, CGRectGetHeight([[scrollview documentView] bounds])-1, 1, 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
| Some gist |
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
| /* | |
| * Jakefile | |
| * Mockingbird | |
| * | |
| * Created by Saikat Chakrabarti on March 16, 2010. | |
| * Copyright 2010, gomockingbird.com All rights reserved. | |
| */ | |
| var ENV = require("system").env, | |
| FILE = require("file"), |
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
| function getPosition(element) { | |
| var element = element._DOMElement; | |
| var x = 0; | |
| var y = 0; | |
| while(element != null) { | |
| x += element.offsetLeft; | |
| y += element.offsetTop; | |
| element = element.offsetParent; | |
| } | |
| return CGPointMake(x, y); |
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
| Installing necessary packages... | |
| org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: Bad language version: 180 | |
| at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1776) | |
| at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183) | |
| at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247) | |
| at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66) | |
| at org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_anonymous_1(Unknown Source) | |
| at org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1.call(Unknown Source) | |
| at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76) | |
| at org.mozilla.javascript.gen._usr_local_narwhal_engines_rhino_bootstrap_js_1._c_script_0(Unknown Source) |
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
| .pk-scroll-view | |
| { | |
| width:100%; | |
| height:100%; | |
| overflow:hidden; | |
| margin:0; | |
| padding:0; | |
| } | |
| .pk-scroll-view>.hosting-layer |