Skip to content

Instantly share code, notes, and snippets.

View marctrem's full-sized avatar
Verified Account

Marc-André Tremblay marctrem

Verified Account
  • Jump Trading LLC
View GitHub Profile
@tcnksm
tcnksm / NOTE.md
Last active April 13, 2024 21:28
Small note of gRPC Best Practice @ CoreOSFest 2017
CC=g++
CFLAGS=-c -Wall -Wextra
LDFLAGS=
SOURCES=tp3.cpp astar.cpp carte.cpp coodonnee.cpp etat.cpp sommet.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=tp3
all : $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
(require '[clojure.core.async :as a])
(def xform (comp (map inc)
(filter even?)
(dedupe)
(flatmap range)
(partition-all 3)
(partition-by #(< (apply + %) 7))
(flatmap flatten)
(random-sample 1.0)
(ns echo-server
(:import (java.net InetAddress DatagramPacket DatagramSocket)))
(def udp-server (ref nil))
(def port 12345)
(defn localhost [] (. InetAddress getLocalHost))
(defn message [text]
@damianavila
damianavila / remove_output.py
Created April 3, 2013 22:05
Remove output from IPython notebook from the command line (dev version 1.0)
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write