Skip to content

Instantly share code, notes, and snippets.

View geoffreyp's full-sized avatar

Geoffrey Pruvost geoffreyp

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1KXwGF7A3Bzyssj33xh6S4BjapDFxDZ6VD https://explorer.blockstack.org/address/1KXwGF7A3Bzyssj33xh6S4BjapDFxDZ6VD
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# Imports
import numpy as np
import tensorflow as tf
def cnn_model_fn(features, labels, mode):
@geoffreyp
geoffreyp / mongocxx_findAll.cpp
Created July 29, 2017 20:18
Select * from collection in mongodb with mongocxx
auto curs = collection.find(bsoncxx::builder::stream::document{} << bsoncxx::builder::stream::finalize);
for (auto doc: curs) {
std::cout << bsoncxx::to_json(doc) << std::endl;
}
@geoffreyp
geoffreyp / api.go
Created March 22, 2017 12:16
Simple Webservice in GoLang
package main
import (
"net/http"
"github.com/gin-gonic/gin"
)
func main() {
router := gin.Default()
@geoffreyp
geoffreyp / app.js
Created March 20, 2017 20:05
Communication entre NodeJS et un programme écrit en C
const exec = require('child_process').exec;
// On éxécute le programme C
const process = exec('./a.out');
// Envoie d'un message au programme C
process.stdin.write('Message envoyé au programme C depuis app.js');
// écoute le programme C et affiche les données reçu
process.stdout.on('data', function (data) {