Skip to content

Instantly share code, notes, and snippets.

require 'exifr'
img = EXIFR::JPEG.new('path-to-image')
lat = img.gps.latitude
long = img.gps.longitude
puts "Latitude : #{lat}."
puts "Longitude : #{long}."
puts "#{lat}, #{long}"
@aliou
aliou / issues.rb
Created December 15, 2012 22:03
issue backup
require 'json'
require 'github_api'
github = Github.new basic_auth: 'USERNAME:PASSWORD'
issues = []
tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'closed'
issues << tmp
tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'open'

A song chain reloaded.

d3.js playground, using my last.fm data.
Based on A song chain by @tmcw.

@aliou
aliou / keylogger.c
Created December 12, 2012 14:06 — forked from frasten/keylogger.c
/* Compilare con:
* gcc keys.c -lX11 -o keylogger
*/
#include <X11/Xlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <X11/keysym.h>
@aliou
aliou / Readme.md
Created December 9, 2012 16:20
Cheddar command line interface.

Quick command line interface for Cheddar. Uses the vermonster gem, install with:

gem install vermonster

The config file is located at ~/.config/cheddar/config is formated like a regular yaml file:

client_id: xxxxxxx
# https://github.com/caseyhoward/nokogiri-plist
require 'nokogiri-plist'
# /apps/gnome-terminal/profiles/Default
# -> background_color
# -> bold_color
# -> foreground_color
# -> palette
def convert_to_key(real_color)
@aliou
aliou / .gitignore
Created November 30, 2012 18:46
A mapbox test
*.json
@aliou
aliou / index.html
Created November 30, 2012 06:27 — forked from tmcw/index.html
A Song Chain
<!DOCTYPE html>
<html>
<head>
<title>Songs</title>
<style>
line.link {
stroke:#eee;
}
text {
fill:#888;
@aliou
aliou / hidenp_exam_02.c
Created November 24, 2012 18:21
hidenp
/*
** hidenp.c for hidenp in /exam//rendu/ex_5
**
** Made by aliou diallo
** Login <[email protected]>
**
** Started on Sat Oct 13 10:25:30 2012 aliou diallo
** Last update Sat Oct 13 11:06:32 2012 aliou diallo
*/
@aliou
aliou / url_encode.c
Created November 24, 2012 16:12
url_encode
/*
** main.c for osef in /exam//rendu/ex_5
**
** Made by aliou diallo
** Login <[email protected]>
**
** Started on Sat Nov 24 11:08:38 2012 aliou diallo
** Last update Sat Nov 24 11:34:57 2012 aliou diallo
*/