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
{ | |
credits: { | |
enabled: false | |
}, | |
chart: { | |
type: 'column', | |
backgroundColor: 'transparent' | |
}, | |
title: { |
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
class Fiznum | |
attr_accessor :num | |
def initialize(num) | |
self.num = num | |
end | |
def fizzbuzz? | |
num % 15 == 0 | |
end |
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
defmodule FizzBuzz do | |
def fizzbuzz(n) do | |
whichfizz(rem(n, 3), rem(n, 5), n) | |
end | |
defp whichfizz(0, 0, _), do: "FizzBuzz" | |
defp whichfizz(0, _, _), do: "Fizz" | |
defp whichfizz(_, 0, _), do: "Buzz" | |
defp whichfizz(_, _, n), do: n | |
end |
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
\documentclass[a4paper,11pt,onecolumn]{book} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{times} | |
\usepackage{a4wide} | |
\usepackage[lyric]{songs} |
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
\documentclass[a4paper,11pt,onecolumn]{book} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{times} | |
\usepackage{a4wide} | |
\usepackage{pslatex} | |
\usepackage{verbatim} | |
\usepackage{graphicx} |
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
var snd = new Audio("data:audio/wav;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAKAAASdAAZGRkZGRkZGRkZMzMzMzMzMzMzM0xMTExMTExMTExmZmZmZmZmZmZmgICAgICAgICAgJmZmZmZmZmZmZmzs7Ozs7Ozs7OzzMzMzMzMzMzMzObm5ubm5ubm5ub///////////8AAAA6TEFNRTMuOTIgAckAAAAAAAAAAAKAJAbAQQAAAAAAEfTbBHdkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAAAFd4u3zipgALHwaCrgpAAAAAAADCCAAAA8TgbPLEXgKAWefIB+VCKEA/w6QAIYAIQwX/4sYswdhEw6D/8MYCkAywMgBtiBzf//iNwBjijk4AoQXIKU///FKg2HD3wAjiZCdAbFjqGQ///8AZYpIOUBtuGJxkxcBibh8YN//////DBZPjljvDLYoMcYHJwAUBgCGESE6E0Oz/////////IuT4cQFpgFhkIJ3AOYVYxQEACxQRYAU4DCxHAACAFIAABEXIiABJ47Hosx/BuX3PcM2thv2SVkqKcznJGGsKto0hmydoUFkgXbco0gJ1dKHWrIMQIEUDS1LzhuwnF6ZiEm3F4JxZ16nhLwQZJ9ym1aUquUZSgko1K0lUNZHUeqoqI4G4323k7tV1fabnS9k91sGIXFbTrkrxpW |
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
function(doc) { | |
doc.postal_districts.forEach(function(pd) { | |
pd.postal_codes.forEach(function(pc) { | |
emit(pc.postal_code, { | |
postal_name: pc.name, | |
postal_code: pc.postal_code, | |
type: pc.type, | |
postal_district_id: pd.id, | |
slug: pd.slug | |
}) |
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
skip_methods = %w(new create edit update destroy index show initialize to_s call as_json page per_page build up down change) | |
output = `grep -hir "^\s*def\s" *` | |
methods = output.split("\n") | |
puts "Found #{methods.size} methods." | |
ununsed_methods = [] | |
methods.each_with_index do |line, i| | |
line = line.gsub(/^\s*/, '') |
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
.. | |
Finished in 9.18 seconds (files took 8.21 seconds to load) | |
2 examples, 0 failures |
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
Matches: 101640 | |
4d9 wins: 55948 | |
4d9 wins %: 0.550452577725305 | |
6d6 wins: 40641 | |
6d6 wins %: 0.3998524203069658 | |
Draws: 5051 |