Skip to content

Instantly share code, notes, and snippets.

View etandel's full-sized avatar

Elias Tandel etandel

View GitHub Profile
@etandel
etandel / spanish_review.txt
Created April 21, 2012 22:45
Translation of "Pandora's Piñata" review
The most metalhead orchestra is back to surprise us all again. D:S:O, that in the last few years has
possibly won the title of most original metal band, is back with its new "Pandora's Piñata".The fact is
that this title has everything to do with the band, since its music is like a pandora's box that, when
opened, lets one discover new things, but always with a sence of humor that sometimes seems to be begging
for this scene, this fun that may give us a piñata in a party [not sure about this last sentence].
And the music of this swedish combo (that, with the addition of Mart Isaksson's trumpet and Daniel Hedin's
trombone, has certainly moved from a sextet to a 8 person combo) is exactly this: a party. A party that
flirts with many different styles, a party with a sense of humor and this childish feel that has
transformed into the identity of the swedish group. Something that made "Pandora's Piñata" a much expected
@etandel
etandel / alturas.py
Last active October 8, 2015 18:18
Ajudas misc
nhomens = 0
nmulheres = 0
soma_mulheres = 0
max_altura = 0
min_altura = float('inf')
npessoas = int(raw_input("Quantas pessoas no total?"))
for i in xrange(npessoas):
sexo = raw_input("F ou M?")
altura = int(raw_input("Digite a altura em centimetros."))
@etandel
etandel / main.py
Last active December 30, 2015 09:19
Neo4J shennanigans
from functools import partial
from bulbs.neo4jserver import Graph
from bulbs.model import Node, Relationship
from bulbs.property import String, Integer
from sitemap import sitemap
class Page(Node):
@etandel
etandel / beatify.lua
Created April 1, 2014 14:02
Beatifies Holy Lua Scripts.
#!/usr/bin/env lua
--[[
Example use:
$ ./beatify.lua beatify.lua
Saint Beatify, blessed be thy exit()!
--]]
@etandel
etandel / joust.lua
Last active August 29, 2015 14:01
Joust
local http = require('socket.http')
local get_mod
get_mod = function(ab_score)
return math.floor(0.5 * (ab_score - 10))
end
local Player
do
local _base_0 = {
attack = function(self)
return math.random(1, 20) + self.int + self.str + self.bab

Python:

class Num(int):
    def __eq__(self, n):
         return True

x = Num(3)
assert(x == x + 2)
@etandel
etandel / centralize.zsh
Last active January 8, 2020 02:56
Random background for i3lock
#!/bin/zsh
newname=$(echo $1 | awk -F'.' '{print $1}').png # i3lock only accepts pngs
resolution=$(xrandr | fgrep '*' | awk '{print $1}')
# if the image is too large, run the folloowing line first and then run the script again on temp.jpg:
# convert $1 -gravity Center -adaptive-resize $resolution -background black temp.jpg
convert $1 -background black -gravity center -extent $resolution -background black $newname
@etandel
etandel / keybase.md
Created September 21, 2015 13:39
keybase.md

Keybase proof

I hereby claim:

  • I am etandel on github.
  • I am etandel (https://keybase.io/etandel) on keybase.
  • I have a public key whose fingerprint is CC5B 0C99 6751 A75A 950A E07E 44D4 1D7B 7F62 17BF

To claim this, I am signing this object: