Skip to content

Instantly share code, notes, and snippets.


Joel "The Gregarious" Meador janxious

  • Expected Behavior
  • Indianapolis, IN
Block or report user

Report or block janxious

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
janxious /
Last active Mar 8, 2016
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 / basecamp.css
Last active Nov 3, 2015
Basecamp 3 Visual Alteration
View basecamp.css
@namespace url(;
@-moz-document domain("") {
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 / 01.html
Last active Aug 29, 2015
Automatic PDF Footnotes
View 01.html
<style type="text/css">
@page { size: A6; } /* Basic style for easier demonstration */
body { font-family: Verdana; } /* Basic style for easier demonstration */
.footnote {
float: footnote;
janxious / roman_numeral.exs
Created Apr 19, 2015
Elixir: Roman Numerals
View roman_numeral.exs
defmodule RomanNumeral do
@numerals [
{50, "L"},
{40, "XL"},
{10, "X"},
{9, "IX"},
{5, "V"},
{4, "IV"},
{1, "I"}
janxious / fizzbuzz.exs
Last active Aug 29, 2015
FizzBuzz Elixir
View fizzbuzz.exs
fizzer = fn
(0,0,_) -> "FizzBuzz"
(0,_,_) -> "Fizz"
(_,0,_) -> "Buzz"
(_,_,n) -> n
fizzbuzz = fn(n) ->
fizzer.(rem(n,3), rem(n,5), n)
janxious /
Last active Oct 8, 2015
DocRaptor Examples Set 3 - Non-Ruby (cont'd)
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";
View .mpdconf
port "6600"
music_directory "/Users/joel/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/"
state_file "~/.mpd/mpd.state"
audio_output {
type "osx"
name "macchiato"
View nmerge.rb
class Hash
def self.nmerge(*hashes, &block)
keys =
rhashes = hashes.reverse
keys.inject({ }) do |output, key|
if block
output[key] =,{ |x| x[key]})
rhashes.each do |hash|
if hash[key]
View config-application.rb
puts "### application loaded ###"
janxious / html5.html
Created Dec 20, 2011 — forked from mustmodify/html5.html
Attempts to get DocRaptor to render inline SVG images
View html5.html
<!DOCTYPE html>
<title>MathML and SVG in text/html</title>
<a href="">Source</a>
<h1>SVG in text/html</h1>
<p><svg height=86 width=90 viewBox='5 9 90 86' style='float: left;'>
<path stroke=#F53F0C stroke-width=10 fill=#F5C60C stroke-linejoin=round d='M 10,90 L 90,90 L 50,14 Z'/>
You can’t perform that action at this time.