Data URI manipulation made easy.
This isn't very robust, and will reject a number of valid data URIs. However, it meets the most useful case: a mimetype, a charset, and the base64 flag.
This is the gist used for the Adobe Summit labs | |
ex1 https://www.youtube.com/watch?v=mIlI2T_GXM8&feature=youtu.be | |
ex2 https://www.youtube.com/watch?v=TtP71cZ3zBo&feature=youtu.be | |
ex3 https://www.youtube.com/watch?v=Cemp0J34LTM&feature=youtu.be |
if ($type == MAGIC_URL_EMAIL) | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append"; | |
} | |
else | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append"; | |
} | |
return $html; |
if ($type == MAGIC_URL_EMAIL) | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append"; | |
} | |
else | |
{ | |
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append"; | |
} |
function parse(str) { | |
var ir = Packages.jdk.nashorn.internal.ir; | |
var runtime = Packages.jdk.nashorn.internal.runtime; | |
var parser = Packages.jdk.nashorn.internal.parser; | |
var context = runtime.Context.getContext(); | |
var source = new runtime.Source('test', str); | |
var node = new parser.Parser(context.getEnv(), source, new runtime.Context.ThrowErrorManager(), true).parse(); | |
var lexContext = new ir.LexicalContext(); |
Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
Example: -F"":operation=delete"" | |
Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
(defn queue | |
[& c] | |
(into | |
(clojure.lang.PersistentQueue/EMPTY) | |
c)) | |
(defn k-combos | |
[k r] | |
(if (zero? k) nil | |
(letfn |
Prerequisites:
Software components used:
IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.
This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].
Name | Size (KB) | License | Type | Unit Tests | Docs | Repository | Notes |
---|---|---|---|---|---|---|---|
Akihabara | 453 | GPL2, MIT | Classic Repro | no | API | github | Intended for making classic arcade-style games in JS+HTML5 |
AllBinary Platform | Platform Dependent | AllBinary | 2D/2.5D/3D | n |
<div class="input-prepend"> | |
<span class="add-on">Day: </span | |
<select name="day" id="day" class="input-block-level"> | |
<!-- 1 = Sunday ... --> | |
<!-- somewhere in a common location in your code: $days = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); --> | |
<?php foreach($days as $d=>$n): ?> | |
<option value="<?php echo $d;?>" <?php if ($d == $col) echo 'selected="selected"'; ?>><?php echo $n?></option> | |
<?php endforeach; ?> | |
</select> | |
</div> |