Skip to content

Instantly share code, notes, and snippets.

View hpneo's full-sized avatar

Gustavo Leon hpneo

View GitHub Profile
var iframe = global.document.querySelector('#console-terminal'),
currentConsole = new CodePicnic.Console(global.CP.consoles.MjQ2Njgy.console),
myTextArea = document.querySelector('#code'),
myResult = document.querySelector('#result'),
ee = new global.EventEmitter(),
currentCommand,
prompts = {
ruby: /^irb(.*)> $/,
javascript: /^> $/,
php: /^php > $/
[
{ "key": "cmd+k w", "command": "workbench.action.closeActiveEditor" },
{ "key": "cmd+w", "command": "workbench.files.action.closeFile" },
{ "key": "shift+cmd+7", "command": "editor.action.addCommentLine" }
]
var brand = { href: 'https://codepicnic.com', image: 'https://codepicnic.com/logos/small/missing.png' },
options = [
{
id: 'test',
title: 'Test',
icon: 'icon-test',
href: '/test',
target: '_blank'
}
];
@hpneo
hpneo / gulpfile.js
Created March 13, 2016 00:26
gulp+cordova
var gulp = require('gulp'),
cordova = require('cordova-lib').cordova,
notifier = require('node-notifier');
gulp.task('serve', function(callback) {
cordova.serve().then(function() {
notifier.notify('Cordova app served!');
}).then(function() {
callback();
});
if (conozcoAlOP) {
if (alguienHaComentadoEstupidecesOMemes) {
return false;
}
else {
if (esEnTwitter) {
return false;
}
else {
return true;
@hpneo
hpneo / rename.js
Created January 2, 2016 16:36
Rename files using regexp and Node.js
var fs = require('fs'),
path = require('path'),
args = process.argv.slice(2),
dir = args[0],
match = RegExp(args[1], 'g'),
replace = args[2],
files;
files = fs.readdirSync(dir);
package com.biciq.biciqscan;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
@hpneo
hpneo / gist:d2f68d817b537dc7ef15
Last active August 29, 2015 14:22
Commits guidelines

Commits guidelines:

If a commit contains a lot of changes (or important ones), make a git commit using this message format:

Version 20150607:

* New method: lalala
* Fix method: lalala
* Refactor in method: lalala
@hpneo
hpneo / term.html
Last active August 29, 2015 14:18
term.html
<!DOCTYPE html>
<meta charset='utf-8'>
<title>CodePicnic Console</title>
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
#loader {
font-family: "Monaco", "DejaVu Sans Mono", "Menlo","Liberation Mono", Consolas, "Courier New", monospace;
}
</style>
<script src="bundle.js"></script>
@hpneo
hpneo / tips-presentaciones.md
Created March 16, 2015 20:10
Tips para crear slides
  1. Evita las imágenes de fondo, si usas procura que tenga buen contraste con el texto
  2. Máximo 2 tipos de letra por slide, máximo 3 tipos de letra para toda la presentación
  3. Procura usar fondos claros
  4. Alinea las imágenes y el texto tanto horizontal como verticalmente
  5. Usa una sola imagen como máximo por slide, a menos que sean logos
  6. Los títulos deben ser concisos y precisos
  7. Evita copiar y pegar párrafos, usa listas con hechos puntuales
  8. No abuses de los números para dar estadísticas
  9. Haz tu presentación teniendo en cuenta el tiempo que te darán para exponer
  10. De ser posible, pon una agenda o temario después del título y/o antes de cada subtema