Skip to content

Instantly share code, notes, and snippets.

View alejandro's full-sized avatar

Alejandro Morales alejandro

  • Revls
  • Tegucigalpa, Honduras
View GitHub Profile
@alejandro
alejandro / latexParser.js
Created February 11, 2012 18:44
LaTeX Parser
/*
ASC
*/
EClass = [
0,0,0,0,0,0,0,0,0,0,56,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0,0,5,0,2,8,0,0,0,0,55,12,0,0,0,0,0,0,0,0,0,0,0,0,0,51,9,0,10,0,0,0,53,0,35,0,0,34,0,0,0,0,37,0,0,42,39,0,50,40,36,41,45,0,38,0,0,46,1,47,6,7,0,22,15,33,24,16,19,23,48,21,43,28,13,20,17,18,30,52,31,14,27,32,25,44,29,57,26,3,0,4,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
]
/*
ACCs
*/
[{
"id": "1",
"time": "20:30pm (4/16)",
"link": "https://twitter.com/saludhn/status/1250972755996139522/photo/1",
"headline": "A 9.3% sube la tasa de mortalidad en Honduras:",
"abstract": "Se lamentan 6 nuevas muertes, todas en Cortés."
}, {
"id": "3",
"time": "12:00am (4/16)",
"link": "https://twitter.com/radiohrn/status/1250873543065243648",

Run each of the following lines, replacing yourdomain.com and codehere with your details:

now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10
@alejandro
alejandro / gravatar.js
Created December 24, 2011 04:26
Api to generate gravatar pics
var md5 = require('md5'),
querystring = require('querystring');
exports.BASE_AVATAR_URL = 'www.gravatar.com/avatar/';
function isBrowser() {
return (typeof(window) !== 'undefined');
}
@alejandro
alejandro / clone.js
Created December 2, 2011 05:33
Clone all your gists
#!/usr/bin/env node
var request = require("request");
var exec = require("child_process").exec;
if (process.argv.length < 3) {
console.log("Ocupo un usuario");
}
var username = process.argv[2];
@alejandro
alejandro / example.lua
Created August 19, 2012 14:21
Mouse input parser with luvit
local Mouse = require('./mouse').Mouse
local table = require('table')
local mouse = Mouse:new('/dev/input/mouse1')
mouse:on('connected', function (dt)
debug('mouse connected')
local actions = {'moved', 'button'}
-- register actions
table.foreach(actions, function (i, v)
@alejandro
alejandro / continuable.js
Created December 3, 2012 02:52
JS: Estilo Continuable (Control Flow)
"use strict";
var Continuable = {}
Continuable.make = function make(fn) {
if ('function' !== typeof(fn)) throw new Error(fn + 'is not a function')
var evnt;
function first() {
var args = [].slice.call(arguments)
@alejandro
alejandro / app.js
Last active December 24, 2015 08:29
A Disqus component for Ember.js
App.CDisqusComponent = Em.Component.extend({
didInsertElement: function(){
var root_url = "website url"
, page_id = window.location.href
, disqus_identifier = page_id
, disqus_title = Em.$('title').text()
, disqus_url = page_id
, disqus_shortname = 'disqus shortname'
, el_id = disqus_shortname + Date.now()
this.set('page_id', el_id)
html, body, button, input, textarea, select {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
body {
background: #fff;
color: #333;
font: normal normal 22px/1.6 'dosis','Helvetica Neue',Helvetica,Arial,Verdana,sans-serif;
td {
background: cyan;
min-width: 100px;
height: 100px;
text-align: center;
font-family: Arial;
font-weight: 800;
font-size:30px;
}