Skip to content

Instantly share code, notes, and snippets.


Elias Tandel Barrionovo etandel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am etandel on github.
  • I am 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:

etandel / centralize.zsh
Last active Jan 8, 2020
Random background for i3lock
View centralize.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


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

x = Num(3)
assert(x == x + 2)
View joust.lua
local http = require('socket.http')
local get_mod
get_mod = function(ab_score)
return math.floor(0.5 * (ab_score - 10))
local Player
local _base_0 = {
attack = function(self)
return math.random(1, 20) + + self.str + self.bab
etandel / beatify.lua
Created Apr 1, 2014
Beatifies Holy Lua Scripts.
View beatify.lua
#!/usr/bin/env lua
Example use:
$ ./beatify.lua beatify.lua
Saint Beatify, blessed be thy exit()!
etandel /
Last active Dec 30, 2015
Neo4J shennanigans
from functools import partial
from bulbs.neo4jserver import Graph
from bulbs.model import Node, Relationship
from import String, Integer
from sitemap import sitemap
class Page(Node):
etandel /
Last active Oct 8, 2015
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 / spanish_review.txt
Created Apr 21, 2012
Translation of "Pandora's Piñata" review
View spanish_review.txt
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