Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
High on catnip 🙀

Kirill Zubovsky kirillzubovsky

💭
High on catnip 🙀
View GitHub Profile
@kirillzubovsky
kirillzubovsky / Zubovsky-pop
Last active March 11, 2022 11:51
A simple html template for a floating corner popup, like the one you see on SmashNotes.com
View Zubovsky-pop
<link href="https://rsms.me/inter/inter.css" rel="stylesheet" type="text/css">
<style>
#zubovsky-pop-container{
-webkit-font-smoothing: subpixel-antialiased;
background-attachment: scroll;
background-clip: border-box;
background-color: rgb(14, 27, 46);
background-image: none;
background-origin: padding-box;
@kirillzubovsky
kirillzubovsky / script.js
Created June 7, 2019 07:07 — forked from katydecorah/script.js
Draft emails in Gmail from a Google spreadsheet https://katydecorah.com/code/google-sheets-to-gmail/
View script.js
var EMAIL_DRAFTED = "EMAIL DRAFTED";
function draftMyEmails() {
var sheet = SpreadsheetApp.getActiveSheet(); // Use data from the active sheet
var startRow = 2; // First row of data to process
var numRows = sheet.getLastRow() - 1; // Number of rows to process
var lastColumn = sheet.getLastColumn(); // Last column
var dataRange = sheet.getRange(startRow, 1, numRows, lastColumn) // Fetch the data range of the active sheet
var data = dataRange.getValues(); // Fetch values for each row in the range
@kirillzubovsky
kirillzubovsky / smash-notes-top-of-week
Created May 3, 2019 19:18
Banner to display your podcasting flare
View smash-notes-top-of-week
<a href="LINK_TO_YOUR_EPISODE" title="Smash Notes Top 10 Podcasts of the Week"><img src="https://s3.us-east-2.amazonaws.com/smashnotes/shared/smash+notes+top+of+the+week.png" alt="Smash Notes Top 10 Podcasts of the Week" width="250px"/></a>
View eligible-email-template.html
<!-- HEADER -->
<table style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; width: 100%; background-color: #f8fafb; margin: 0px 0px;" bgcolor="#f8fafb">
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
<div style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
<div style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
View Plaid Service Agreement.md

PLAID TECHNOLOGIES, INC. Services Agreement This agreement ("Agreement") is entered into on ("Effective Date") between Plaid Technologies, Inc. ("Plaid", "Company") and ELIGIBLE ("Customer"). The parties hereby agree as follows:

  1. ACCESS RIGHTS; RESTRICTIONS

1.1 Access. Subject to the Client’s compliance with the terms and conditions of this Agreement, Plaid hereby agrees that during the Term (as defined below) of this Agreement, the Client has the non-exclusive right to: (i) internally use the package of application programming interface materials provided by Plaid (the “API Package”) solely as necessary to make an application owned and operated by the Client (the “Client Application”) interoperate with the Plaid service described on http://plaid.com (collectively, the “Service”), and (ii) provide the Service – only as part of the Client Application – to its end users who are natural individuals (or third parties acting on their behalf as legal agent) (the “End Users”). All use of the API Package and the S

@kirillzubovsky
kirillzubovsky / How to delete all tweets with Ruby fast
Last active April 20, 2018 00:38
A quick way to delete all your tweets using Twitter archive and a ruby script.
View How to delete all tweets with Ruby fast
require 'twitter'
require "json"
USERNAME = 'YOUR_TWITTER_USER_NAME'
ARCHIVE_PATH = 'archive/data/js/tweets'
client = Twitter::REST::Client.new do |config|
config.consumer_key = 'TWITTER_APP_API_KEY'
config.consumer_secret = 'TWITTER_APP_API_SECRET'
config.access_token = 'TWITTER_APP_ACCESS_TOKEN'
View keybase.md

Keybase proof

I hereby claim:

  • I am kirillzubovsky on github.
  • I am kirill (https://keybase.io/kirill) on keybase.
  • I have a public key whose fingerprint is AD58 7DB8 0D55 DBD0 BED3 08C3 37B4 3862 EF35 1D85

To claim this, I am signing this object:

View bash_profile
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
CYN='\e[1;96m'
# git dirty branch
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "(._.)"
}
function parse_git_clean {