ABConnect will help you to connect graphically two HTML elements with smart dependency-free JavaScript lines.
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
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
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
<audio> + random + autoplay |
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
neu/*! | |
Pure v1.0.0 | |
Copyright 2013 Yahoo! | |
Licensed under the BSD License. | |
https://github.com/yahoo/pure/blob/master/LICENSE.md | |
*/ | |
/*! | |
normalize.css v^3.0 | MIT License | git.io/normalize | |
Copyright (c) Nicolas Gallagher and Jonathan Neal | |
*/ |
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
.zamiere .panel { | |
background:#3C3F41; | |
} | |
.zamiere #status-bar, | |
.zamiere #status-indicators { | |
background:#242424; | |
color:#ccc; | |
} |
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
<figure> | |
<img src=\"$${src}\" width=\"$${width}\" height=\"$${height}\" alt=\"$${alt}\" /> | |
<figcaption>$${caption}</figcaption> | |
</figure> |
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 ctx = modul.context; | |
// Skin | |
function checkpt(ledColor){ | |
function circle(x, y, r, col){ | |
ctx.beginPath(); | |
ctx.fillStyle = col; | |
ctx.arc(x, y, r, 0, Math.PI * 2, false); | |
ctx.closePath(); | |
ctx.fill(); |
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
// follow | |
var activeFollow = false; | |
function follow(){ | |
var siblingModuls = modul.sonar(); | |
var c = modul.coordinates(); | |
if(siblingModuls.length === 0){ | |
ui.log("You seem alone…"); | |
}else{ | |
var modul1 = siblingModuls[0]; | |
var mc = modul1.coordinates(); |
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 activeGoto = false; | |
var posGoto = [0,0]; | |
function goto() { | |
var c = modul.coordinates(); | |
if (c[0] > posGoto[0]) { | |
modul.move("left"); | |
} else if (c[0] < posGoto[0]) { | |
modul.move("right"); | |
} | |
if (c[1] > posGoto[1]) { |
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
// emission | |
function com(msg){ | |
var siblingModuls = modul.sonar(); | |
if(siblingModuls.length === 0){ | |
ui.log("Nothing sent, you seem alone…"); | |
}else{ | |
var modul1 = siblingModuls[0]; | |
var modulimg = modul1.image(); | |
modul1.send(msg); | |
ui.log("Your modul sent “"+msg+"”"); |
NewerOlder