Skip to content

Instantly share code, notes, and snippets.

View rzhade3's full-sized avatar
💭
Watching Shogun

Rahul Zhade rzhade3

💭
Watching Shogun
View GitHub Profile
@rzhade3
rzhade3 / go.mod
Last active April 17, 2023 05:47
CSP Parsing with Golang
module gist.github.com/rzhade3/88a5ab6d8c2fc6016cad0a2b507a88a4
go 1.20
@rzhade3
rzhade3 / _stores.json
Created January 24, 2022 08:52
Location of all stores that sell Orca passes. Scraped from https://www.soundtransit.org/sites/default/files/documents/orca_retail_locations.pdf and put in a more viewable format (GeoJSON)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rzhade3
rzhade3 / glob_gen.rb
Created November 10, 2021 02:08
Script to generate a Ruby glob that'll accept all files except those in a certain directory.
puts "Please input a folder name: "
folder = gets.chomp
glob = "{"
prefix = ""
folder.each_char do |character|
# We don't accept any strings that start with the prefix
glob << "#{prefix}[^#{character}]*,"
# Except the prefix itself
glob << "#{prefix},"
prefix << character
@rzhade3
rzhade3 / Trie.js
Last active August 15, 2020 07:44 — forked from tpae/Trie.js
Trie.js - super simple JavaScript implementation
// Trie.js - super simple JS implementation
// https://en.wikipedia.org/wiki/Trie
// -----------------------------------------
// we start with the TrieNode
class TrieNode {
constructor(key) {
// the "key" value will be the character in sequence
this.key = key;

Keybase proof

I hereby claim:

  • I am rzhade3 on github.
  • I am rzhade (https://keybase.io/rzhade) on keybase.
  • I have a public key ASCo4X7WKJFGLos-wt-Fo48i9k23SHsZHPyibdqrjlBdpgo

To claim this, I am signing this object:

@rzhade3
rzhade3 / Python2.py
Last active March 22, 2018 19:27
Simple Python script to show the differences between Python2 and Python3. Try converting this script to Python3 while keeping all of the functionality exactly the same!
def coolBeans():
n = int(raw_input())
for i in range(0, n):
print "Hello World"
if __name__ == '__main__':
coolBeans()
x = 5
try:
x += input()