Skip to content

Instantly share code, notes, and snippets.

View suchoudh's full-sized avatar
💭
Applying Technology to real world problems.

Sunil Choudhary suchoudh

💭
Applying Technology to real world problems.
View GitHub Profile
@suchoudh
suchoudh / main.rs
Created April 4, 2024 07:22 — forked from antuneza/main.rs
One Billion Row Challenge, Part I: The Basics
use std::collections::{BTreeMap};
use std::fs::File;
use std::io::{self, BufRead, Read, Seek, SeekFrom};
use std::ops::AddAssign;
use fnv::FnvHashMap;
#[derive(Debug, Clone, Copy)]
struct TemperatureStats {
min: f32,
max: f32,
@suchoudh
suchoudh / Setup.md
Created February 7, 2022 06:23 — forked from looselytyped/Setup.md
Containers in 3 weeks - Set up

Containers in 3 weeks — Week 1/2 setup

Installation

You will need Docker installed! Here is a link to get you started. Proceed after you are done installing.

Warm up your engines!

@suchoudh
suchoudh / ebert_amazon.py
Created June 10, 2020 04:39 — forked from linstantnoodles/ebert_amazon.py
Get amazon prime information on Roger Ebert Great Movies
import requests
import csv
import os
import json
import re
from bs4 import BeautifulSoup
import mechanize
from random import choice
user_agents = ['Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7','Konqueror/3.0-rc4; (Konqueror/3.0-rc4; i686 Linux;;datecode)','Opera/9.52 (X11; Linux i686; U; en)']
random_user_agent = choice(user_agents)
@suchoudh
suchoudh / mv.sh
Created April 14, 2020 03:30 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
function mv() {
if [ "$#" -ne 1 ]; then
command mv "$@"
return