Skip to content

Instantly share code, notes, and snippets.

View owulveryck's full-sized avatar

Olivier Wulveryck owulveryck

View GitHub Profile
@owulveryck
owulveryck / dynamodbQuery.go
Created March 20, 2017 10:14
Simple Query to Dynamodb
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"log"
)
# -*- coding: utf-8 -*-
"""
pygments.lexers.graphql
~~~~~~~~~~~~~~~~~~~~
Lexers for GraphQL formats.
:copyright: Copyright 2017 by Martin Zlámal.
:license: BSD, see LICENSE for details.
"""
@owulveryck
owulveryck / main.go
Created May 18, 2017 08:19
Exclude a ping from the rest of the middlewares processing / Negroni / Gorilla
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/urfave/negroni"
"net/http"
)
type ping struct {
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"time"
)
@owulveryck
owulveryck / index.html
Created June 5, 2017 08:16
Using gopherjs to control a youtube video
<html>
<head>
</head>
<body>
<div id="player"></div>
<script src="app.js"></script>
</body>
</html>
@owulveryck
owulveryck / normalizationgraph.go
Last active August 9, 2017 19:40
Inception v3 in GO
func constructGraphToNormalizeImage() (graph *tf.Graph, input, output tf.Output, err error) {
const (
H, W = 299, 299
Mean = float32(0)
Scale = float32(255)
)
s := op.NewScope()
input = op.Placeholder(s, tf.String)
output = op.Div(s,
op.Sub(s,
@owulveryck
owulveryck / main.go
Created September 5, 2017 15:42
The damngina meme generator
package main
import (
"bufio"
"encoding/base64"
"fmt"
"image"
"image/color"
"image/draw"
_ "image/jpeg"
@owulveryck
owulveryck / NordAgileTour2017_J1.md
Last active November 16, 2017 09:12 — forked from DaffyDuke/NordAgileTour2017_J1.md
NordAgileTour2017

Introduction

Ce lundi 13 novembre 2017, Audric Duchet et Olivier Duquesne étions participants à l'Agile Tour 2017, une conférence orientée développement.
Le programme se trouve ici

Les conférences auxquelles nous avons participées

L'enfance perpétuelle: survivre dans une industrie qui croit toujours au Père Noël

Laurent Bossavit, @Morendil, un mec qui bosse chez beta.gouv.fr nous fait un rappel historique sur l'informatique, le développement en général.

package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@owulveryck
owulveryck / main_test.go
Last active December 11, 2017 16:47
utf8 in golang...
package main
import (
"math"
"testing"
)
func σ(x float64) float64 {
return float64(1) / (1 + math.Exp(-x))
}