Skip to content

Instantly share code, notes, and snippets.

View javierarce's full-sized avatar

Javier Arce javierarce

View GitHub Profile
@antiboredom
antiboredom / index.html
Created December 15, 2014 16:36
A simple example showing how to save animated gifs from p5.js sketches, using https://github.com/jnordberg/gif.js
<html>
<head>
<script src="gif.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/p5.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/addons/p5.dom.js"></script>
<script src="sketch.js"></script>
</head>
<body>
<p>First, allow camera access.<p><p>Then click once to start recording, and another time finish recording and make a gif.</p>
</body>
#!/bin/bash
# Configuration #############################################
# For Slack tokens go to https://api.slack.com/#auth
SLACK_TOKEN=""
# In seconds
AWAY_AFTER=120
CHECK_EVERY=10
@beaugunderson
beaugunderson / bot-ally-code-of-conduct.md
Last active August 29, 2015 14:10
#botally code of conduct

#botally code of conduct

based on the #nodejs code of conduct by @izs

tl;dr If you’re a mean butt you get kicked out. This is not negotiable.

  • Sexist, heteronormative, racist, and other offensive remarks are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful or sexually explicit manner.)
  • Remarks that make any of the ops go “Hm, that’s inappropriate”, whether on the above list or not: also not allowed.
  • You get a warning.
  • If the warning is not taken seriously, you might get a second sterner warning in PM, if you’re lucky, and the op is feeling generous, and this is the first time. But don’t count on that.
@maxfenton
maxfenton / csscomb.sublime-settings
Last active November 12, 2015 17:55
csscomb.sublime-settings
{
// Full list of supported options and acceptable values can be found here:
// https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
"config": {
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": false,
"element-case": "lower",

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am

Pollo al lemongrass con calabacines

Un plato muy fácil (y rápido!) de preparar, sano, sabroso y perfecto como punto de partida para experimentar con nuevos ingredientes. En casa lo hacemos casi todas las semanas, para cenar.

Ingredientes, para 3 personas

  • Filetes de muslo de pollo (yo suelo comprar una bandeja de 600gr o así)
  • lemongrass
@McFunkypants
McFunkypants / gist:87f07ac5e8affad34391
Last active September 1, 2025 04:19
Sid Meier's 10 Rules of Game Design
Sid Meier's 10 Rules of Game Design
1. Choose a topic you have a passion for. Game Design is about creativity.
2. Do research after the game is done. Tap into the player’s brain.
3. Define your axioms, refine your axioms. Prototype, prototype, prototype; sit in all the chairs.
4. Double it or cut it in half. You are more wrong than you think.
@mort
mort / gist:5038eb6afdb583937f0c
Created July 30, 2014 22:13
Reading list: Historia de la tecnología
- Pre 1960
* http://www.amazon.com/The-Victorian-Internet-Remarkable-Nineteenth/dp/0802716040/ref=pd_bxgy_b_text_y
* http://www.amazon.com/Turings-Cathedral-Origins-Digital-Universe/dp/1400075998/ref=sr_1_1
http://www.amazon.com/The-Chip-Americans-Microchip-Revolution/dp/0375758283/ref=pd_rhf_dp_s_cp_1
- General history
* http://www.amazon.com/Hackers-Computer-Revolution-Anniversary-Edition/dp/1449388396/ref=pd_vtp_b_3
@andrewxhill
andrewxhill / cartodb-utils.py
Last active June 11, 2021 15:27
command-line python interface for manipulating data on CartoDB
import os
import urllib
import urllib2
import base64
import json
import sys
import argparse
try:
import requests
except ImportError:
@miguelmota
miguelmota / README.md
Last active June 5, 2025 11:23
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/