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
@tmshv
tmshv / classify_point.js
Created August 6, 2012 14:30
Определение положения точки относительно направленного отрезка прямой линии
/**
* define type of point relativly line
* point: {x:[number], y:[number]}
* line:
{
first:{x:[number], y:[number]},
second:{x:[number], y:[number]}
}
*/
function classify(point, line) {

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
//
// City.h
// Hexlet Metropolis
//
// Created by Roman Timashev on 10/11/13.
// Copyright (c) 2013 Roman Timashev's Company. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// DNA.h
// Hexlet DNA
//
// Created by Roman Timashev on 12/11/13.
// Copyright (c) 2013 Roman Timashev's Company. All rights reserved.
//
#import <Foundation/Foundation.h>
@tmshv
tmshv / sketch_130911a_arch_calc.pde
Created September 19, 2013 21:13
How to launch sketch: 1. download Processing: (https://processing.org/download/); 2. download Control P5 library: (http://www.sojamo.de/libraries/controlP5/); 3. extract Control P5 library to Processing libraries folder (Documents/Processing/libraries); 4. paste & run sketch code; 5. profit; press "q" to render pdf file;
/*
* SPbGASU::Architecture::1a5::Roman Timashev (roman@tmshv.ru)
* The Sketch is licensed under the MIT license. (http://opensource.org/licenses/MIT)
*/
import controlP5.*;
import processing.pdf.*;
ControlP5 cp5;
int population;