Skip to content

Instantly share code, notes, and snippets.

@nalinbhardwaj
nalinbhardwaj / del.sh
Last active April 9, 2018 10:44
CHT using segtree
#!/bin/bash
for i in `seq 1 1000000`; do
echo $i
rm -rf inp$i.in
done
@nalinbhardwaj
nalinbhardwaj / marathon.cpp
Last active January 3, 2018 08:10
IOITC 2014 Marathon
#include <iostream>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
using namespace std;
const int maxn = int(2e5)+5, inf = int(1e9)+5, MOD = int(1e9)+7;
int nex[maxn], dp[maxn], BIT[maxn];
@nalinbhardwaj
nalinbhardwaj / top-500.txt
Created May 31, 2017 12:43
Special addresses from moz.com/top500 and wikipedia for duckduckgo/zeroclickinfo-spice#3276
123-reg: .co.uk
163: .com
1and1: .fr
1und1: .de
360: .cn
4: .cn
51: .la
a8: .net
abc: .net.au
about: .me

Keybase proof

I hereby claim:

  • I am nalinbhardwaj on github.
  • I am nibnalin (https://keybase.io/nibnalin) on keybase.
  • I have a public key ASBZs3BWPfhMDXm7YcWzMdPpotfiAguqPGq6EVfu-ixDZQo

To claim this, I am signing this object:

#!/bin/bash
# Modified following this issue: https://github.com/wbond/sublime_terminal/issues/89
CD_CMD="cd "\\\"$(pwd)\\\"" && clear"
if echo "$SHELL" | grep -E "/fish$" &> /dev/null; then
CD_CMD="cd "\\\"$(pwd)\\\""; and clear"
fi
VERSION=$(sw_vers -productVersion)
OPEN_IN_TAB=0