Skip to content

Instantly share code, notes, and snippets.

View janxious's full-sized avatar
🌰
.

Joel "The Gregarious" Meador janxious

🌰
.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am janxious on github.
  • I am joelmeador (https://keybase.io/joelmeador) on keybase.
  • I have a public key ASA5KuxUM4vfOEXxHkHqp1qqLrWZhNGmshY2hJ-Bp3ot1wo

To claim this, I am signing this object:

@janxious
janxious / jq-cheetsheet.md
Created August 25, 2022 18:04 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@janxious
janxious / twitter-user-style.css
Last active August 12, 2021 13:53
Twitter User Styles
/* ==UserStyle==
@name Make twitter less bad
@namespace github.com/janxious
@version 1.2.0
@description remove the sidebar, outline images without alt tags, change the font to something useful
@author Joel Meador
==/UserStyle== */
@-moz-document domain("twitter.com") {
/* outline images without alt tags */
div[aria-label="Image"] {
@janxious
janxious / family.lua
Last active September 27, 2019 00:13 — forked from Putnam3145/family.lua
A family tree generator for Dwarf Fortress.
-- export family trees
-- by Putnam https://gist.github.com/Putnam3145/34f7046481256cc4709d
--[====[
family
======
TODO
family -exportToCSV -this -heritage
family -exportToFamilyScript -this -heritage
]====]
@janxious
janxious / README.md
Last active March 8, 2016 05:26
Unix Timestamps Across the Languages

Because every language does this a little differently, here's a collection of ways to compute the unix timestamp. The technical details of what that means can be read on Wikipedia.

@janxious
janxious / basecamp.css
Last active November 3, 2015 21:16
Basecamp 3 Visual Alteration
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("basecamp.com") {
body { font-family: "Helvetica Neue",helvetica,arial,sans-serif !important; }
.card--app { border-radius: 0.75em !important; }
.chat-line__bubble {
border-radius: 0.25em !important;
background-color: #fff !important;
}
}
@janxious
janxious / JavaExample.java
Last active October 8, 2015 16:58
DocRaptor Examples Set 3 - Non-Ruby (cont'd)
import java.io.*;
import java.net.*;
public class JavaExample {
public static void main(String[] args) throws Exception{
String document = "<html><body>This is a DocRaptor Example</body></html>";
String apikey = "YOUR_API_KEY_HERE";
String encoded_document = URLEncoder.encode(document, "UTF8");
String data = "doc[document_content]=" +encoded_document;
data += "&doc[name]=java_sample.pdf";
@janxious
janxious / .mpdconf
Created June 28, 2012 00:54
mpd settings
port "6600"
music_directory "/Users/joel/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpd.state"
audio_output {
type "osx"
name "macchiato"
@janxious
janxious / nmerge.rb
Created February 11, 2012 03:02 — forked from spraints/nmerge.rb
class Hash
def self.nmerge(*hashes, &block)
keys = hashes.map(&:keys).flatten.uniq
rhashes = hashes.reverse
keys.inject({ }) do |output, key|
if block
output[key] = block.call(key, hashes.map{ |x| x[key]})
else
rhashes.each do |hash|
if hash[key]
@janxious
janxious / config-application.rb
Created February 5, 2012 06:30
Y U LOAD RAILS
...
puts "### application loaded ###"