Skip to content

Instantly share code, notes, and snippets.

View pjnovas's full-sized avatar

Pablo Novas pjnovas

  • Buenos Aires, Argentina
View GitHub Profile
@euphy
euphy / send.py
Last active May 6, 2022 18:56
Polargraph queue sender (low resource)
#!/usr/bin/python
"""
MIT License
Copyright (c) 2022 Sandy Noble
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@asev
asev / bitbucket_load_all_diffs.js
Created July 14, 2015 05:43
Bitbucket load all diffs in pull request
/* Add this line to bookmarks and use when you see
* "Oops! You've got a lot of code in this diff and it couldn't load with the page."
* on a pull request at Bitbucket.
*/
javascript:(function(){[].forEach.call(document.querySelectorAll(".load-diff"),function(a){a.click()})})();
@malev
malev / .gitignore
Last active February 11, 2022 15:27
Install Freeling 3.1 on Ubuntu 14.04
config.yml
@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing
@MatiasArriola
MatiasArriola / pixel art en español.md
Last active March 9, 2024 06:26
Pixel Art en español

Recopilación de recursos de aprendizaje en español acerca de pixel art.

¿Por qué en español? Sencillo, para darle una oportunidad a todos los que no sepan inglés. Hay una gran cantidad de recursos y listas como esta hechas en inglés.

Este es un trabajo en progreso. El fork es siempre alentado, con el objetivo de obtener una lista lo más completa, variada, y actualizada posible.

Pixel Art en wikipedia

##Tutoriales

@killercup
killercup / mongoose-csv-stream-export.js
Created January 21, 2014 10:58
Stream data from Mongoose into CSV download
var Campaign = require('../model/campaign');
module.exports.getCampaignsCSV = function (req, res) {
function CSVEscape(field) {
return '"' + String(field || "").replace(/\"/g, '""') + '"';
}
var headers = [
'Code-Nummer', //num
'Kampagnenname', //name
@juampynr
juampynr / README.md
Last active May 29, 2020 12:21
Blink SIP client installation on Ubuntu 13 (saucy) and 14 (trusty)
  1. Install python with sudo apt-get install python.

  2. Download Blink sources from http://download.ag-projects.com/BlinkQt

  3. Extract contents and open the terminal.

  4. Change directory into the Blink folder and run sudo python setup.py install

  5. Install the following Python libraries:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jonathanmoore
jonathanmoore / gist:2640302
Created May 8, 2012 23:17
Get the share counts from various APIs

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter

@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];