Skip to content

Instantly share code, notes, and snippets.

View JJ's full-sized avatar
🏠
Working from home

Juan Julián Merelo Guervós JJ

🏠
Working from home
View GitHub Profile
@JJ
JJ / all.kids
Last active March 18, 2019 08:52 — forked from daotoad/all.kids
Getting to Know Perl6 From the Command Line: An Article for the 2018 Perl6 Advent Calendar
1234,Bobby Smith
1235,Rosa Felix
1236,Ramesh Patil
1245,Virginia Ryder
1356,Snively Witherspoon
1358,Burnedette Down
1366,Evelyn Tent
@JJ
JJ / Fibonacci.pm
Created December 23, 2016 18:37 — forked from massa/Fibonacci.pm
Fibonacci sequence implementation in Perl6
my constant @fib = 1, 1, *+* ... *;
@JJ
JJ / node-and-npm-in-30-seconds.sh
Last active January 3, 2016 11:59 — forked from isaacs/node-and-npm-in-30-seconds.sh
Installing node in a very raw box (like the one provided by docker). It will take a bit more than 30 seconds, somehow
#Problem with this is that it needs lots of installed stuff, so I'll put it here
# sudo or admin shell is presupposed
apt-get install make curl python-setuptools gcc g++
#Maybe you can safely supress make and gcc from here, since they are dependencies of g++
#Then you can proceed to the original set
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir /usr/local
mkdir ~/node-latest-install
@size = (1920, 1080);
@center = (-.743653135, .131826563);
$zoom = .000014628;
$max_it = 700;
$oversample = 2;
$_ *= $oversample for (@size);
open $fh, "|-", "convert -size ".join("x",@size)." -depth 8 gray:- ".
"-resize ".(100/$oversample)."% mandel.png";
for $py (1 .. $size[1]) {
@JJ
JJ / pre-commit
Last active August 29, 2015 14:00 — forked from ilyakatz/pre-commit
#!/bin/bash -l
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
#
.git/hooks/pre-commit-master-no-no
if [[ $? == 1 ]]
then
@JJ
JJ / .bashrc
Last active August 29, 2015 13:59 — forked from justintv/.bashrc
# If you work with git, you've probably had that nagging sensation
# of not knowing what branch you are on, or worse, you pull the wrong branch.
# Worry no longer!
export PS1="\\w<\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)>$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one.
#~/txt/ocio/HashSlash<master>$ git checkout writer
#Switched to branch 'writer'
#~/txt/ocio/HashSlash<writer>$ git checkout master