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 flash.display.Bitmap; | |
import flash.display.Sprite; | |
[Frame(factoryClass="com.mrinalwadhwa.ApplicationLoader")] | |
public class Example extends Sprite | |
{ |
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.mrinalwadhwa | |
{ | |
import flash.display.DisplayObject; | |
import flash.display.MovieClip; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.TimerEvent; | |
import flash.utils.Dictionary; |
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 flash.text.TextField; | |
import flash.display.Sprite; | |
import crayons.data.binding.Binder; | |
public class Example extends Sprite | |
{ | |
private var source:SomeModel; | |
private var target:TextField; |
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 crayons.signals.ChangeSignal; | |
public class SomeModel | |
{ | |
private var _data:String; | |
public var dataChanged:ChangeSignal; | |
public function SomeModel() |
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
protected function while_loop1():void { | |
var l:int = 500000000, | |
i:int = 0; | |
while (i < l){ | |
i++; | |
} | |
} | |
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 addStyleSheet = document.createStyleSheet || function(styles){ | |
var css = document.createElement('style'); | |
css.setAttribute("type","text/css"); | |
css.appendChild(document.createTextNode(styles)); | |
document.getElementsByTagName('head')[0]).appendChild(css); | |
} | |
function isHyphensAutoSupported(result){ | |
try { | |
var |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7" lang="en"><![endif]--> | |
<!--[if IE 7]><html class="lt-ie9 lt-ie8" lang="en"><![endif]--> | |
<!--[if IE 8]><html class="lt-ie9" lang="en"><![endif]--> | |
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Box</title> | |
<style> |
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
# tools.ietf.org/html/rfc2397 | |
# developer.mozilla.org/en/data_URIs | |
require 'base64' | |
require 'cgi' | |
# based on segment7.net/projects/ruby/datafy | |
def to_datauri(content, content_type) | |
outuri = 'data:' + content_type | |
unless content_type =~ /^text/i # base64 encode if not text |
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
# Create an OSX Vagrant Box | |
# Run this script from the directory that has InstallESD.dmg in it | |
# Get InstallESD.dmg using the method described on this link | |
# http://hints.macworld.com/article.php?story=20110831105634716 | |
# Setup a vagrant box | |
# http://garylarizza.com/blog/2013/01/20/using-veewee-to-build-os-x-vms/ | |
git clone git://github.com/jedi4ever/veewee.git |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
is_xcode_cli_tools_installed() { | |
xcode-select -p >/dev/null 2>&1 | |
[[ $? -eq 0 ]] | |
} |
OlderNewer