Skip to content

Instantly share code, notes, and snippets.

View ridhoq's full-sized avatar
🤠

Ridwan Hoq ridhoq

🤠
View GitHub Profile
@ridhoq
ridhoq / config.js
Created October 4, 2018 21:03
webpack/storybook config
import { configure } from '@storybook/react'
function loadStories() {
require('../stories/index.js')
// You can require as many stories as you need.
}
configure(loadStories, module)
@ridhoq
ridhoq / pacaur_install.sh
Last active December 4, 2016 06:26 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
@ridhoq
ridhoq / keybase.md
Created March 2, 2015 20:18
keybase.md

Keybase proof

I hereby claim:

  • I am ridhoq on github.
  • I am ridwan (https://keybase.io/ridwan) on keybase.
  • I have a public key whose fingerprint is 2DE7 C479 9B8F 75AC 6071 92B1 042C 31EC 7C65 402F

To claim this, I am signing this object:

@ridhoq
ridhoq / -
Created October 16, 2014 20:54
app/
├── 404.html
├── bower_components
│   ├── angular
│   │   ├── README.md
│   │   ├── angular-csp.css
│   │   ├── angular.js
│   │   ├── angular.min.js
│   │   ├── angular.min.js.gzip
│   │   ├── angular.min.js.map
@ridhoq
ridhoq / smh.java
Created September 27, 2014 22:32
smh
package net.codejava.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
#!/usr/bin/env node
function BK() {
var self = this;
this.bkList = [];
this.seenConditionBefore = function(n) {
if (self.bkList[self.calculateConditionIndex(n)])
return true;
else