Skip to content

Instantly share code, notes, and snippets.

View xtuc's full-sized avatar

Sven Sauleau xtuc

View GitHub Profile
@xtuc
xtuc / UPGRADE-7.0.md
Last active February 1, 2018 22:11
Upgrade guide for Babel 7
@xtuc
xtuc / utils.scala
Last active November 20, 2015 11:01
Have fun with Scala
def compose[A,B,C](f: B => C, g: A => B): A => C =
a => f(g(a))
def curry[A,B,C](f: (A, B) => C): A => (B => C) =
a => b => f(a, b)
def uncurry[A,B,C](f: A => B => C): (A, B) => C =
(a, b) => f(a)(b)
@xtuc
xtuc / script.js
Created October 13, 2015 12:54
JavaScript VM
typeof null // object
null instanceof Object // false
@xtuc
xtuc / script.js
Created October 13, 2015 12:54
JavaScript VM
typeof null // object
null instanceof Object // false
@xtuc
xtuc / script.php
Created October 13, 2015 12:32
How to use OVH API to enable network burst on SBG1 servers?
<?php
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;
// Informations about your application
$applicationKey = "your_app_key";
$applicationSecret = "your_app_secret";
$consumer_key = "your_consumer_key";
// Information about API and rights asked
@xtuc
xtuc / testApplet.java
Last active September 28, 2015 11:27
Java card
package testPackage;
/*
* Package: testPackage
* Filename: TestApplet.java
* Class: TestApplet
* Date: [[10 June]] of [[2015]] 14:55:52
*/