If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:
var component = <Component foo={x} bar={y} />;
Mutating Props is Bad, mkay
// Returns true or false if flash installed or not. Tested with IE8 on Windows 7 and Chrome on Win7 and Mac. | |
(function() { var ie_flash; try { ie_flash = (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) !== false) } catch(err) { ie_flash = false; } var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || ie_flash); return _flash_installed; })() |
var doc = null; | |
var flaPath = null; | |
var outputPath = null; | |
var recursiveSearch = true; | |
var suffix = "fla"; | |
run(); | |
function run() | |
{ |
var doc = fl.getDocumentDOM(); | |
var library = null; | |
var items = null; | |
var itemLen = null; | |
var item = null; | |
run(); | |
function run() | |
{ |
//@see http://keith-hair.net/blog/2010/03/21/resizing-flash-documents-to-fit-contents-in-jsfl/ | |
//@see http://stackoverflow.com/questions/8056990/how-does-one-get-the-stroked-bounds-of-a-symbol-in-jsfl | |
var doc = fl.getDocumentDOM(); | |
var timeline = doc.getTimeline(); | |
var layer = null; | |
var frame = null; | |
var element = null; | |
run(); |
List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.
http://www.w3.org/TR/WebCryptoAPI/
This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.
/** | |
* Streaming Video Test | |
* | |
* References: | |
* ----------- | |
* http://serverfault.com/questions/288137/how-to-stream-live-video-from-a-linux-server | |
* https://wiki.videolan.org/Stream_VLC_to_Website_with_asf_and_Flash#Method_2_H264_and_Flash_.flv | |
* http://blog.morscad.com/code-snippets/creating-a-video-player-in-as3-using-netstream/ | |
* | |
* Sample videos: |
Re: On layout & web performance by Kelly Norton
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>#lazyweb Is there any documentation about which jQuery functions/effects trigger layout? re: kellegous.com/j/2013/01/26/l…
— Dave Rupert (@davatron5000) January 28, 2013
getWidthOrHeight()
used in jQuery.fn.width/height
clientLeft
// Listen for orientation changes | |
window.addEventListener("orientationchange", function() { | |
// Announce the new orientation number | |
alert(window.orientation); | |
}, false); | |
// Listen for resize changes | |
window.addEventListener("resize", function() { | |
// Get screen size (inner/outerWidth, inner/outerHeight) | |
#!/usr/bin/env bash | |
CURRENT_PATH=`pwd` | |
outdir="$CURRENT_PATH/out" | |
if [[ ! -d $outdir ]]; then | |
mkdir $outdir | |
fi | |
cd "$CURRENT_PATH/origin" | |
VIDEOS=`find . -name "*"` |