Skip to content

Instantly share code, notes, and snippets.

View gmarcos87's full-sized avatar

Marcos Gutierrez gmarcos87

View GitHub Profile
@gmarcos87
gmarcos87 / SassMeister-input-HTML.html
Last active August 29, 2015 14:20
Generated by SassMeister.com.
<div class="nav">
<ul>
<li class="home"><a href="#">Home</a></li>
<li class="tutorials"><a class="active" href="#">Tutorials</a></li>
<li class="about"><a href="#">About</a></li>
<li class="news"><a href="#">Newsletter</a></li>
<li class="contact"><a href="#">Contact</a></li>
</ul>
</div>
@gmarcos87
gmarcos87 / SassMeister-input-HTML.html
Last active August 29, 2015 14:20
Generated by SassMeister.com.
<div class="error-generico">
<p>Este es un error</p>
</div>
<div class="error-login">
<p>Esto es otro tipo de error</p>
</div>
<div class="error-rojo">
<p>Esto es otro tipo de error en color rojo</p>
</div>
<div class="error-azul">
@gmarcos87
gmarcos87 / SassMeister-input-HTML.html
Created May 2, 2015 22:53
Generated by SassMeister.com.
<div class="bloque-1">Bloque 1</div>
<div class="bloque-2">Bloque 2</div>
<div class="bloque-3">Bloque 3</div>
@gmarcos87
gmarcos87 / SassMeister-input-HTML.html
Created May 2, 2015 23:17
Generated by SassMeister.com.
<div class="area">
<div class="seccion">1</div>
<div class="seccion">2</div>
<div class="seccion">3</div>
<div class="seccion">4</div>
<div class="seccion">5</div>
<div class="seccion">6</div>
</div>
@gmarcos87
gmarcos87 / index.js
Created September 8, 2016 18:42
Node + Redis + Twitter
"use strict";
//EXPRESS
var express = require('express');
var util = require('util');
var oauth = require('oauth');
var session = require('express-session');
var cookieParser = require('cookie-parser');
@gmarcos87
gmarcos87 / boletin.sh
Last active September 29, 2016 13:44
Script en bash para descargar y buscar en los Boletines oficiales de la provincia de Córdoba, Argentina. Es necesario hacerlo ejecutable con "chmod a+rwx boletin.sh" y se puede pasar el parámetro de fecha "./boletin.sh DDMMYYYY". Si no se envia el atributo de fecha toma la del momento de la ejecución.
#! /bin/bash
declare -a URLS
if [[ -n "$1" ]]; then
fecha=$1
else
fecha=`date +%d%m%Y`
fi
day=${fecha:0:2}
@gmarcos87
gmarcos87 / en.js
Last active April 10, 2017 00:40
patchwork v3 - English strings
module.exports = {
public : "Public",
private : "Private",
mentions : "Mentions",
profile: "Profile",
hasBeenReleased : "has been released.",
clickInfo : "Click here for more info!",
copyLink : "Copy Link Ref ",
inspectProcess : "Inspect Server Process",
copyMessageId : "Copy Message ID",
@gmarcos87
gmarcos87 / index.html
Created April 19, 2017 19:10
Websocket messages by ID
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>
@gmarcos87
gmarcos87 / gsoc2017.md
Last active September 1, 2017 10:40
Conclusion of GSoC 2017

GSoC Project abstract

Result

In these three months I was working on the implementation of Luci2 (the graphic interface of LEDE / OpenWrt). The project was to translate the functionalities that Libremesh currently uses in Luci to the new proposal. The new environment consists of a backend based on UBUS that exposes JSON with data and the structure of the view (see more). As far as Google Summer of Code goes, I was able to make the ubus modules that emit information about bmx6, batman-adv, alignment, spectrum analysis, libremap and finally a series of several utilities. The results can be found in the lime-packages-ui repository.

Documentation

Each module has its documentation on the calls and the expected answers.

@gmarcos87
gmarcos87 / i18n-diff.js
Created October 21, 2017 12:38
Identify missing and missing keys in different languages ​​by taking one as a reference
const genericFile = require('./locales/en.json')
const colors = require('colors')
// Load all translation in locales folder
let translations = {}
require('fs').readdirSync('./locales/').forEach((file) => {
if (file.match(/\.json$/) !== null) {
let name = file.replace('.json', '')
translations[name] = require('./locales/' + file)