Install templating engine pip install jinja2
.
Create files generate.py
and template.html
in the same directory.
After running python ./generate.py
you should see file output.html
with following content.
zzzz
#include <Adafruit_NeoPixel.h> | |
#define PIN 1 | |
#define WAIT 40 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(7, PIN, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
strip.begin(); | |
strip.setBrightness(255); |
#include <Adafruit_NeoPixel.h> | |
#define PIN 1 | |
#define WAIT 40 | |
// pouzivame knihovnu Adafruit_NeoPixel pro komunikaci s diodou | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
// Zakladni nastaveni diody |
file_name = 'xxx-win.txt' | |
import codecs | |
BLOCKSIZE = 1048576 # or some other, desired size in bytes | |
with codecs.open(file_name, "r", "windows-1250") as sourceFile: | |
with codecs.open(file_name + 'utf', "w", "utf-8") as targetFile: | |
while True: | |
contents = sourceFile.read(BLOCKSIZE) | |
if not contents: |
{ | |
"name": "cool-project", | |
"version": "1.0.0", | |
"description": "", | |
"main": "webpack.js", | |
"dependencies": { | |
"css-loader": "^0.23.1", | |
"extract-text-webpack-plugin": "^1.0.1", | |
"html-webpack-plugin": "^2.22.0", | |
"sass-loader": "^4.0.0", |
Inspired by STRV's example project https://github.com/strvcom/React-Meetup
/components
<!-- | |
Misto [email protected] dej svuj email :) | |
--> | |
<form class="grid-form" method="post" action="https://formspree.io/[email protected]"> | |
<div class="form-control narrow"> | |
<label for="name">Jmeno</label> | |
<input name="name" id="name" type="text"> | |
</div> | |
<div class="form-control narrow"> | |
<label for="email">Email</label> |
I hereby claim:
To claim this, I am signing this object: