This file contains hidden or 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 DjVu = (function () { | |
'use strict'; | |
function DjVuScript() { | |
'use strict'; | |
var DjVu = { | |
VERSION: '0.5.4', | |
IS_DEBUG: false, | |
setDebugMode: (flag) => DjVu.IS_DEBUG = flag |
This file contains hidden or 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
/* | |
23/12/2019 | |
Umberto Cerrato | |
Questo programma mostra un numero a due cifre su due display a sette segmenti collegati ad Arduino ai pin digitali (D0-D13) | |
(Programma non commentato) | |
*/ | |
int a=66; | |
int dec_b, unit_a; |
This file contains hidden or 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
from PIL import Image | |
array = bytearray() | |
colors = 0 | |
with open("palette.txt") as palette: | |
for color in palette: | |
# print(color[1:7] + '\n') | |
data = bytearray.fromhex(color[1:7]) | |
array += data |
This file contains hidden or 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
<script> | |
function downloadHTML() { | |
var divDef = document.querySelector("div.default").innerHTML; | |
var title = "<data:post.title/>" + ".html"; | |
if (divDef) { | |
var pom = document.createElement('a'); | |
pom.setAttribute('href', 'data:text/html;charset=utf-8,' + encodeURIComponent(divDef)); | |
pom.setAttribute('download', title); |