Skip to content

Instantly share code, notes, and snippets.

View ruddra's full-sized avatar
🛰️
Drifting through the space ...

Arnab Kumar Shil ruddra

🛰️
Drifting through the space ...
View GitHub Profile
@ruddra
ruddra / router.js
Last active October 13, 2018 08:44
Router.js
import React from 'react'
import { Switch, Route } from 'react-router-dom'
import HelloWorld from './HelloWorld'
const Route = () => (
<main>
<Switch>
<Route exact path='/hello-world/:id' component={HelloWorld}/>
<Route path='/not-found' component={NotFound}/>
</Switch>
</main>
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Notes:
#
# - If installing full Xcode, it's better to install that first from the app
# store before running the bootstrap script. Otherwise, Homebrew can't access
@ruddra
ruddra / osx_bootstrap.sh
Last active July 3, 2018 13:00 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
import sys
from urllib.parse import urlparse
import urllib.request
import re
import json
import datetime
class ContentParser(object):
_url = None