JavaScript Value | JavaScript Type | Java Type | Is Scriptable | Is Function |
---|---|---|---|---|
{a:1, b:['x','y']} |
object |
org.mozilla.javascript.NativeObject |
+ | - |
[1,2,3] |
object |
org.mozilla.javascript.NativeArray |
+ | - |
1 |
number |
java.lang.Double |
- | - |
1.2345 |
number |
java.lang.Double |
- | - |
NaN |
number |
java.lang.Double |
- | - |
Infinity |
number |
java.lang.Double |
- | - |
-Infinity |
number |
java.lang.Double |
- | - |
true |
boolean |
java.lang.Boolean |
- |
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
javascript:var cwh;for(i in turntable)cwh||(cwh=i);$('#songboard_add').append($('<div>',{'class':'btn disk'}).css({'background-image':'url(http://s3.firstrule.net/cwh/cwh_ttfm_disk_dark.png)'}).click(function(x){window.open(location.protocol+"//"+location.host+"/getfile/?roomid="+turntable[cwh]['roomId']+"&rand="+Math.random()+"&fileid="+turntable[cwh]['currentSong']['_id']+"&downloadKey="+$.sha1(turntable[cwh]['currentSong']['_id']+turntable[cwh]['roomId']))})) |
Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
1.) Open any application | |
2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
3.) Release Power button | |
4.) Press and hold Home button Lightly | |
until screen returns to icon screen |
var UI = {}; | |
var W = {}; | |
var V = {}; | |
var AUTODETECT_NONE = Ti.UI.iOS.AUTODETECT_NONE; | |
var AUTODETECT_ALL = Ti.UI.iOS.AUTODETECT_ALL; | |
var AUTODETECT_PHONE = Ti.UI.iOS.AUTODETECT_PHONE; | |
var AUTODETECT_LINK = Ti.UI.iOS.AUTODETECT_LINK; | |
var AUTODETECT_ADDRESS = Ti.UI.iOS.AUTODETECT_ADDRESS; | |
var AUTODETECT_CALENDAR = Ti.UI.iOS.AUTODETECT_CALENDAR; |
var preventCloseEvent = function() { | |
var appWindow = Ti.UI.getCurrentWindow(); | |
appWindow.addEventListener(Ti.CLOSE, function(event) { | |
appWindow.hide(); | |
event.preventDefault(); | |
return false; | |
}); | |
return appWindow; |
This took me several hours to figure out so I figured it was worth writing down.
Hopefully this step by step can be used to get node running locally without a lot of problems that are commonly ran into.
Update July 7th 2014 - Updated most of the versions including not pointing to the heartbleed version of OpenSSL
#WebStorm
Cygwin
with "PowerBash"
Begin with the guide by @nullivex here for general installation. NOTE: This is all with 32-bit stuff even on x64 platform. Cygwin32
, and WebStorm
and Node.js
etc all set up 32-bit. You may skip the Git
parts of that guide, and instead install Cygwin
and the git
and openssh
it contains. Otherwise, you must NOT set up git
in Cygwin
so that the Native Git
is found. But, that would sort of negate most of the gains herein. If you already use Cygwin
and its git
and have openssh
keys all set up for Github and etc, this is a way to keep one set of configurations, and a familiar shell.
This will set up WebStorm
to use Cygwin
versions of everything except for:
Node.js
(because there is noCygwin
version currently)Python
(because some of theNode.js
/npm
thin
#!/bin/bash | |
# For this to work, you need to have ffmpeg | |
# installed with libvorbis, theora and libvpx ENABLED | |
# to do that in Homebrew: | |
# brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-theora | |
# | |
# encoding reference: | |
# https://blog.mediacru.sh/2013/12/23/The-right-way-to-encode-HTML5-video.html |