Skip to content

Instantly share code, notes, and snippets.

View styx97's full-sized avatar
💭
Aspiring Computational Linguist

Rupak Sarkar styx97

💭
Aspiring Computational Linguist
View GitHub Profile
@styx97
styx97 / 3G-fraction-1s-example.sql
Created January 4, 2018 08:47 — forked from RatulSaha/3G-fraction-1s-example.sql
Chrome User Experience Report Analyzed with Google BigQuery
SELECT
SUM(fcp.density)
FROM
`chrome-ux-report.chrome_ux_report.201710`,
UNNEST(first_contentful_paint.histogram.bin) AS fcp
WHERE
origin = "https://www.google.co.in"
AND effective_connection_type.name = "3G"
AND fcp.END <= 1000
@styx97
styx97 / PreorderInorderPostorder_CPP.cpp
Created November 26, 2017 18:28 — forked from mycodeschool/PreorderInorderPostorder_CPP.cpp
Binary tree traversal: Preorder, Inorder, Postorder
/* Binary Tree Traversal - Preorder, Inorder, Postorder */
#include<iostream>
using namespace std;
struct Node {
char data;
struct Node *left;
struct Node *right;
};
@styx97
styx97 / vector.py
Created November 9, 2017 12:59 — forked from mcleonard/vector.py
A vector class in pure python.
"""
The MIT License (MIT)
Copyright (c) 2015 Mat Leonard
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@styx97
styx97 / gist:542dc6eabcdbab2901e91af118e80258
Created January 23, 2017 19:00
Solving problems in python
a = [1,4,5,10]
cache = {}
for i in a:
cache[i] = 1
counter = 0
def coin(x):
if not x in cache:
tmp = []