Skip to content

Instantly share code, notes, and snippets.

View danielepolencic's full-sized avatar
💭
☸️

Daniele Polencic danielepolencic

💭
☸️
View GitHub Profile
@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
@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 / 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/'`