Skip to content

Instantly share code, notes, and snippets.

View tmshv's full-sized avatar

Roman Timashev tmshv

View GitHub Profile
BEGIN MESSAGE.
rUZRGOrombFV6R2 EOab07kqYqlYrn1 h9XitqF8Zh4n8RW jFq52IIMHFb00re
NiCD4DDAdcp1xyV l5tyoY0PjmvTCKq 6Xr2MZHgg6hEIhb 9tUPzsdC4uezhim
od00DAYi6QC2FFK MYyEhQC7Foa1r64 98egGqjEfx5xt5U 9203LgDBy4xNFEc
qvzKDZ5UfumnDYc 5uGck7ygIPQxcJQ wR8Kz.
END MESSAGE.
Verifying my Blockstack ID is secured with the address 1BbH666tAPCPTULP8mv8wj64yeF4dGyREr https://explorer.blockstack.org/address/1BbH666tAPCPTULP8mv8wj64yeF4dGyREr

Keybase proof

I hereby claim:

  • I am tmshv on github.
  • I am tmshv (https://keybase.io/tmshv) on keybase.
  • I have a public key whose fingerprint is 343B C210 F402 990D C5FD 3FA9 F334 74B9 F79F 15F7

To claim this, I am signing this object:

@tmshv
tmshv / rect.pde
Created May 10, 2016 11:56
Rect in Processing
class Rectangle {
PVector lt;
float width;
float height;
Rectangle(PVector lt, float width, float height){
this.lt = lt;
this.width = width;
this.height = height;
}
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
public class Testtriangle {
Rtriangle triangle;
@tmshv
tmshv / letsencrypt-renew
Last active January 4, 2016 07:48 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
#!/bin/bash
web_service='nginx'
if [ "$1" == "" ]; then
echo "[ERROR] you should specify config path as parameter"
exit 1;
else
config_file="$1"
fi
@tmshv
tmshv / sketch_151208a_sound_toggle.pde
Created December 8, 2015 17:57
Processing Sound Toggle
import processing.sound.*;
class Sound {
SoundFile file;
boolean playing;
Sound(PApplet app, String path){
file = new SoundFile(app, path);
playing = true;
}
@tmshv
tmshv / gh_state.py
Last active December 8, 2015 18:33
Grasshopper Last State
# x is input value with list type
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino
sc.doc = Rhino.RhinoDoc.ActiveDoc
lastValue = rs.GetDocumentData('hello', 'lastState')
currentValue = ','.join(map(str, x))
import processing.serial.*;
import processing.video.*;
Serial port;
String portName;
Movie actionMovie;
Movie defaultMovie;
Movie movie;
@tmshv
tmshv / tor_python.py
Last active December 8, 2015 13:30
Stem usage example
import socks
import socket
from stem import Signal
from stem.control import Controller
control_port = 9051
proxy_port = 9050
proxy_host = 'localhost'
tor = Controller.from_port(port=control_port)