Skip to content

Instantly share code, notes, and snippets.

View tad-lispy's full-sized avatar

Tad Lispy tad-lispy

View GitHub Profile
@tad-lispy
tad-lispy / test
Created January 5, 2023 11:11
Word Snake levels
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z È Ê É Ô Ç Ñ
Toch kwam Connery in 1983 nog { ÉÉN } keer terug als James Bond in de speelfilm Never Say Never Again.
100 mensen opgepakt na illegale feesten in { HET } bos
@tad-lispy
tad-lispy / keybase.md
Last active September 11, 2019 20:19

Keybase proof

I hereby claim:

  • I am tad-lispy on github.
  • I am lazurski (https://keybase.io/lazurski) on keybase.
  • I have a public key ASDVgw6KS0S06Z4oBjfR7OTnwB8gFJqD13OVAvm5xY_1cgo

To claim this, I am signing this object:

@tad-lispy
tad-lispy / inject-jquery.js
Created August 19, 2014 11:50
Inject jQuery into webpage via console (oneliner)
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'
@tad-lispy
tad-lispy / common-types.js
Created August 3, 2017 14:49
Common Flow types
// @flow
export type Task<T> = any => Promise<T>;
export type SQSTask<T> = T => Promise<Object>;
// TODO: Move log function types annotations to @scrambled/logger
export type LogFunction = (
'debug' | 'informational' | 'warning' | 'error',
string,
@tad-lispy
tad-lispy / 00-setup-lxd.sh
Last active August 2, 2017 19:59
Setup LXD with DNS name resolution on Ubuntu 16.04
#! /usr/bin/env bash
set -euo pipefail
IFS=$'\t\n'
set -x
export DEBIAN_FRONTEND=noninteractive
# Install newer version of LXD
# See https://stgraber.org/2016/10/27/network-management-with-lxd-2-3/#comment-244979
apt-get install --yes --quiet --target-release=xenial-backports lxd
@tad-lispy
tad-lispy / destructuring-with-default-values.coffee
Created May 20, 2016 08:03
Default values with object / array destructuring in CoffeeScript
# You can have default values in object destructuring
o1 = a: 1, b: 2
{ a, b, c = 3} = o1
c is 3
o2 = a: 1, b: 2, c: 5
{ a, b, c = 3} = o2
c is 5
@tad-lispy
tad-lispy / ..ONCE.sh
Last active February 3, 2016 19:19
My linux config files with color prompts, autocompletions and other good stuff. This is mainly for me to easily set up things on new systems.
npm set prefix $HOME/.node_modules/ # for installing global node modules in home directory
read -p 'Your e-mail: ' email
git config --global user.email "$email"
git config --global user.name "Tadeusz Łazurski"
git config --global core.editor vim
curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.git-prompt.sh
@tad-lispy
tad-lispy / Nazwy stron z odmianą fleksyjną pogrupowane wg. sprawy i roli.sql
Last active January 3, 2016 03:39
SQL query to Currenda Sawa DB to get parties to the lawsuit (plaintiff and defendant), with group concatenated names for each side separated by colon, and with inflexion cases (dative for defendant and genitive for plaintiff) and count for each side.
-- Use this variable to limit scope of search to defendants last name or name in case of corporations
declare @search as varchar(32)
set @search = 'Kowalski'
-- Find lawsuits where pozwany matches search criteria
-- This will be used to limit scope of search.
-- ATM the query is very inefficient. Without this limit and for large data set it can take very long time to execute.
declare @sprawy table (
ident integer
);
@tad-lispy
tad-lispy / funcase.js
Last active August 29, 2015 14:15
Funcase - IAI communication proposal
(function() {
var data;
data = {
fabric: {
type: 'shop',
name: 'XCATS',
stuff: 'Cool cats',
staff: {
boss: 'Lionel King',
@tad-lispy
tad-lispy / Facebook AdBlock Filter
Last active August 29, 2015 14:11
Antisocial list doesn't always work for me. This is my filter to block all Facebook stuff outside of the Facebook itself.
facebook.com/$third-party,media,subdocument,object,image,script,stylesheet,xmlhttprequest,popup