Skip to content

Instantly share code, notes, and snippets.

Aurélien Thieriot athieriot

Block or report user

Report or block athieriot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sitemap.xml
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://doc.akka.io/docs/akka-http/current/project/migration-guides.html</loc>
</url>
<url>
<loc>http://doc.akka.io/docs/akka-http/current/java/extending-akka.html</loc>
</url>
<url>
<loc>http://doc.akka.io/docs/akka-http/current/contrib/reliable-proxy.html</loc>
</url>
View vim
--------------------------------
BASICS
--------------------------------
i / insert
u / Undo
<ctrl-r> / Redo
:q / quit
:q! / force
@athieriot
athieriot / Java8.java
Last active Aug 29, 2015
Java 8 features overview
View Java8.java
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.io.FileReader;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.time.*;
import java.time.format.DateTimeFormatter;
@athieriot
athieriot / Java7.java
Created Mar 21, 2014
Java7 features Overview
View Java7.java
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousFileChannel;
import java.nio.channels.CompletionHandler;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
View index.html
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
$(document).ready(function() {
$.ajax("http://localhost:8000/lvdf.html").done(function(body) {
var title = $(body).find("#firstHeading").text()
$("#yeah-baby").text(title);
})
@athieriot
athieriot / pom.xml
Last active Dec 24, 2015
Both Scala and Java
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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>scalanium</groupId>
<artifactId>scalanium</artifactId>
<version>1.0-SNAPSHOT</version>
View JavaScript stack: An adventure in Toolchain
It's been a while since the JavaScript community embraced Node.js. The ecosystem around Node changed many times since the early days. New tools are born, others die. We never had such a large choice of libraries and frameworks.
But as our community grows and matures, it's important to keep an eye on the tools that make the developer happy and improve the quality of our product: workflow automation helpers, testing, and so on.
In this talk, I will show the different pieces that compose a modern Node.js development stack and will try to put them in perspective in regard to the broad evolution of the Node.js ecosystem.
View spacer.rb
Earthquake.init do
output_filter do |item|
next unless item['text']
text = item["text"]
puts "\n\n"
end
end
@athieriot
athieriot / gist:5532748
Last active Jan 9, 2017
Hipchat with IRSSI
View gist:5532748

If you are adventurous, here the process to have Hipchat working in your favourite IRC client:

@athieriot
athieriot / Curry.js
Created Jun 14, 2012
Trying to explain curryfication
View Curry.js
#!/usr/bin/env node
//Declare curry method on every functions
Function.prototype.curry = function(arg1) {
//Keeping this just for later
var self = this;
//Keeping curried arg in the scope of the new function
var arg1 = arg1;
You can’t perform that action at this time.