Skip to content

Instantly share code, notes, and snippets.

View bigomega's full-sized avatar

Bharath Raja bigomega

View GitHub Profile
@bigomega
bigomega / chain.js
Created April 16, 2016 11:42
Coding problem
dict = ['cat','cot','cog','bog','bat','bap','map', 'mat'];
start = 'cat';
end = 'map';
isLinked = function(w1, w2){
var flag = false;
for (var i = 0; i < w1.length; i++) {
if(w1[i] != w2[i]){
if(flag)
return false;
flag = true;
@bigomega
bigomega / mini_scraper.py
Last active May 18, 2016 00:49
Dota International 2016 PrizePool scraper
import urllib2, re, time, json, os
import gspread
from oauth2client.client import SignedJwtAssertionCredentials
html = urllib2.urlopen('http://www.dota2.com/international/battlepass').read()
prizepool = re.search('id=[\'"]prizepool[^>]*>[\n\r\t]*([^<\t\r\n]*)', html, re.IGNORECASE).group(1)
print(time.strftime('%H:%M - %m/%d/%Y'), prizepool)
print("Update it in Google sheets")
json_key = json.load(open(os.path.join(os.path.dirname(__file__), 'Personal hacks-0e20089bab35.json')))
@bigomega
bigomega / draw_hexagon.js
Created June 25, 2016 04:55
render a hexagon of elements in DOM
var hex_arrangement = [
'3333',
'32223',
'321123',
'3210123'
]
var hexval = {
0: [['profile', 'data-nav="home']],
1: [
['behance', 'https://www.behance.net/bigOmega'],

Keybase proof

I hereby claim:

  • I am bigomega on github.
  • I am bigomega (https://keybase.io/bigomega) on keybase.
  • I have a public key whose fingerprint is 35B8 190F 23C3 8576 1E8C 8C8E 8EB4 BBCA 4DF5 E11C

To claim this, I am signing this object:

@bigomega
bigomega / himalayan-biking-trekking-camping-checklist.md
Last active August 11, 2021 19:21
Himalayan Biking + Trekking + Camping Checklist

Himalayan Biking + Trekking + Camping Checklist +

Utility

  • Tent
  • Sleeping bag
  • Blanket
  • Water bottles
  • Towel
  • Swiss army knife
  • An actual knife - emergencies
@bigomega
bigomega / github.js
Created November 3, 2021 11:17
Data collection for Appbase search
const got = require('got');
const AUTH_KEY = ''
;(async () => {
try {
const { data, headers } = await got.post({
url: 'https://api.github.com/graphql',
headers: { Authorization: `bearer ${AUTH_KEY}` },
json: {