Skip to content

Instantly share code, notes, and snippets.

@AMSTKO
AMSTKO / gist:c269253dfe8bed4ccdb2
Created September 17, 2014 20:56
get cursor x y position linux
xdotool getmouselocation

Botinder

Botinder is a Tinder client for Google Chrome. Tinder is mobile-only but it's way more convenient to write and browse profiles (with big photos) on your computer, so I made this Chrome extension.

Botinder

Botinder imitates the official Tinder application

  • Like / Dislike results
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
Barry Martin's Hopalong Orbits Visualizer
These orbits are generated iterating this simple algorithm:
(x, y) -> (y - sign(x)*sqrt(abs(b*x - c)), a -x )
where a, b, c are random parameters. This is known as the 'Hopalong Attractor'.
3D rendering is done using WebGL and three.js
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
@AMSTKO
AMSTKO / modal.js
Created February 8, 2016 13:43
Accessible modal. Heavily inspired by: https://github.com/gdkraus/accessible-modal-dialog.
(function (global) {
'use strict';
// Helper function to check if a node matches a selector
function matches (node, selector) {
var p = Element.prototype;
var f = p.matches || p.webkitMatchesSelector || p.mozMatchesSelector || p.msMatchesSelector || function(s) {
return [].indexOf.call(document.querySelectorAll(s), this) !== -1;
};
return f.call(node, selector);
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
@AMSTKO
AMSTKO / free_disk_space.sh
Created July 7, 2017 08:33 — forked from alepee/free_disk_space.sh
clear cache for rubygem, yarn, composer, homebrew, docker and remove temp files
###
# free_disk_space
#
# remove files from downloads folder
# clear cache for rubygem, yarn, composer, homebrew, docker
###
free_disk_space() {
if command -v docker &> /dev/null; then
echo "--> Clear Docker images cache" && \
/*
* CSSrefresh v1.0.3
*
* Copyright (c) 2012 Fred Heusschen
* www.frebsite.nl
*
* Dual licensed under the MIT and GPL licenses.
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*/
@AMSTKO
AMSTKO / cloud-init-dokku-post.yaml
Created November 17, 2017 21:25 — forked from jakeklassen/cloud-init-dokku-post.yaml
Digital Ocean cloud-config script for Ubuntu 16
#cloud-config
# Configures a basic Ubuntu box.
# * Installs a few common packages
# * Disables root login
# * Disables password login
# * Creates a user in the sudo, www-data groups
#
# Follow the log by ssh-ing in and running: `tail -f /var/log/cloud-init-output.log`
apt_update: true
apt_upgrade: true