group :development, :test do
gem 'rspec-rails', '~> 3.6.0'
end
function formatoNumero(numero, decimales, separadorDecimal, separadorMiles) { | |
var partes, array; | |
if (!isFinite(numero) || isNaN(numero = parseFloat(numero))) { | |
return ""; | |
} | |
if (typeof separadorDecimal === "undefined") { | |
separadorDecimal = ","; | |
} | |
if (typeof separadorMiles === "undefined") { |
<!-- CSS --> | |
<style> | |
/* enable absolute positioning */ | |
.inner-addon { | |
position: relative; | |
} | |
/* style glyph */ | |
.inner-addon .glyphicon { | |
position: absolute; |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/gruvbox/gruvbox (Dark) (Hard) NDC.sublime-color-scheme", | |
"font_face": "Courier New", | |
"font_options": | |
[ | |
"bold" | |
], | |
"font_size": 14, |
[ | |
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
{ "keys": ["ctrl+shift+m"], "command": "toggle_menu"}, | |
{ "keys": ["ctrl+shift+s"], "command": "auto_save" }, | |
// Multiple carets | |
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } }, | |
//{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} } |
cd /path/to/your/repo | |
curl https://gist.githubusercontent.com/smezae/743378e474a87c450b061045ee250a50/raw/71ee093163ea8f7c73f1a7217f6416ac7092d3ba/pre-push.sh > .git/hooks/pre-push | |
chmod u+x .git/hooks/pre-push |
function previewImage(input, previewSelector) { | |
if (input.files && input.files[0]) { | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
$(previewSelector).attr('src', e.target.result); | |
} | |
reader.readAsDataURL(input.files[0]); | |
} |