Skip to content

Instantly share code, notes, and snippets.

View CapacitorSet's full-sized avatar

Giulio Muscarello CapacitorSet

View GitHub Profile
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true

Keybase proof

I hereby claim:

  • I am capacitorset on github.
  • I am capacitorset (https://keybase.io/capacitorset) on keybase.
  • I have a public key ASDkwL4VZiUCkNR7yfFYv8c1Iz27eKKNds3VF7yhNadM1Ao

To claim this, I am signing this object:

library(caTools) # external package providing write.gif function
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F",
"yellow", "#FF7F00", "red", "#7F0000"))
m = 4000 # define size
C = complex( real=rep(seq(-1.8,0.6, length.out=m), each=m ),
imag=rep(seq(-1.2,1.2, length.out=m), m ) )
C = matrix(C,m,m) # reshape as square matrix of complex numbers
Z = 0 # initialize Z to zero
X = array(0, c(m,m)) # initialize output 2D array
for (k in 1:20) { # loop with 20 iterations
library(caTools) # external package providing write.gif function
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F",
"yellow", "#FF7F00", "red", "#7F0000"))
m = 600 # define size
C = complex( real=rep(seq(-1.8,0.6, length.out=m), each=m ),
imag=rep(seq(-1.2,1.2, length.out=m), m ) )
C = matrix(C,m,m) # reshape as square matrix of complex numbers
Z = 0 # initialize Z to zero
X = array(0, c(m,m,20)) # initialize output 3D array
for (k in 1:20) { # loop with 20 iterations
Stazione Anno Media invernale
Pastori 1995 4.7
Pastori 1996 5.6
Pastori 1998 9.7
Ziziola 1998 6.1
Ziziola 1999 4.2
Pastori 1999 5.0
Pastori 2000 5.2
Ziziola 2000 4.9
Ziziola 2001 5.2
Pastori 2015-01-01 00:00:00 -1,3
Pastori 2015-01-01 00:10:00 -1,3
Pastori 2015-01-01 00:20:00 -1,2
Pastori 2015-01-01 00:30:00 -0,9
Pastori 2015-01-01 00:40:00 -0,7
Pastori 2015-01-01 00:50:00 -0,5
Pastori 2015-01-01 01:00:00 -0,2
Pastori 2015-01-01 01:10:00 0
Pastori 2015-01-01 01:20:00 0,2
Pastori 2015-01-01 01:30:00 0,1
Ziziola 2015-01-01 00:00:00 -2
Ziziola 2015-01-01 00:10:00 -1,9
Ziziola 2015-01-01 00:20:00 -2
Ziziola 2015-01-01 00:30:00 -2,2
Ziziola 2015-01-01 00:40:00 -2,3
Ziziola 2015-01-01 00:50:00 -2,4
Ziziola 2015-01-01 01:00:00 -2,4
Ziziola 2015-01-01 01:10:00 -2,4
Ziziola 2015-01-01 01:20:00 -2,4
Ziziola 2015-01-01 01:30:00 -2,4
import serial
with serial.Serial("COM3", 9600) as ser:
while True:
s = ser.read()
if (s == b'o'):
print "Restart"
# Alive
ser.write(b'n')
"use strict";
var async = require("async"),
net = require("net"),
TelegramBot = require('node-telegram-bot-api');
var q = async.queue((item, cb) => {
console.log(item);
mandaComando(item, cb);
});
int i;
void segwrite(int n);
void loop() {
if (digitalRead( 9)) { i--; goto nextstep; }
if (digitalRead(10)) { i++; goto nextstep; }
return;
nextstep:
if (i < 0) i = 0;