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> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"> | |
<link href="tweetable.css" rel="stylesheet"> | |
</head> | |
<body> | |
<p>Blabla bla <tweetable>tohle bude text tweetu</tweetable> bla bla</p> | |
<p>Blabla bla <tweetable title="tohle bude text tweetu">bla bla bla</tweetable></tweetable> bla bla</p> |
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> | |
<html> | |
<head> | |
<style> | |
table.sevenseg{ | |
background-color:#000000; | |
vertical-align: top; | |
display:inline-block; | |
margin:0; | |
padding:0; |
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
function toHex2($n) { | |
$o = dechex($n); | |
if (strlen($o)<2) $o='0'.$o; | |
return strtoupper($o); | |
}; | |
function genrl($code,$ins, $DD, $IX) { | |
$n = ''; | |
$n .= " case '${DD}CB".toHex2($code+0)."': return '".$ins." ($IX+'+p2+'),B';\n"; | |
$n .= " case '${DD}CB".toHex2($code+1)."': return '".$ins." ($IX+'+p2+'),C';\n"; |
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
#include <Wire.h> | |
char inputString[200]; | |
uint8_t ipos = 0; | |
boolean stringComplete = false; | |
void setup() { | |
Serial.begin(9600); | |
Wire.begin(); | |
ipos = 0; |
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
/* | |
* Example code showing of to send any datatype - 12 bytes max - (in this example, a struct of | |
* GPS coordinate) to SigFox network with a SmartEverything prototyping board | |
* (http://www.smarteverything.it/). | |
* | |
* - GPS frame decoding is made with TinyGPS library (https://github.com/mikalhart/TinyGPS). | |
* - SigFox modem communication is done through direct AT commands. This code is minimalist : | |
* it doesn't manage downlink messages, and it's error management is sort of non existant. | |
* | |
* Why don't I use official SmartEverything libraries (https://github.com/ameltech/) ? |
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
#include "FastLED.h" | |
// How many leds in your strip? | |
#define NUM_LEDS 50 | |
// For led chips like Neopixels, which have a data line, ground, and power, you just | |
// need to define DATA_PIN. | |
#define DATA_PIN 3 | |
// Define the array of leds |
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
function Environment(parent) { | |
this.vars = Object.create(parent ? parent.vars : null); | |
this.parent = parent; | |
} | |
Environment.prototype = { | |
extend: function() { | |
return new Environment(this); | |
}, | |
lookup: function(name) { | |
var scope = this; |
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
int RED = A2; | |
int YELLOW = A3; | |
int GREEN = 13; | |
int BUTTON = 2; | |
#include <avr/sleep.h> // library for sleep | |
#include <avr/power.h> // library for power control | |
int currentState = 0; |
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
cpu Z80 | |
memory.ram.from 0x1000 | |
memory.ram.to 0x13ff | |
memory.rom.from 0x0000 | |
memory.rom.to 0x0fff | |
;serial simple | |
;serial.in 1 | |
;serial.out 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
.ORG 0 | |
.ENGINE mac | |
SERIALCTRL = 00h | |
SERIALDATA = 01h | |
DI | |
IM 1 | |
LD sp,ramtop | |
JR cold |
OlderNewer