Skip to content

Instantly share code, notes, and snippets.

View scientist1642's full-sized avatar

Zura Isakadze scientist1642

  • Tbilisi, Georgia
View GitHub Profile
@ergenekonyigit
ergenekonyigit / 1-useState.js
Created October 26, 2018 08:31 — forked from schneidmaster/1-useState.js
React Conf 2018 -- new functional component APIs https://reactjs.org/docs/hooks-intro.html
// Basic example of useState.
import React, { useState } from 'react';
export default function Greeting(props) {
const [name, setName] = useState('Mary');
function handleNameChange(e) {
setName(e.target.value);
}
@Moutard3
Moutard3 / mp3-upload-direct-link.md
Last active April 11, 2025 21:12
Tutorials / Walkthrough for uploading & getting direct link of sound file (mp3, ogg, ...)
@scientist1642
scientist1642 / template.ipynb
Created November 28, 2016 18:10
Ipython template
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yang-wei
yang-wei / destructuring.md
Last active December 2, 2024 06:40
Elm Destructuring (or Pattern Matching) cheatsheet

Should be work with 0.18

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !

Tuple

myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
@cdesch
cdesch / Procfile
Created November 4, 2014 15:27
Dukko unicorn.rb
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
@stared
stared / software_for_scientists.md
Last active January 24, 2025 23:59
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

@debasishg
debasishg / gist:8172796
Last active April 16, 2025 13:43
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@manzke
manzke / Templating.java
Last active December 24, 2015 20:19
A class to format message which contain named parameters like "send an email from {sender} to {recipient}".
package de.devsurf.echo.sync.utils;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import com.google.common.base.Preconditions;
/**
@stober
stober / rargmax.py
Created February 29, 2012 18:46
Random Argmax in Python
#!/usr/bin/env python
"""
Author: Jeremy M. Stober
Program: RARGMAX.PY
Date: Wednesday, February 29 2012
Description: Simple rargmax function.
"""
import numpy as np
@gregorynicholas
gregorynicholas / .inputrc
Last active April 19, 2024 04:10
OSX .inputrc to make terminal way better. and by better i mean i'm naked
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word