Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
😎
Focus on FOSS Projects!

Ulises Gascón UlisesGascon

😎
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / conversion.sh
Created November 8, 2016 07:13
Convertir .NEF a .JPG en MAC
# From /Originales (.NEF) to ../Convertidas (.JPG)
for i in *.NEF; do sips -s format jpeg $i --out "../Convertidas/${i%.*}.jpg"; done
@UlisesGascon
UlisesGascon / opencv.sh
Created October 23, 2016 13:37 — forked from priyank/opencv.sh
Script to install OpenCV on Raspberry Pi
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -q -y update
sudo apt-get -q -y install build-essential
sudo apt-get -q -y install cmake
sudo apt-get -q -y install pkg-config
sudo apt-get -q -y install libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get -q -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2
sudo apt-get -q -y install zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get -q -y install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get -q -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs
@UlisesGascon
UlisesGascon / gulpfile.js
Last active December 9, 2016 18:09
Tareas comunes y útiles para el día a día con Gulp
var gulp = require('gulp'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
debug = require('gulp-debug'),
clean = require('gulp-clean'),
autoprefixer = require('gulp-autoprefixer'),
uncss = require('gulp-uncss'),
cssmin = require('gulp-cssmin'),
@UlisesGascon
UlisesGascon / visualizer_installer.sh
Last active October 14, 2016 16:31
Instalador automático de Visualizer para c9
#!/bin/bash
colorPrint () {
echo "$(tput setaf 1) $(tput setab 7) Visualizer Installer $(tput sgr 0) $(tput setaf 3) $(tput bold) $1 $(tput setaf 7)"
}
colorPrint "Welcome, $C9_FULLNAME!"
colorPrint "You are installing King of App Visualizer in C9.io..."
colorPrint "1. Let's check your system (Node & Npm)..."
@UlisesGascon
UlisesGascon / bower.json
Created September 14, 2016 10:38
[KOA DOCS] Spinner - Example
{
"name": "koapp-spinner-doc-simple",
"authors": "Ulises Gascón",
"description": "Documentation simple sample spinner for King of App",
"main": "koapp-spinner-doc-simple.html",
"moduleType": [
"globals"
],
"keywords": [
"kingofapp",
@UlisesGascon
UlisesGascon / bower.json
Created September 14, 2016 09:26
[KOA DOCS] Spinner - Complex Example
{
"name": "koapp-spinner-doc-complex",
"authors": "Ulises Gascón",
"description": "Documentation complex sample spinner for King of App",
"main": "koapp-spinner-doc-complex.html",
"moduleType": [
"globals"
],
"keywords": [
"kingofapp",
@UlisesGascon
UlisesGascon / Gruntfile.js
Last active October 4, 2016 09:45
KOA_visualizer_C9
'use strict';
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
karma: {
options: {
configFile: 'karma.conf.js'
},
unit: {
@UlisesGascon
UlisesGascon / simple_jquery.js
Created July 27, 2016 17:36
Simple Ajax Management
function updateHTML (datosdb){
console.log("Data from Ajax request: ", datosdb);
/*
-- UPDATE HTML --
*/
}
function errorDatos (err){
console.warn("Error in Ajax Request: ", err);
/*
@UlisesGascon
UlisesGascon / bootstrap-starter-template.html
Created July 13, 2016 08:59
Bootstrap starter-template with cdnjs
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
@UlisesGascon
UlisesGascon / terremotos.js
Last active May 14, 2016 08:48
Terremotos de la última hora detectados por el USGS en un script ejecutable de Node.js. Puedes filtrar con el parámetro (all, 1.0, 2.5, 4.5, significant)
#!/usr/bin/env node
var http = require('http');
if (!process.argv[2]) {
console.error('Necesito un parámetro para afinar mis resultados');
process.exit(1);
} else {
if (process.argv[2] !== "all" &&
process.argv[2] !== "1.0" &&