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 / 01.html
Last active August 29, 2015 14:24
Automatic PDF Footnotes
<html>
<head>
<style type="text/css">
@page { size: A6; } /* Basic style for easier demonstration */
body { font-family: Verdana; } /* Basic style for easier demonstration */
.footnote {
float: footnote;
}
</style>
@janxious
janxious / roman_numeral.exs
Created April 19, 2015 18:14
Elixir: Roman Numerals
defmodule RomanNumeral do
@numerals [
{50, "L"},
{40, "XL"},
{10, "X"},
{9, "IX"},
{5, "V"},
{4, "IV"},
{1, "I"}
]
@janxious
janxious / fizzbuzz.exs
Last active August 29, 2015 14:12
FizzBuzz Elixir
fizzer = fn
(0,0,_) -> "FizzBuzz"
(0,_,_) -> "Fizz"
(_,0,_) -> "Buzz"
(_,_,n) -> n
end
fizzbuzz = fn(n) ->
fizzer.(rem(n,3), rem(n,5), n)
end
@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";