Skip to content

Instantly share code, notes, and snippets.

View katio's full-sized avatar

Johann Echavarria katio

  • Medellín, Colombia
View GitHub Profile
@katio
katio / HTMLMail.ssjs
Last active October 31, 2015 08:26
Class to generate HTML e-mail messages from IBM Domino XPages SSJS by Mark Leusink (Twitter @markleusink). This is a small modification to solve a problem when you use the mime header "To" and the length in characters of a recipient is greater than or equal to 79, as can be the case in a long canonical name. This is solved here using the item "S…
/*
* Took from:
* http://openntf.org/XSnippets.nsf/snippet.xsp?id=create-html-mails-in-ssjs-using-mime
*
* Class to generate HTML e-mail messages from SSJS
*
* Author: Mark Leusink (m.leusink@gmail.com)
*
* Version: 2012-11-20
*
@katio
katio / Preferences.sublime-settings.json
Created December 26, 2015 06:52
Simple Sublime Text preferences JSON
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "",
"font_size": 14,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
"save_on_focus_lost": true
}
@katio
katio / HttpRequest.lss
Last active December 28, 2015 08:39
Small modification to Lotusscript HttpRequest-class. original author: Tommy Valand http://dontpanic82.blogspot.com/2007/12/httprequest-class.html This is a usefull classic lotusscript created by Tommy Valand. It allow you to capture parameters POST, GET and Cookies. i just made a couple of small modifications for my personal use with POST parame…
Class HttpRequest
'##############################################################
'## ##
'## A class to simplify fetching parameters from Post/Get-requests ##
'## The class also supports fetching cookies from a request ##
'## ##
'## Example of use: ##
'## Dim request As New HttpRequest ##
'## ##
@katio
katio / resig-netflix-inheritance.js
Last active April 23, 2018 22:45
From @dylanthehuman's article: (http://techblog.netflix.com/2014/05/improving-performance-of-our-javascript.html) about Netflix's improved version of John Resig's "simple-javascript-inheritance" (http://ejohn.org/blog/simple-javascript-inheritance/)
/* Simple JavaScript Inheritance with NFE's
* MIT Licensed.
*/
// Inspired by base2 and Prototype and John Resig's class system
(function(){
var initializing = false;
// The base Class implementation (does nothing)
this.Class = function(){};
@katio
katio / dado.html
Last active July 3, 2021 07:20
Código de video número 25 de la serie Programación desde cero. Separación de intereses en funciones de JavaScript: https://www.youtube.com/watch?v=-IHr6_q2DEs&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=25 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<style>
body {
color: green;
font-family: arial;
}
#dado {
@katio
katio / dado.html
Last active July 3, 2021 07:22
Código de video número 23 de la serie Programación desde cero. JavaScript: Camel case y ubicación de etiqueta script: https://www.youtube.com/watch?v=V55HUglWr5k&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=23 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<style>
body {
color: green;
font-family: arial;
}
#dado {
@katio
katio / dado.html
Last active July 3, 2021 07:23
Código de video número 17 de la serie Programación desde cero. CSS: estilos de fondo, mouse y herramientas de desarrollo: https://www.youtube.com/watch?v=yFlSyWihha4&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=17 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<style>
body {
color: green;
font-family: arial;
}
#dado {
@katio
katio / dado.html
Last active July 3, 2021 07:24
Código de video número 11 de la serie Programación desde cero. Haciendo una aplicación desde cero: HTML: https://www.youtube.com/watch?v=FQd0SZoSkso&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=11 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<h1>Dado</h1>
<img src="https://i.imgur.com/AYxOJot.png" alt="Trébol de 4 hojas">
<button id="boton">Lanzar dado</button>
<div id="dado"></div>
</body>
</html>
@katio
katio / dado.html
Last active July 3, 2021 07:25
Código de video número 13 de la serie Programación desde cero. CSS: reglas, selectores y declaraciones: https://www.youtube.com/watch?v=ORR8-rwXsnE&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=14 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<style>
body {
color: green;
}
</style>
<h1>Dado</h1>
@katio
katio / dado.html
Created July 3, 2021 07:28
Código de video número 26 de la serie Programación desde cero. JavaScript: eventos y cómo programar un clic: https://www.youtube.com/watch?v=_i4fUcYaYM0&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=26 https://twitter.com/abrupto
<!DOCTYPE html>
<html>
<head></head>
<body>
<style>
body {
color: green;
font-family: arial;
}
#dado {