Skip to content

Instantly share code, notes, and snippets.

View quest's full-sized avatar
👨‍💻

Victor San Martin quest

👨‍💻
View GitHub Profile
@quest
quest / santorales-catolicos.json
Last active May 22, 2022 19:45 — forked from juanbrujo/santorales-catolicos.json
Santorales católicos por mes en formato JSON
{
"enero":[
"María, Madre de Dios",
"Basilio, Gregorio",
"Genoveva",
"Yolando, Rigoberto",
"Emilia",
"Wilma, Melanio",
"Raimundo",
"Luciano, Eladio",
@quest
quest / luka.wallet
Created February 5, 2018 02:30
LuKa (old)
LFmWRPPCKaG4Bp6r6MjwFA7KoNWcw342aR15P2wN6YzgSAjxSu6CVp2iVbqsnRDTAoDvSVnpxDEFRANfNGMsyfquJY8VU1s
@quest
quest / luka.wallet
Created February 3, 2018 02:45
LuKa
LNtiRRjbzTAGjcnV8DLe2vJ4SuhwHR3Z2Bvj3ikdVjeXVK5qseaeAYePGPYhjawa9p24aCQuUkDsUgboGfUaBvtfNrve2vh
@quest
quest / validar_rut.js
Created December 3, 2015 19:49
Validar RUT Chileno
function validarRut (rut) {
if (rut.length == 0 || rut.length < 8) {
return false;
}
rut = rut.replace('-','').replace(/\./g,'');
var sum = 0,
chars = "1234567890kK",
counter = 0;
for (var i = 0; i < rut.length; i++) {
@quest
quest / DWTFYWTPL
Last active August 29, 2015 14:23 — forked from juanbrujo/DWTFYWTPL
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@quest
quest / frases-futbol-chileno.json
Last active August 29, 2015 14:22
Frases de culto del futbol chileno
{
"phrases": [
{"author": "Hernán Levy (ex presidente de Blanco y Negro)", "text": "Universidad de Chile ganó la (copa) Sudamericana, pero acá se encontró con papá"},
{"author": "Jorge Sampaoli", "text": "La U tuvo en 2011 mejores partidos que el Barcelona actual"},
{"author": "Francisco Huaiquipán", "text": "Periodista: Francisco, excelente partido. Felicitaciones por sus goles. Pero, dígame, ¿cómo esta su pierna?. Sí, mi pierna está bien, en la casa, cuidando a mis hijos, y le quisiera mandar un saludo, que la quiero mucho y que me espere con algo rico"},
{"author": "Francisco Rojas", "text": "Periodista: Tenemos la información que se están haciendo las gestiones para emigrar al extranjero. Nos podría decir ¿de dónde lo están pidiendo?. Bueno, del país no puedo contarles nada. Sólo puedo adelantarles que se trata de un equipo brasileño"},
{"author": "Francisco Rojas", "text": "Bueno, ya sé que formo parte del best seller chileno"},
{"author": "Francisco Rojas", "text": "Respeto a don Peter Drag
@quest
quest / uselessweb.json
Last active August 29, 2015 14:21
The Useless Web
{
"author": "@twholman - http://www.theuselessweb.com/",
"uselessweb": [
"http://heeeeeeeey.com/",
"http://thatsthefinger.com/",
"http://cant-not-tweet-this.com/",
"http://eelslap.com/",
"http://www.staggeringbeauty.com/",
"http://burymewithmymoney.com/",
"http://www.fallingfalling.com/",
@quest
quest / AppController.php
Last active August 29, 2015 14:08
ElephantIO
public $components = array(
'ElephantIO.ElephantIO' => array(
'url' => 'http://127.0.0.1:3000', //IP:PORT to SocketIO
'version' => '1X', //1X or 0X
'options' => array() // only for 1x, see more: https://github.com/Wisembly/elephant.io/blob/master/src/Engine/AbstractSocketIO.php#L199
)
);
@quest
quest / error.json
Last active August 29, 2015 14:07
JSON Reponse
{
"code": 4xx,
"message": "Software error",
"description": "Description for the software error",
}

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.