Skip to content

Instantly share code, notes, and snippets.

View aarroyoc's full-sized avatar

Adrián Arroyo Calle aarroyoc

View GitHub Profile
@aarroyoc
aarroyoc / atom.txt
Created October 15, 2014 14:01
Atom packages
ask-stack
atom-beautify
atom-bitcoin
atom-color-highlight
atom-gist
atom-minjs
atom-prettify
atom-runner
auto-indent
autoclose-html
@aarroyoc
aarroyoc / GameMotivation.md
Last active August 29, 2015 14:08
Motivación de juegos
  • Ponte milestones/puntos de control/objetivos pequeños
  • Haz un poquito cada día
  • Piensa en hacer el MVP (minimum viable project, proyecto mínimo viable)
  • Haz prototipos pronto y encuentra el gameplay divertido
  • Desarrolla algo pensando en añadir cosas mucho más tarde
  • No construyas un motor o un framework. Debes hacer un juego.
  • Lanzarlo es una característica. Si algo no sale, da igual lo que tenga que no servirá
  • Una vez ya esté puedes usar el círculo de demming e ir añadiendo cosas
  • Escribe un blog con avances
  • Ten betatesters
@aarroyoc
aarroyoc / BUILD
Created December 21, 2014 17:11
Haiku EGL
g++ -o HaikuTest HaikuTest.cpp /boot/home/mesa/build/haiku-x86-debug/egl/main/libEGL.so -lGL -lbe -I/boot/home/mesa/include && EGL_LOG_LEVEL=debug MESA_DEBUG=1 LIBGL_DRIVERS_PATH=/boot/home/mesa/build/haiku-x86-debug/mesa/drivers/haiku/swrast/ ./HaikuTest
@aarroyoc
aarroyoc / dbus.js
Created February 27, 2015 19:40
dbus.js
var dbus=require("dbus-native");
var bus=dbus.sessionBus();
bus.getService("org.freedesktop.Notifications").getInterface("/org/freedesktop/Notifications","org.freedesktop.Notifications",function(err,notify){
notify.Notify("Probando D-Bus",0,"/usr/share/pixmaps/firefox.png","Título","Cuerpo de la notificación",[],[],5,function(err,id){
console.log("Notificación enviada");
});
});
@aarroyoc
aarroyoc / gem.txt
Last active August 29, 2015 14:16
Ubuntu Installation
jekyll
gollum
github-markdown
rhc
travis
ronn
var buttons = require('sdk/ui/button/action');
var tabs = require("sdk/tabs");
var button = buttons.ActionButton({
id: "mozilla-link",
label: "Visit Mozilla",
icon: {
"16": "./icon-16.png",
"32": "./icon-32.png",
"64": "./icon-64.png"
}
@aarroyoc
aarroyoc / normalize.sh
Created August 24, 2015 18:46
Normalize audio and convert to Ogg Vorbis
#!/bin/bash
# Public Domain - Adrian Arroyo Calle
# Converts MP3 to OGG and normalize audio
# Monocore version
#shopt -s globstar
#for i in **/*.mp3; do
# BASENAME="${i%.mp3}"
# ffmpeg -i "${BASENAME}.mp3" "${BASENAME}.tmp.ogg"
@aarroyoc
aarroyoc / optimize-img.sh
Created September 20, 2015 14:21
Optimize PNG and JPEG using GNU Parallel
#!/bin/bash
if [ "$2" = "1" ]; then
BASENAME="${1%.png}"
optipng -o7 "${BASENAME}.png"
elif [ "$2" = "2" ]; then
BASENAME="${1%.jpg}"
jpegoptim "${BASENAME}.jpg"
else
find . -name "*.png" | parallel ./optimize-img.sh "{}" 1
@aarroyoc
aarroyoc / gist:5102473
Created March 6, 2013 19:52
Mi first Gist
Really, my first Gist on GitHub
@aarroyoc
aarroyoc / fichero.rb
Created March 30, 2013 21:25
Ver "DivCity Snapshot 1" en YouTube
https://www.youtube.com/watch?v=AoR8p_FGgh8&feature=youtube_gdata_player Nuevo vídeo