Skip to content

Instantly share code, notes, and snippets.

View dmoliveira's full-sized avatar
:electron:

Diego Marinho dmoliveira

:electron:
View GitHub Profile
@pkerpedjiev
pkerpedjiev / .d3v4-selectable-force-directed-graph
Last active March 2, 2022 11:10
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
.
from gensim import models
sentence = models.doc2vec.LabeledSentence(
words=[u'so`bme', u'words', u'here'], tags=["SENT_0"])
sentence1 = models.doc2vec.LabeledSentence(
words=[u'here', u'we', u'go'], tags=["SENT_1"])
sentences = [sentence, sentence1]
class LabeledLineSentence(object):
@Andy-P
Andy-P / StreamAnalytics.jl
Last active August 29, 2023 00:57
High Performance Streaming Analytics in Julia
# This code is part of a presentation on streaming analytics in Julia
# It was inspired by a number of individuals and makes use of some of their ideas
# 1. FastML.com got me thinking about inline processing after
# reading his great Vowpal Wabbit posts
# 2. John Lanford and his fantastic Vowpal Wabbit library.
# Check out his NYU video course to learn more (see below)
# 3. John Myles White's presentation on online SDG and his StreamStats.jl library
# Thank you all!
import seaborn as sns
from scipy.optimize import curve_fit
# Function for linear fit
def func(x, a, b):
return a + b * x
# Seaborn conveniently provides the data for
# Anscombe's quartet.
df = sns.load_dataset("anscombe")
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 13, 2024 22:10
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname