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.
package net.abhinavsarkar.util; | |
import java.util.Iterator; | |
import java.util.concurrent.BrokenBarrierException; | |
import java.util.concurrent.CyclicBarrier; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.SynchronousQueue; | |
import java.util.concurrent.ThreadFactory; | |
import java.util.concurrent.TimeUnit; |
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"; | |
} |
to get a list of free programming books, here's the list from a Zed Shaw & Co. programming-related, profanity-filled website. | |
<div style="text-align: left"> | |
<table> | |
<tbody><tr><th colspan="3">Programming Languages</th> | |
</tr><tr> | |
<td><a href="#Assembly Language">Assembly Language</a></td> | |
<td><a href="#Bash">Bash</a></td> | |
<td><a href="#C / C++">C / C++</a></td> | |
</tr> |
(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> |