Skip to content

Instantly share code, notes, and snippets.

View JuanjoSalvador's full-sized avatar
🎯
Focusing

Juanjo Salvador JuanjoSalvador

🎯
Focusing
View GitHub Profile
@JuanjoSalvador
JuanjoSalvador / cronometer.html
Created October 26, 2015 09:42
Cronometro en JavaScript
<html>
<head>
<title>Cronómetro</title>
<meta charset="utf-8">
<script>
var cronos;
var tiempo;
@JuanjoSalvador
JuanjoSalvador / comicpackager.cs
Last active January 15, 2016 23:32
Comic-Packager en C# (test)
/*
1. Comprueba que el parámetro ES UN DIRECTORIO (implementado)
2. Comprueba que el parámetro NO VA SER SOBREESCRITO (implementado)
3. Sustituye los espacios en el nombre del fichero por guiones bajos (_) [OPCIONAL] (no implementado)
--- Bash lo necesitaba sin espacios porque es así de quejica ---
4. Comprime el directorio en ZIP añadiéndole la extensión CBZ (implementado)
*/
<html>
<head>
<title>AngularJS Hello World!</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<!-- Controlador -->
<script>
@JuanjoSalvador
JuanjoSalvador / index.html
Created April 1, 2016 12:33
Node.js + AngularJS testing app
<html>
<head>
<title>It works!</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<!-- Controlador -->
<script>
@JuanjoSalvador
JuanjoSalvador / .gitignore
Created May 11, 2016 08:41 — forked from bergie/.gitignore
Node.js email handling examples
config.json
reading-image.png
@JuanjoSalvador
JuanjoSalvador / Trackma Desktop.md
Last active February 15, 2021 14:27
Trackma's Desktop Entry. Open up Trackma as another desktop app.

GNOME Shell

Tested on 3.18.1

  1. Copy trackma.desktop into ~/.local/share/applications/ folder. For all users, put it into /usr/share/applicacions/.
  2. Download icon (available here) and copy it into ~/.local/share/icons/hicolor/128x128/apps/ folder. For all users, change ~/.local/ by /usr/.
  3. Reload gnome-shell by restarting your system.

Trackma Desktop

@JuanjoSalvador
JuanjoSalvador / README.md
Last active June 8, 2016 11:07
Simple portfolio written in AngularJS that you can use with Jekyll (GitHub Pages)

README

  1. Copy portfolio.html into _includes folder.
  2. Go to your portfolio page and add {% include portfolio.html %} where you want to show it.
  3. Edit projectList into portfolio.html to show your projects.
@JuanjoSalvador
JuanjoSalvador / csv2json.js
Created May 25, 2016 16:06
Convertidor de CSV a JSON
//var csv is the CSV file with headers
function csvJSON(csv){
var lines=csv.split("\n");
var result = [];
var headers=lines[0].split(",");
for(var i = 1; i < lines.length; i++) {
var obj = {};
var currentline = lines[i].split(",");
@JuanjoSalvador
JuanjoSalvador / quiniela.rb
Last active September 7, 2018 20:00
Generador de quinielas al azar. Ejemplo en Codepad http://codepad.org/FFdI8XyL
#!/usr/bin/env ruby
resultados = ["1", "x", "2"];
30.times do |i|
i = i + 1
if (i < 10)
i = "0" + i.to_s
end
puts "Resultado " + i.to_s + ": " + resultados[rand(3)].to_s
end
@JuanjoSalvador
JuanjoSalvador / .conkyrc
Last active July 28, 2020 18:02
My conky configuration
# Utils conky config
# By Juanjo Salvador (http://juanjosalvador.es)
background no
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1
total_run_times 0
own_window yes