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:
<%= form_with model: citizen, class: "card flex flex-col gap", data: { controller: "form" } do |form| %> | |
<div class="flex flex-col gap mb-2"> | |
<div class="flex flex-col gap-half"> | |
<% countries = Country.order(:name) %> | |
<%= label_tag :country_id, "Country", class: "text-sm font-medium leading-none" %> | |
<%= select_tag :country_id, options_from_collection_for_select(countries, :id, :name, citizen.country_id), include_blank: "Select one", class: "input", data: { action: "form#submit", form_submitter_param: "on_country_change" } %> | |
</div> | |
<div class="flex flex-col gap-half"> | |
<% states = State.where(country_id: citizen.country_id).order(:name) %> |
I hereby claim:
To claim this, I am signing this object:
/* ==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"] { |
-- export family trees | |
-- by Putnam https://gist.github.com/Putnam3145/34f7046481256cc4709d | |
--[====[ | |
family | |
====== | |
TODO | |
family -exportToCSV -this -heritage | |
family -exportToFamilyScript -this -heritage | |
]====] |
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.
@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; | |
} | |
} |
<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> |
defmodule RomanNumeral do | |
@numerals [ | |
{50, "L"}, | |
{40, "XL"}, | |
{10, "X"}, | |
{9, "IX"}, | |
{5, "V"}, | |
{4, "IV"}, | |
{1, "I"} | |
] |
fizzer = fn | |
(0,0,_) -> "FizzBuzz" | |
(0,_,_) -> "Fizz" | |
(_,0,_) -> "Buzz" | |
(_,_,n) -> n | |
end | |
fizzbuzz = fn(n) -> | |
fizzer.(rem(n,3), rem(n,5), n) | |
end |