Skip to content

Instantly share code, notes, and snippets.

View sidcool1234's full-sized avatar
💭
Coding Furiously

Siddharth Kulkarni sidcool1234

💭
Coding Furiously
View GitHub Profile
@addyosmani
addyosmani / headless.md
Last active May 17, 2024 03:38
So, you want to run Chrome headless.

Update May 2017

Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.

Update

If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md

Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.

@debasishg
debasishg / gist:8172796
Last active May 10, 2024 13:37
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
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 12, 2024 03:08
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@staltz
staltz / introrx.md
Last active June 18, 2024 06:15
The introduction to Reactive Programming you've been missing
@tyrcho
tyrcho / MergeMaps.scala
Created January 29, 2015 08:30
Recursive (deep) merge of 2 maps
object Maps {
implicit class MergableMap[K](map: Map[K, _]) {
/**
* Override values from this with values from that.
*/
def deepMerge(that: Map[K, _]): Map[K, _] =
(for (k <- map.keys ++ that.keys) yield {
val newValue =
(map.get(k), that.get(k)) match {

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@fasterthanlime
fasterthanlime / state-of-emergency-in-france.md
Last active March 26, 2021 21:29
What the state of emergency means in France, where it's been declared following the Paris attacks
@sagar-viradiya
sagar-viradiya / Trie.kt
Created December 30, 2018 12:08
Trie data structure in kotlin
class Trie {
data class Node(var word: String? = null, val childNodes: MutableMap<Char, Node> = mutableMapOf())
private val root = Node()
fun insert(word: String) {
var currentNode = root
for (char in word) {
if (currentNode.childNodes[char] == null) {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import java.io.*;
import java.util.*;
public class BRC {
public static void main(String[] args) throws FileNotFoundException {
long millis = System.currentTimeMillis();
System.out.println(calculateMinMeanMaxPerStation(readCSV()));
System.out.println("Time taken = " + (System.currentTimeMillis() - millis));
}