Skip to content

Instantly share code, notes, and snippets.

View prise6's full-sized avatar
🌍
\o/

François Vieille prise6

🌍
\o/
View GitHub Profile
@prise6
prise6 / building-tensorflow
Created August 30, 2017 00:56
Building TensorFlow
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
[...]
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-self-assign"
Target //tensorflow/tools/pip_package:build_pip_package up-to-date:
bazel-bin/tensorflow/tools/pip_package/build_pip_package
INFO: Elapsed time: 3013.569s, Critical Path: 95.19s
INFO: Build completed successfully, 3409 total actions
@prise6
prise6 / R-decision-graph.R
Created November 28, 2016 10:07
Decision graph for two-class probabilities
decisionGraph = function(probs, outcome, seq = base::seq(1,0,-0.05), precision.x = 0){
qtle = quantile(probs, seq)
lift.base = mean(outcome)
values = lapply(qtle, function(p){
@prise6
prise6 / R-ip-range-by-date.R
Last active December 16, 2016 09:21
IPV4, IPV6, ASN from RIRs by date
# ------------------------------------------------
#
# GET IP RANGE BY DATE
# with RIR informations
#
# ------------------------------------------------
library(data.table)
library(iptools)
@prise6
prise6 / shiny-gvis-sankey-responsive.R
Last active March 2, 2018 19:47
Quick solution to make a googlevis sankey responsive with Shiny
# ------------------------------
# SANKEY WITH GOOGLE VIS
# PSEUDO RESPONSIVE
# ------------------------------
# librairies
library(googleVis)
library(shiny)
# datas
@prise6
prise6 / r-datatable-dplyr-lag.R
Last active December 12, 2022 14:23
Exploration of different ways to compute quick diff time (lag) in R by group
# ------------------------------------------------------------------------
#
# MICROBENCHMARK ABOUT LAG OPERATION WITH R (dplyr, data.table)
#
# ------------------------------------------------------------------------
#
# Notes:
#
@prise6
prise6 / 10fastfinger_quick_dirty_hack.js
Last active May 3, 2016 14:08
Hack of http://10fastfingers.com website - greasemonkey \o/
// ==UserScript==
// @name 10fast
// @namespace test
// @include http://10fastfingers.com/typing-test/*
// @version 1
// @grant none
// ==/UserScript==