Skip to content

Instantly share code, notes, and snippets.

View danilor's full-sized avatar

Danilo Ramírez danilor

View GitHub Profile
[
"The player who has visited the most countries",
"The player who has broken the most bones",
"The player who has the biggest ears",
"The player who has the fewest cavities",
"The player who has the most siblings",
"The player who is the shortest",
"The player who is the oldest",
"The player who has the loudest voice",
"The player who is the tallest",
@danilor
danilor / .gitignore
Created April 12, 2023 17:21
GlobalGitIgnore
# Angular
.DS_STORE
/dist/
/bazel-out
/integration/bazel/bazel-*
*.log
/node_modules/
/**
* This will only calculate how many random
* attemps it will take to form a full phrase.
*
* It takes around 5000 attemps for a 2 characters phrase.
* Cannot imagine how much will it take for a full book with meaning.
*
* Tests:
* - "h" = min: 16 | max. 40
* - "ha" = min: 1189 | max: 7500
@danilor
danilor / clean_folders-js
Last active October 22, 2021 20:04
Clean folders from unwanted files and extensions
/**
* ==================================================================
*
* CLEAN FOLDERS SCRIPT
*
* ==================================================================
* @author Danilo Ramírez Mattey
* @version 1.0
* @ref
* @date 10/october/2021
function removeSelector( s ){
try{
var elem = document.querySelector( s );
elem.parentNode.removeChild(elem);
}catch(e){
console.log( e );
}
}
@danilor
danilor / countries.php
Created June 7, 2017 14:24
Countries list in PHP array
<?php
return [
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',