Skip to content

Instantly share code, notes, and snippets.

Mauricio Schneider mauricioschneider

Block or report user

Report or block mauricioschneider

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mauricioschneider on github.
  • I am mschr (https://keybase.io/mschr) on keybase.
  • I have a public key ASClIl-Klq_QYAf8KoONumY7TSfcvrMOzoI_gP0Spgj8ZQo

To claim this, I am signing this object:

View vertical-scroll.css
::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}
View test.js
var express = require('express'),
path = require('path');
var app = express();
// access to views & assets
app.use(express.static('app/views/'));
app.use(express.static('app/assets/css'));
app.use(express.static('app/assets/javascript'));
app.use(express.static('app/assets/javascript/components/'));
app.use(express.static('public'));
View test.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Obtener estilo definido por clase.</title>
<style>
.test{
font-size: 14px;
height: 400px;
background: #fff;
@mauricioschneider
mauricioschneider / bancoylactm.js
Last active Aug 29, 2015
Habilitar paste en formulario transferencia.
View bancoylactm.js
// llamar el frame que contiene el formulario. Porque aún estamos en 1995, los desarrolladores del sitio aún usan frames.
var frame = document.getElementsByTagName("frame")[2]; var frame_doc = frame.contentWindow.document || frame.contentDocument;
// obtener todos los elementos del DOM que corresponden a inputs
var elements = frame_doc.getElementsByTagName("input");
// generar un arreglo con los input, para poder iterarlo usando forEach, porque NodeList no implementa ese método
var nodes = Array.prototype.slice.call(elements,0);
// iterar cada nodo cambiando su atributo onpaste por un lindo string vacio
nodes.forEach(function(node){
node.setAttribute("onpaste", "");
});
View Preferences.sublime-settings.json
{
"auto_complete_commit_on_tab": false,
"bold_folder_labels": true,
"caret_style": "solid",
"theme": "predawn.sublime-theme",
"color_scheme": "Packages/Predawn/predawn.tmTheme",
//"color_scheme": "Packages/Colorsublime/Tomorrow_Night_Bright.tmTheme",
//"theme": "Phoenix Dark.sublime-theme",
"create_window_at_startup": false,
"enable_telemetry": false,
You can’t perform that action at this time.