Skip to content

Instantly share code, notes, and snippets.

@tg-z
tg-z / index.md
Last active February 10, 2021 02:30
svg screenshots

preview svg screenshots

@tg-z
tg-z / index.html
Created January 28, 2021 04:11
jsfiddle.net api example
<output></output>
@tg-z
tg-z / workstation.md
Last active January 22, 2021 00:51
personal dev workstation
@tg-z
tg-z / android-type.rb
Created October 24, 2020 03:47 — forked from Pistos/android-type.rb
Ruby REPL for typing text on Android via adb
require "readline"
def escaped(s)
s.gsub("'", "'\\\\''")
end
while s = Readline.readline("> ", true)
e = escaped(s)
puts `./android-type.sh '#{e}'`
end
@tg-z
tg-z / get_books_on_shelf.py
Created October 15, 2020 05:57 — forked from steve-kertes/get_books_on_shelf.py
A Python example of how to use OAuth on GoodReads. Includes scripts to pull list of books that are on a shelf and to add all owned books to a shelf.
from string import Template
import oauth2 as oauth
import urlparse
import urllib
import time
import xml.dom.minidom
import sys, getopt
# If you get 'Title Messed Up By Unicode Error' messages try
# export PYTHONIOENCODING=utf-8
/*
//--> Repository for this Bookmarklet App: https://www.npmjs.com/package/ea-bookmarklets
Add https://ctrld.herokuapp.com/#%s to chrome://settings/searchEngines or as a bookmark
with a <keyword> in firefox - to load a gist into the editor by typing <keyword> <gisturl>
into the browsers locationbar. .. have fun.
*/
(async(window,document) => {
// https://gist.github.com/hagb4rd/6843803a6674fe1b9ead6f1e60f14f15#file-queue-download-images-js
// -----------
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
[
{
"name": "thisisparker/cursewords",
"link": "https://github.com/thisisparker/cursewords",
"description": ":pencil: Terminal-based crossword puzzle solving interface",
"lang": "Python",
"stars": 114
},
{
"name": "ammsa/Githeat",
@tg-z
tg-z / bbe.1
Last active March 3, 2020 22:59
.SH bbe - binary block editor
.PP
* * * * *
Next:\ Overview, Previous:\ (dir), Up:\ (dir)
.SS bbe
.PP
This file documents version 0.2.2 of \f[C]bbe\f[R], a binary block
editor.
.PP
Copyright \[co] 2005 Timo Savinen
@tg-z
tg-z / ascii-pond.markdown
Created February 9, 2020 00:34
ascii pond