Skip to content

Instantly share code, notes, and snippets.

View nabn's full-sized avatar
🐚

Navin Khadka nabn

🐚
  • Citro
  • Sydney
  • 19:44 (UTC +10:00)
View GitHub Profile
// ==UserScript==
// @name Basic Layout for 68k News
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author nabn_
// @match http://68k.news/*
// @icon https://www.google.com/s2/favicons?domain=68k.news
// @grant GM_addStyle
// ==/UserScript==
@nabn
nabn / hn.js
Created August 14, 2021 00:03
Userscript to improve hacker news typography
// ==UserScript==
// @name Legible Hacker News
// @namespace ycombinator.com
// @description Improve Typography
// @include https://news.ycombinator.com/*
// @version 0.1
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
@nabn
nabn / hexToRgbToHex.js
Last active March 21, 2019 01:36
Convert between hex and rgb colour values using Ramda
import { __, compose, concat, join,
map, match, propEq, replace,
splitEvery, unnest, when } from "ramda";
/*
* USAGE
* let hex = '#fff54a'
* let rgb = 'rgb(255,245,74)'
* rgbToHex(rgb) // #fff54a
* hexToRgb(hex) // rgb(255,245,74)
@nabn
nabn / ReactGame.js
Created January 10, 2018 00:04 — forked from busypeoples/ReactGame.js
ReactGame Example: React + Flow
// @flow
import React from 'react';
import { render } from 'react-dom';
type Field = 0 | 1;
type Position = [Field, Field, Field, Field];
type Unit = [Position, Position, Position, Position];

Keybase proof

I hereby claim:

  • I am nabn on github.
  • I am nabn (https://keybase.io/nabn) on keybase.
  • I have a public key ASC2qsIL1l2wJe8nUBKkXRjZVHZHnDyf2GLkiBOxC2cpPQo

To claim this, I am signing this object:

@nabn
nabn / root.sh
Created October 27, 2016 16:50 — forked from Arinerron/root.sh
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@nabn
nabn / designer.html
Created November 17, 2014 04:05
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@nabn
nabn / designer.html
Created November 14, 2014 10:38
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
#! /usr/bin/ruby
# solution for yipl internship application
# at https://docs.google.com/forms/d/1OrVtJlgYxtH0A06o2QIigjowXXx7VIBuw6GoU8oxdFc/viewform
# https://yipl.hackpad.com/Playing-with-the-name-wV7qfcTYksK
#
# author: @nabn_
# --------------------------------------------------------------------
puts