Skip to content

Instantly share code, notes, and snippets.

@francho
francho / typora_hello-graphs.md
Created October 18, 2019 13:57
Typora.io sample graphs

Flowchart.js

http://flowchart.js.org/

st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
@francho
francho / .zshrc
Created February 18, 2018 08:21
Mi zshrc config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/francho-frogtek/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
@francho
francho / gist:63162ed2e8ee82c25463
Created February 16, 2016 09:58
highlight jquery
/*
highlight v5
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
@francho
francho / index.html
Created December 11, 2014 11:11
Prueba de canvas
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
canvas {
border: 1px solid darkgray;
}
.box {
@francho
francho / 01-content-editable.html
Created June 26, 2014 09:51
Ejemplo de editable en html5
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<article id="mytext" contenteditable="true">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac placerat purus, eu lacinia nisl. Morbi ac
@francho
francho / cdrCountdown.js
Created August 9, 2013 09:24
Countdown
'use strict';
angular.module('cdrApp')
.directive('cdrCountdown', function () {
return {
// template: '<div class="cajaUltimaHora"><div class="ultimaHoraIzda"><div class="ultimaHoraTira"></div><p class="claimUltimaHora">¡Tu reserva al límite!</p><p id="digitosUltimaHora" class="digitosUltimaHora"></p></div><div class="ultimaHoraDcha"></div></div>',
restrict: 'E',
replace: true,
scope: {
'time': '=time'
@francho
francho / backup-jenkins.sh
Created August 22, 2012 15:42
Backup de jenkins en Ubuntu
#bin/sh
sudo tar vjcf /var/backups/jenkins.tgz /var/lib/jenkins/ \
--exclude '/var/lib/jenkins/jobs/*/workspace/*' \
--exclude '/var/lib/jenkins/jobs/*/builds/*' \
--exclude '/var/lib/jenkins/jobs/*/javadoc/*' \
--exclude '/var/lib/jenkins/jobs/*/bundle/*' \
--exclude '/var/lib/jenkins/tools/android-sdk/*' \
--exclude '/var/lib/jenkins/jobs/webapp-trunk/builds/*' \
--exclude '/var/lib/jenkins/.android/avd/*' \