Skip to content

Instantly share code, notes, and snippets.

View ababol's full-sized avatar

Arnaud Babol ababol

View GitHub Profile
#!/usr/bin/env ruby
# <bitbar.title>Hacker News</bitbar.title>
# <bitbar.author>Joe Canero</bitbar.author>
# <bitbar.author.github>caneroj1</bitbar.author.github>
# <bitbar.image>https://i.imgur.com/bghlATz.png</bitbar.image>
require 'net/http'
require 'json'
#!/usr/bin/env ruby
# <bitbar.title>Hacker News</bitbar.title>
# <bitbar.author>Joe Canero</bitbar.author>
# <bitbar.author.github>caneroj1</bitbar.author.github>
# <bitbar.image>https://i.imgur.com/bghlATz.png</bitbar.image>
require 'net/http'
require 'json'
import React from 'react';
import { BLOCKS } from '@contentful/rich-text-types';
import { documentToHtmlString } from './lib';
import BlogPostBlockquoteEmoji, {
contentfulId as BLOCKQUOTE_EMOJI,
} from '../BlogPostBlockquoteEmoji';
import BlogPostCaption, { contentfulId as CAPTION } from '../BlogPostCaption';
import BlogPostColumns, { contentfulId as COLUMNS } from '../BlogPostColumns';
import BlogPostImage from '../BlogPostImage';
@ababol
ababol / userChrome.css
Last active August 29, 2015 14:09
firefox-custom-style
.bookmark-item .toolbarbutton-text {
display: none !important;
}
#bookmarks-ptf toolbarbutton.bookmark-item:hover .toolbarbutton-text,
#bookmarks-ptf toolbarbutton.bookmark-item[image]:not([image=""]):not([container="true"]):hover .toolbarbutton-text,
#bookmarks-ptf toolbarbutton.bookmark-item[container="true"]:hover .toolbarbutton-text,
#bookmarks-ptf toolbarbutton.bookmark-item[image=""]:not([container="true"]):hover .toolbarbutton-text,
#personal-bookmarks toolbarbutton.bookmark-item:hover .toolbarbutton-text,
#personal-bookmarks toolbarbutton.bookmark-item[image]:not([image=""]):not([container="true"]):hover .toolbarbutton-text,
@ababol
ababol / areaspline_geckoboard.js
Last active August 29, 2015 14:04
Geckoboard - Default Highcharts Colors
{
chart: {
renderTo: 'container',
type: 'areaspline',
backgroundColor: 'transparent'
},
title: {
text: ""
},
xAxis: [{
@ababol
ababol / ring..c
Created March 12, 2014 21:46
Ring, consumer/producer problem
#include <stdio.h>
#include "ring.h"
void ring_init(Ring* r, int size) {
r->data = malloc(sizeof(int)*size);
r->capacity = size;
r->actualSize = 0;
r->write_cursor = 0;
r->read_cursor = 0;
@ababol
ababol / gist:5896433
Created June 30, 2013 19:06
Magmaw head vehicle
From 26995d46adb2593788c5849c580b1be1bd601750 Mon Sep 17 00:00:00 2001
From: Fedonono <arnaud.babol@gmail.com>
Date: Fri, 28 Jun 2013 18:20:53 +0200
Subject: [PATCH] Command vehicule+magmaw
---
src/server/game/Entities/Vehicle/Vehicle.cpp | 2 +-
8 files changed, 2801 insertions(+), 393 deletions(-)
create mode 100644 src/server/scripts/EasternKingdoms/BlackwingDescent/blackwing_descent.cpp
@ababol
ababol / gist:5498757
Created May 1, 2013 22:06
Pour quentin
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>group5</groupId>
<artifactId>GeneticAlgorithm</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GeneticAlgorithm</name>
@ababol
ababol / gist:5495477
Created May 1, 2013 14:13
pom.xm => <build> => <plugins> => ajouter :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
@ababol
ababol / gist:5455085
Created April 24, 2013 20:00
Dépendance locale maven.
<dependency>
<groupId>berlios</groupId>
<artifactId>jmathplot</artifactId>
<version>39</version>
<type>jar</type>
<scope>system</scope>
<systemPath>${project.basedir}/libs/berlios/jmathplot.jar</systemPath>
</dependency>