Skip to content

Instantly share code, notes, and snippets.

View danielepolencic's full-sized avatar
💭
☸️

Daniele Polencic danielepolencic

💭
☸️
View GitHub Profile
@danielepolencic
danielepolencic / dSlideshare
Created April 23, 2012 16:02
Workaround for disabled download button on SlideShare [www.coconutmonarchy.com]
#!/bin/bash
if [ -z "$1" ]; then
echo "";echo "[i] Usage: `basename $0` http://www.slideshare.net/link_with_presentation";echo "";exit
fi
presentation=`curl -s --user-agent 'Mozilla/5.0' "$1" | tr '"' "\n" | egrep -m 1 -e "static\.slidesharecdn\.com\/swf\/ssplayer2\.swf\?doc=(.*?)\{rel}{startSlide}" | cut -d '{' -f 1 | cut -d '=' -f 2`
pages=`curl -s --user-agent 'Mozilla/5.0' "$1" | grep -m 1 "slideshare_object" | sed 's/.*total_slides":\([^,]*\).*/\1/'`
version=`curl -s --user-agent 'Mozilla/5.0' "$1" | grep -m 1 "slideshare_object" | sed 's/.*version_no":"\([^""]*\).*/\1/'`
@danielepolencic
danielepolencic / gist:3489636
Last active March 26, 2024 19:16
Arduino + Serato DJ = Seratuino
/*
*
* DDS Sine Generator mit ATMEGS 168
* Timer2 generates the 31250 KHz Clock Interrupt
*
* KHM 2009 / Martin Nawrath
* Kunsthochschule fuer Medien Koeln
* Academy of Media Arts Cologne
*
* Edit: Daniele Polencic
@danielepolencic
danielepolencic / robot.js
Created December 9, 2012 13:54
danielerobot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
// {
// robot: {
// // INFORMATION ON THE CURRENT GAME
// id, // Id from your robot
// angle, // Current angle from your robot in degrees
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
// {
// robot: {
// // INFORMATION ON THE CURRENT GAME
// id, // Id from your robot
// angle, // Current angle from your robot in degrees
@danielepolencic
danielepolencic / robot.js
Created December 10, 2012 14:17
dantest
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
// {
// robot: {
// // INFORMATION ON THE CURRENT GAME
// id, // Id from your robot
// angle, // Current angle from your robot in degrees
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
// {
// robot: {
// // INFORMATION ON THE CURRENT GAME
// id, // Id from your robot
// angle, // Current angle from your robot in degrees
@danielepolencic
danielepolencic / robot.js
Created December 10, 2012 20:48 — forked from acelan/robot.js
Frextank
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var self = this;
self.robot = robot;
self.members = {};
self.enemies = {};
// The following piece of code produce steady usage of memory
// when one of the first two console.log are uncommented. However,
// when the last console.log is the only console.log uncommented,
// memory usage grows indefinitely.
setInterval( function(){
var util = require('util')
// Uncomment one of the following lines:
// console.log('Ding! ', 'Dong' ) // 16.9MB
// console.log('Ding! ', util.inspect('Dong') ) // 17.1MB

Please read the new and updated version.

Sendy

Sendy is a self hosted email newsletter application that lets you send trackable emails via Amazon Simple Email Service (SES).

Heroku

You can deploy Sendy on Heroku using the following instructions (I assume you've already installed the heroku toolbelt).