Skip to content

Instantly share code, notes, and snippets.

View shinigamicorei7's full-sized avatar

Bryan Velastegui shinigamicorei7

View GitHub Profile
@shinigamicorei7
shinigamicorei7 / .gitignore
Last active August 29, 2015 14:28 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@shinigamicorei7
shinigamicorei7 / prism.js
Last active November 20, 2015 14:52
Prism full
/* http://prismjs.com/download.html?themes=prism-dark&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+aspnet+bash+basic+batch+c+csharp+cpp+coffeescript+ruby+css-extras+docker+elixir+git+go+groovy+haml+handlebars+http+ini+java+latex+less+makefile+markdown+nginx+pascal+perl+php+php-extras+python+jsx+rest+sass+scss+scala+smarty+sql+stylus+textile+twig+typescript+yaml&plugins=line-highlight+line-numbers+show-language */
var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=_self.Prism={util:{encode:function(e){return e instanceof n?new n(e.type,t.util.encode(e.content),e.alias):"Array"===t.util.type(e)?e.map(t.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var n=t.util.type(e);switch(n){case"Object":var a={};for(var r in e
@shinigamicorei7
shinigamicorei7 / prism.css
Created November 20, 2015 14:35
prism full css
/* http://prismjs.com/download.html?themes=prism-dark&languages=markup+css+clike+javascript+abap+actionscript+apacheconf+apl+applescript+asciidoc+aspnet+autoit+autohotkey+bash+basic+batch+c+brainfuck+bison+csharp+cpp+coffeescript+ruby+css-extras+d+dart+diff+docker+eiffel+elixir+erlang+fsharp+fortran+gherkin+git+glsl+go+groovy+haml+handlebars+haskell+haxe+http+icon+inform7+ini+j+jade+java+julia+keyman+kotlin+latex+less+lolcode+lua+makefile+markdown+matlab+mel+mizar+monkey+nasm+nginx+nim+nix+nsis+objectivec+ocaml+oz+parigp+parser+pascal+perl+php+php-extras+powershell+processing+prolog+puppet+pure+python+q+qore+r+jsx+rest+rip+roboconf+crystal+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+sql+stylus+swift+tcl+textile+twig+typescript+verilog+vhdl+vim+wiki+yaml&plugins=line-highlight+line-numbers+show-language */
/**
* prism.js Dark theme for JavaScript, CSS and HTML
* Based on the slides of the talk “/Reg(exp){2}lained/”
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: whi
@shinigamicorei7
shinigamicorei7 / numeros_a_letras.php
Created January 15, 2016 20:52
Pequeña función que transforma números a letras con PHP
<?php
function numeros_a_letras($numero)
{
$numero = sprintf("%0.2f", $numero);
$valor = "";
$enteros = array("CERO", "UNO", "DOS", "TRES", "CUATRO", "CINCO", "SEIS", "SIETE", "OCHO", "NUEVE", "DIEZ");
$decimales1 = array("DIEZ", "ONCE", "DOCE", "TRECE", "CATORCE", "QUINCE", "DIECISÉIS", "DIECISIETE", "DIECIOCHO", "DIECINUEVE");
$decimales2 = array("", "UNO", "DOS", "TRES", "CUATRO", "CINCO", "SEIS", "SIETE", "OCHO", "NUEVE");
$decimales3 = array("", "", "VEINTE", "TREINTA", "CUARENTA", "CINCUENTA", "SESENTA", "SETENTA", "OCHENTA", "NOVENTA");