Skip to content

Instantly share code, notes, and snippets.

View Rydgel's full-sized avatar
😂
💯 🔥

Jérôme Mahuet Rydgel

😂
💯 🔥
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Projet</title>
<link href="style.css" rel="stylesheet">
<style>
body { margin:0;padding:0; }
</style>
</head>
@Rydgel
Rydgel / umad
Created November 30, 2011 18:32
umad
127.0.0.1 activate.adobe.com
127.0.0.1 practivate.adobe.com
127.0.0.1 ereg.adobe.com
127.0.0.1 activate.wip3.adobe.com
127.0.0.1 wip3.adobe.com
127.0.0.1 3dns-3.adobe.com
127.0.0.1 3dns-2.adobe.com
127.0.0.1 adobe-dns.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
127.0.0.1 adobe-dns-3.adobe.com
<?php
$tournaments = [];
foreach($foos as $foo) {
$tournament["idTournament"] = $foo["idTournament"];
$tournament["name"] = $foo["name"];
$tournaments[] = $tournament;
unset($tournament);
}
<script>
(function() {
WebFontConfig = {
fontdeck: {
id: 'YOUR-ID'
}
};
var h=document.getElementsByTagName("html")[0];
h.className+=" wf-loading";
var t=setTimeout(function(){h.className=h.className.replace(/( |^)wf-loading( |$)/g,"");h.className+=" wf-inactive"}, 3000);
@Rydgel
Rydgel / gist:3324550
Created August 11, 2012 13:44
Equinox
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update
sudo apt-get install gtk2-engines-equinox equinox-theme
@Rydgel
Rydgel / gist:3819538
Created October 2, 2012 14:26
whosmad
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tweepy
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
from tweepy.error import TweepError
import json
traceroute to google.com (173.194.39.65), 30 hops max, 60 byte packets
1 vss-6b-6k.fr.eu (176.31.237.252) 0.303 ms * *
2 rbx-g2-a9.fr.eu (91.121.128.45) 0.679 ms 0.939 ms 0.955 ms
3 * * *
4 * * *
5 209.85.248.118 (209.85.248.118) 5.789 ms 11.769 ms 209.85.248.116 (209.85.248.116) 5.788 ms
6 209.85.255.74 (209.85.255.74) 6.202 ms 6.144 ms 209.85.255.72 (209.85.255.72) 6.170 ms
7 * * *
8 * * *
9 * * *
@Rydgel
Rydgel / gist:4077979
Created November 15, 2012 11:00
sass extends to css
SASS:
%plane
box-shadow: 0 2px 5px rgba(#000, .1)
border-radius: 5px
%white-plane
@extend %plane
background-color: #fff
~ $ PORT=5000 newrelic-admin run-program python app.py
Traceback (most recent call last):
File "app.py", line 43, in <module>
def placeholder(width, height=None, bgd="cccccc", fgd="909090"):
File "/app/.heroku/python/lib/python2.7/site-packages/flask/app.py", line 1013, in decorator
self.add_url_rule(rule, endpoint, f, **options)
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.12.0.56/newrelic/api/object_wrapper.py", line 237, in __call__
self._nr_instance, args, kwargs, **self._nr_kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.12.0.56/newrelic/api/in_function.py", line 15, in wrapper
return wrapped(*_args, **_kwargs)
package riot.Parsing
/**
* Created by Jérôme Mahuet on 22/02/2014.
* http://www.furida.mu/blog/2012/09/18/beautiful-json-parsing-in-scala/
*/
import net.minidev.json.JSONValue
import net.minidev.json.JSONArray
import net.minidev.json.JSONObject