Skip to content

Instantly share code, notes, and snippets.

View tmshv's full-sized avatar

Roman Timashev tmshv

View GitHub Profile
//
// 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>
@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
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 / 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;
}

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 / 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) {
Verifying my Blockstack ID is secured with the address 1BbH666tAPCPTULP8mv8wj64yeF4dGyREr https://explorer.blockstack.org/address/1BbH666tAPCPTULP8mv8wj64yeF4dGyREr
BEGIN MESSAGE.
rUZRGOrombFV6R2 EOab07kqYqlYrn1 h9XitqF8Zh4n8RW jFq52IIMHFb00re
NiCD4DDAdcp1xyV l5tyoY0PjmvTCKq 6Xr2MZHgg6hEIhb 9tUPzsdC4uezhim
od00DAYi6QC2FFK MYyEhQC7Foa1r64 98egGqjEfx5xt5U 9203LgDBy4xNFEc
qvzKDZ5UfumnDYc 5uGck7ygIPQxcJQ wR8Kz.
END MESSAGE.