Skip to content

Instantly share code, notes, and snippets.

View mgalante's full-sized avatar

Miguel Galante mgalante

  • Buenos Aires, Argentina
View GitHub Profile
@mgalante
mgalante / shadow-dom.html
Last active September 24, 2020 14:28
Shadow Dom Test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
main {
font-size: 100px;
color: red;
@mgalante
mgalante / custom-element-example.html
Last active September 24, 2020 13:59
Custom Element Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div>Hola qwe qwe
<p is="word-count"></p></div>
This file has been truncated, but you can view the full file.
var diccionario = ["a",
"aaronita",
"aaronico",
"aba",
"ababa",
"ababillarse",
"ababol",
"abacal",
"abacalero",
"abacero",
@mgalante
mgalante / knockout.autonumeric.js
Created July 3, 2013 13:37
knockout js binding for jQuery autoNumeric
;(function ($) {
var getElementValue = function(el) {
return parseFloat(el.autoNumeric('get'), 10);
}
var getModelValue = function(accessor) {
return parseFloat(ko.utils.unwrapObservable(accessor()), 10);
}