Skip to content

Instantly share code, notes, and snippets.

View samgozman's full-sized avatar
🐹
Gophing around golang..

Sam Gozman samgozman

🐹
Gophing around golang..
View GitHub Profile
@samgozman
samgozman / tsv.pinescript
Created August 12, 2021 19:55
Time Segmented Volume (TSV) Indicator for Webull
study("Time Segmented Volume", shorttitle="TSV")
// ++++++++++ INPUTS ++++++++++ //
tsv_length = 13
ma_fast_length = 7
// ++++++++++ LOGIC - TSV ++++++++++ //
tsv = sum(close > close[1] or close < close[1] ? volume * (close - close[1]) : 0, tsv_length)
ma = sma(tsv, ma_fast_length)
@samgozman
samgozman / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.

@samgozman
samgozman / rd.gif
Last active April 1, 2025 15:04
you!
rd.gif
@samgozman
samgozman / ld.gif
Created April 12, 2019 15:38
loves
ld.gif
@samgozman
samgozman / rt.gif
Last active April 1, 2025 15:04
pig
rt.gif
@samgozman
samgozman / lt.gif
Last active April 1, 2025 15:04
Peppa
lt.gif
@samgozman
samgozman / cocoServo.ino
Created December 16, 2016 20:55
attiny85 считывает положение потенциометра для определения поворота сервопривода.
#include <SoftwareServo.h>
SoftwareServo servo;
int pos = 0;
void setup()
{
pinMode(3, INPUT);
servo.attach(0);
pos = map(analogRead(3), 0, 1023, 0, 179);
servo.write(pos);
@samgozman
samgozman / .ino
Created November 4, 2016 21:31
Код приёмника на manchester.h
#include "Manchester.h"
#define RX_PIN 4
#define LED_PIN 13
uint8_t moo = 1;
#define BUFFER_SIZE 22
uint8_t buffer[BUFFER_SIZE];
void setup()
{
@samgozman
samgozman / .ino
Last active November 4, 2016 21:29
Отправка массива с помощью manchester.h
#include <Manchester.h>
#define TX_PIN 5 //pin where your transmitter is connected
#define LED_PIN 13 //pin for blinking LED
uint8_t moo = 1; //last led status
uint8_t data[20] = {11, '1','2', '3', '4', '5', '6', '7', '8', '9','1','2','3','4','5','6','7','8','9'};
void setup()
{
pinMode(LED_PIN, OUTPUT);
@samgozman
samgozman / href-blank-no.js
Created April 25, 2015 17:22
Auto add attr target & rel
$(document).ready(function() {
$('a[href^="http://"], a[href^="https://"]').attr({
'target': '_blank',
'rel': 'nofollow'
});
});