Skip to content

Instantly share code, notes, and snippets.

View likecs's full-sized avatar
👨‍💻
Chilling!!!

Bhuvnesh Jain likecs

👨‍💻
Chilling!!!
  • Faridabad, Haryana, India
View GitHub Profile
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 9, 2024 07:54
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

/******************************************
* AUTHOR: BHUVNESH JAIN *
* INSTITUITION: BITS PILANI, PILANI *
******************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
@likecs
likecs / smallm.cpp
Last active November 2, 2016 11:30
Solution to "Smallest Number" on Spoj (Hint : http://codeforces.com/blog/entry/48135?#comment-323475)
/******************************************
* AUTHOR: BHUVNESH JAIN *
* INSTITUITION: BITS PILANI, PILANI *
******************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int mul(int a, int b, int c) {
@likecs
likecs / gcd_sum.py
Last active January 31, 2017 04:47
Solution to "Yet another GCDSUM" (13083) on UVA
import random
from queue import *
def gcd(a,b):
while b:
a,b=b,a%b
return a
def expo(a,b):
x,y=1,a
@likecs
likecs / huge_sum.cpp
Created September 28, 2016 15:52
Solution to "A huge Sum" on Hackerearth
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAX = 10000001;
const int MOD = 1e9 + 7;
#define inchar getchar_unlocked
#define outchar(x) putchar_unlocked(x)
@likecs
likecs / gcdsum.cpp
Created September 28, 2016 09:55
Solution to Problem GCD Sum of hackerearth
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAX = 5e5 + 5;
const int MAX2 = 1e6 + 6;
const int MOD = 1e9 + 7;
int phi[MAX];
@velicast
velicast / stdc++.h
Created July 17, 2013 17:56
Linux GCC 4.8.0 /bits/stdc++.h header definition.
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@dgabriele
dgabriele / bp.cpp
Created August 11, 2012 18:59
lock-free Bloom filter with quiescent consistency
#include <iostream>
#include <atomic>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <stdint.h>
#include <limits.h>
class bloom_filter