View array-dedup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Deduplicates an array and also returns a redundant array containing indices to the original data in the deduplicated array | |
// | |
function dedup(arr) { | |
let indexLookups = [] | |
for (let i = 0; i < arr.length; i++) { | |
let idx = arr.indexOf(arr[i]) | |
// Store a index reference to the first occurrence of the element in the possibly shrinking array that is being deduplicated |
View imv_config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[binds] | |
<Ctrl+Shift+R> = exec cp "$imv_current_file" /tmp/vips-orig; exec vips rot /tmp/vips-orig "$imv_current_file" d90 && echo "rotated: $imv_current_file" | |
<Ctrl+Shift+X> = exec rm -v "$imv_current_file"; close |
View sway-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xwayland disabled | |
set $mod Mod4 | |
# Main display (native resolution) | |
output eDP-1 scale 1 | |
# Background wallpaper | |
output * bg /home/specious/Downloads/bg/vtop.png fill |
View .config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.13.2 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=110100 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23601 |
View keybase-verification-tknomad.info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* I am tknomad (https://keybase.io/tknomad) on keybase. | |
* I have a public key ASC_Wvsbh6utc0tvyAP2-AiiUXeKq3NpCN-6gVik1BiJPgo | |
To claim this, I am signing this object: | |
```json | |
{ | |
"body": { | |
"key": { | |
"eldest_kid": "0120bf5afb1b87abad734b6fc803f6f808a251778aab736908dfba8158a4d418893e0a", |
View youtube-shorten.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
if( process.argv.length > 2 ) { | |
var video_id = /(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/.exec( process.argv[2] )[5] | |
console.log( "http://youtu.be/" + video_id ) | |
} |
View meetup-url.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Example usage: | |
# $0 http://www.meetup.com/diningout-792/events/226401363/ | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 <url>" | |
exit 1 | |
fi |
View dabblet.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
height: 100%; | |
} | |
body { | |
background: linear-gradient(45deg, #000025, blue); | |
height: 100%; | |
text-align: center; | |
margin: 0; | |
} | |
span { |
View dabblet.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.glass { | |
background-image: | |
radial-gradient(circle closest-side, rgba(167, 162, 162, 0.33), rgba(0, 0, 0, 0.62)); | |
background-size: 100%; | |
border-radius: 50%; | |
position: relative; | |
} | |
.glass::before { | |
position: absolute; | |
width: 56%; |
View jquery.reflection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
reflection.js for jQuery v1.12 | |
(c) 2006-2013 Christophe Beyls <http://www.digitalia.be> | |
MIT-style license. | |
*/ | |
;(function($) { | |
$.fn.reflect = function(options) { | |
options = $.extend({ |
NewerOlder