Skip to content

Instantly share code, notes, and snippets.

View MikeVelazcoMtz's full-sized avatar

Miguel Angel Velazco MikeVelazcoMtz

  • Guadalajara, Jalisco, México
View GitHub Profile
@MikeVelazcoMtz
MikeVelazcoMtz / VsCodeSettings
Created May 18, 2018 17:28
My basic Visual Studio Code Settings File
{
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.minimap.enabled": false,
"editor.scrollBeyondLastLine": false,
"editor.fontSize": 14,
"workbench.colorTheme": "Visual Studio Dark",
"files.trimTrailingWhitespace": true,
"[javascript]": {
"editor.tabSize": 2,
@MikeVelazcoMtz
MikeVelazcoMtz / interfaces
Created July 27, 2015 23:46
Linux Interfaces file (WORKING)
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
@MikeVelazcoMtz
MikeVelazcoMtz / index.html
Created July 5, 2015 17:07
Bootstrap 3 template
<!DOCTYPE html>
<html>
<head>
<style>
div.body{
padding-top:75px
}
</style>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
####################### LOCALE SETTINGS ######################
export LANG="it_IT.UTF-8"
export LC_COLLATE="it_IT.UTF-8"
export LC_CTYPE="it_IT.UTF-8"
export LC_MESSAGES="it_IT.UTF-8"
export LC_MONETARY="it_IT.UTF-8"
export LC_NUMERIC="it_IT.UTF-8"
export LC_TIME="it_IT.UTF-8"
export LC_ALL=
@MikeVelazcoMtz
MikeVelazcoMtz / virtualenvwrapper.config
Created May 29, 2015 18:31
Virtualenvwrapper Config
# This config works for linux and OS X
# you need install previously virtualenvwrapper
#
# WITH PIP: sudo pip install virtualenvwrapper
# WITH EASY INSTALL: sudo easy_install virtualenvwrapper
#
# You need, to copy the content of this file inside of:
#
# LINUX : .bashrc
# OS X: .bash_profile
@MikeVelazcoMtz
MikeVelazcoMtz / num_to_letras
Last active August 29, 2015 14:03
Este gist permite convertir cadenas numericas a texto. Es una adaptacion al metodo de PHP mostrado en http://php-aplicado.blogspot.mx/2013/05/convertir-numeros-letras-con-codeigniter-2-usando-ajax-jquery.html
function my_str_pad($string){
$string = $string.toString();
len = $string.length;
if(len > 18)
return $string;
else
{
$string = $string.split("");
while($string.length < 18)
$string.unshift(" ");