d3.js playground, using my last.fm data.
Based on A song chain by @tmcw.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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> |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Songs</title> | |
<style> | |
line.link { | |
stroke:#eee; | |
} | |
text { | |
fill:#888; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** 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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** 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 | |
*/ |