Skip to content

Instantly share code, notes, and snippets.

View sjdonado's full-sized avatar
:atom:
The enemy of the art is the absence of limitations - Orson Welles

Juan Rodriguez Donado sjdonado

:atom:
The enemy of the art is the absence of limitations - Orson Welles
View GitHub Profile
@sjdonado
sjdonado / sjdonado.json
Last active January 13, 2020 05:23
Contributions data
{'Date': ['2019-01-13', '2019-01-14', '2019-01-15', '2019-01-16', '2019-01-17', '2019-01-18', '2019-01-19', '2019-01-20', '2019-01-21', '2019-01-22', '2019-01-23', '2019-01-24', '2019-01-25', '2019-01-26', '2019-01-27', '2019-01-28', '2019-01-29', '2019-01-30', '2019-01-31', '2019-02-01', '2019-02-02', '2019-02-03', '2019-02-04', '2019-02-05', '2019-02-06', '2019-02-07', '2019-02-08', '2019-02-09', '2019-02-10', '2019-02-11', '2019-02-12', '2019-02-13', '2019-02-14', '2019-02-15', '2019-02-16', '2019-02-17', '2019-02-18', '2019-02-19', '2019-02-20', '2019-02-21', '2019-02-22', '2019-02-23', '2019-02-24', '2019-02-25', '2019-02-26', '2019-02-27', '2019-02-28', '2019-03-01', '2019-03-02', '2019-03-03', '2019-03-04', '2019-03-05', '2019-03-06', '2019-03-07', '2019-03-08', '2019-03-09', '2019-03-10', '2019-03-11', '2019-03-12', '2019-03-13', '2019-03-14', '2019-03-15', '2019-03-16', '2019-03-17', '2019-03-18', '2019-03-19', '2019-03-20', '2019-03-21', '2019-03-22', '2019-03-23', '2019-03-24', '2019-03-25', '2019-
@sjdonado
sjdonado / snake_matrix.rb
Created December 14, 2019 22:10
Print a square matrix in snake pattern
puts "n:"
n = gets.to_i
matrix = Array.new(n){Array.new(n, 0)}
def snake(n, matrix, i, j, num)
if num == n * n
matrix[i][j] = num
return num
end
matrix[i][j] = num
@sjdonado
sjdonado / truncatablePrimes.js
Created December 14, 2019 22:02
The sum of the first 10 truncatable primes
let tPrimesCounter = 0;
let sum = 0;
let num = 7;
function isPrime(num, div = 2) {
if (num < div || num % div === 0) {
return false;
}
if (div === Math.ceil(Math.sqrt(num))) {
return true;
@sjdonado
sjdonado / .vimrc
Last active December 14, 2019 22:10
My vim config
git config --global diff.tool vimdiff
git config --global difftool.prompt false
--- ~/.vimrc ---
syntax enable
colorscheme monokai
set number
set incsearch