Skip to content

Instantly share code, notes, and snippets.

View nikhiljha's full-sized avatar
and like a thunderbolt

Nikhil Jha nikhiljha

and like a thunderbolt
View GitHub Profile
var MapCollection, Player, _;
_ = require('underscore');
MapCollection = require('../../models/mapCollection');
Player = require('../../models/server/player');
module.exports = function() {
var connectNeighbors;
@nikhiljha
nikhiljha / wikipedia.py
Created March 25, 2016 02:55
Look up things on Wikipedia in the command line!
# Usage: python wikipedia.py
# Look up things on Wikipedia in the command line!
import requests;
import json;
learn = input('Learn About ')
for x in learn:
if x == ' ':
x = '%20'
My Ether Address
0x004b5b92780c87bfb496af9e3ee945acbd0f7886
@nikhiljha
nikhiljha / NIS.java
Created July 27, 2016 23:56
NIS API for Android - Retrofit2
// NOT DONE YET!
// THIS IS FIRST REVISION, PLEASE CONTACT ME IF YOU DID WORK ON THIS SO I CAN MERGE CHANGES!
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
/**
* Created by Nikhil Jha on 7/27/2016.
@nikhiljha
nikhiljha / Transactions.js
Last active July 28, 2016 16:31
NEM Signing/API Examples
'use strict';
define([
'definitions',
'jquery',
'utils/CryptoHelpers',
'utils/KeyPair',
'utils/TransactionType',
'utils/convert',
'services/SessionData'
@nikhiljha
nikhiljha / keybase.md
Created March 3, 2018 21:36
My keybase proof.

Keybase proof

I hereby claim:

  • I am nikhiljha on github.
  • I am njha (https://keybase.io/njha) on keybase.
  • I have a public key ASDgeQRDhU2laLsahH4HmrkgATkmbhJzoyNQUQEqEuA2fgo

To claim this, I am signing this object:

import 'dart:convert';
void main() {
List decoded = json.decode("""[
{
"date": "2018-08-23 08:00:00",
"end": "2018-08-23 08:25:00",
"info": "Advisement",
"isclass": "1",
@nikhiljha
nikhiljha / spyfallcheat.user.js
Created November 6, 2016 20:17
Cheat at crabhat's spyfall if you want.
// ==UserScript==
// @name SpyFall Cheater
// @namespace http://nikhiljha.com/
// @version 0.2
// @description Win every game of spyfall, every time.
// @author Nikhil Jha
// @match http://spyfall.crabhat.com/*/
// @grant none
// ==/UserScript==
@nikhiljha
nikhiljha / ansible_playbook.yml
Created May 2, 2019 00:15
GlusterFS Ansible Setup
---
- hosts: gluster
become: true
vars:
gluster_mount_dir: /mnt/g1
gluster_brick_dir: /bricks/brick1
gluster_brick_name: g1
tasks:
- name: Install parted
From c8075c4396c04b3a6778b4ed6d5c21b20999ef77 Mon Sep 17 00:00:00 2001
From: Nikhil Jha <hi@nikhiljha.com>
Date: Fri, 28 Feb 2020 19:49:49 -0800
Subject: [PATCH] upgrade dependencies
---
Cargo.lock | 340 ++++++++++++++++++++++++++++++++-----------------
Cargo.toml | 4 +-
src/popover.rs | 6 +-
src/style.rs | 4 +-