Skip to content

Instantly share code, notes, and snippets.

View tonini's full-sized avatar
💭
I may be slow to respond.

Samuel Tonini tonini

💭
I may be slow to respond.
View GitHub Profile
@tonini
tonini / draft.html
Created November 2, 2017 22:38
scoobot-2017.11.2-2550-6533525-XLNXLNXLN
<script type='text/javascript'>
<!--
function getCardDetails(cardname, cardset) {
if (cardname === undefined || cardname.length == 0 || cardset === undefined || cardset.length == 0) {
return;
}
if (cardset == "ALA") {
cardset = "SHARDS";
}
@tonini
tonini / gist:9abbe6ecbc56bab97772563ddcf355b6
Created December 11, 2016 08:22
Mono Diamond Decklist:
Mono Diamond Decklist:
Class: Cleric - Talents - affinity: cleric and unlock: divine altar
3 Adamanthian scrivener with glove equipment
2 Form ranks with boot equipment
3 Shield trainer
3 Chimera Guard Officer
1 Adaptatron
1 Incantation of Righteousness
2 Righteous Paladins with trinket equipment
2 Mentors of the Wind
(defcustom blink-matching-paren t
"Non-nil means show matching open-paren when close-paren is inserted.
If t, highlight the paren. If `jump', move cursor to its position."
:type '(choice
(const :tag "Disable" nil)
(const :tag "Highlight" t)
(const :tag "Move cursor" jump))
:group 'paren-blinking)
» time ruby -e 'p 1+2'
3
ruby -e 'p 1+2' 0,10s user 0,04s system 96% cpu 0,147 total
» time elixir -e 'IO.puts 1+2'
3
elixir -e 'IO.puts 1+2' 0,24s user 0,10s system 113% cpu 0,301 total
#!/bin/sh
export PATH="/home/travis/.evm/bin:$PATH"
export PATH="/home/travis/.cask/bin:$PATH"
git clone https://github.com/rejeep/evm.git /home/travis/.evm
evm config path /tmp
evm install emacs-24.4-travis --use --skip
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
#!/bin/sh
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add this:
#
# - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
#
# Emacs 24.3 is installed in the above script because Cask requires
#!/bin/sh
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add this:
#
# - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
#
# Emacs 24.3 is installed in the above script because Cask requires
(function(){
var Duelyster = function () {
this.name = "Samuel";
};
Duelyster.prototype.hi = function () {
alert(this.name);
};
var main = function () {
defmodule Foo do
def bar do
with {:ok, width} <- Map.fetch(opts, :width),
{:ok, height} <- Map.fetch(opts, :height) do
{:ok, width * height}
else
:error ->
{:error, :wrong_data}
end
@tonini
tonini / for.ex
Last active April 26, 2016 11:21
for.ex
for {k, v} <- keyword,
v = process_value(v),
into: %{} do
{v, k}
end