Skip to content

Instantly share code, notes, and snippets.

View valdo404's full-sized avatar

Laurent Valdes valdo404

View GitHub Profile
@valdo404
valdo404 / python-dev-berlin.md
Created September 3, 2012 12:42 — forked from skreutzberger/python-dev-berlin.md
Senior Python Developer Berlin

#Open Position "Senior Python Developer Berlin"

For our stealth high-tech cloud startup in Berlin, I am searching for a capable member for our team of backend hackers. The main tasks would be writing tools for automation, deployment and scaling of multiple cloud providers. We are also working on Big Data, where the tasks are mostly data mining and processing (Map/Reduce).

In general, it is a technically very challenging high-tech position. That’s why we are looking for experienced backend hackers with a flexible mindset and skills in software design, coding and server administration (in the ratio of 10:70:20) and a reputation in the open source community.

Required professional experience:

  • Python and another web language
  • PostgreSQL & NoSQL databases
@valdo404
valdo404 / gist:5622257
Created May 21, 2013 18:51
file failing
*** /var/log/libvirt/qemu//instance-00000017.log ***
2013-05-21 18:47:18.651+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ QEMU_AUDIO_DRV=spice /usr/bin/qemu-system-x86_64 -S -M pc-1.1 -cpu kvm64,+lahf_lm,+rdtscp,+hypervisor,+popcnt,+sse4.2,+sse4.1,+ssse3,+ss,+acpi,+ds,+vme -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-00000017 -uuid fc2d341a-79a2-403d-9f4b-fa520fa2bd63 -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=2013.1,serial=564d1e26-4f27-a50b-5470-0330e69f56f0,uuid=fc2d341a-79a2-403d-9f4b-fa520fa2bd63 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000017.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive file=/dev/disk/by-path/ip-178.32.98.55:3260-iscsi-iqn.2010-10.org.openstack:volume-32694
@valdo404
valdo404 / README.md
Last active August 29, 2015 14:10 — forked from amochtar/README.md

Description

A Dashing widget to display a random Xebia Essentials card. Refreshes every 15 minutes.

Dependencies

The following dependencies are required. Please add them to your dashing gemfile.

require 'net/http'
require 'json'
import java.util
import net.openhft.koloboke.collect.map.hash.HashIntObjMaps
import scala.collection.mutable
object SortedMap {
implicit class RichElapsed[A](f: => A) {
def elapsed(): (A, Double) = {
val start = System.nanoTime()
val res = f
val end = System.nanoTime()
package tennis
class Player(val number: Int, private var value:Int = 0) {
def score(): Score = value match {
case 0 => Love
case 1 => Fifteen
case 2 => Thirty
case 3 => Forty
case _ => Win(number)}
package bench;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
import javassist.util.proxy.MethodHandler;
import javassist.util.proxy.ProxyFactory;
public class PlaylistParser
{
/**
* @param playlistContent a string representation of the playlist content
* @return a list of string representation of a song
*/
public List getFavoriteSongs(final String playlistContent) {
final List<Optional<Song>> songs = parseSongs(playlistContent);
return bestSongs(computeScores(songs));
package main
import akka.actor.ActorSystem
import spray.json.DefaultJsonProtocol
import spray.json._
import spray.routing.SimpleRoutingApp
case class Order(prices: Seq[Float], quantities: Seq[Int], country: String, reduction: String)
object Euros {
trait Currency
case class Euro(int: Int) extends AnyVal with Currency {
def +(m: Euro): Euro = new Euro(int + m.int)
}
implicit class EuroToInt(int: Int) {
def `€` = {
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import javax.annotation.Nullable;
import java.util.concurrent.ExecutionException;
public class FuturesApp {
public static void main(String[] args) throws ExecutionException, InterruptedException {