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'
@nikhiljha
nikhiljha / aeriesendpoints.json
Created March 28, 2016 01:55
List of all known Aeries SIS Endpoints
{
"result": [{
"__type": "Object",
"aeriesURLString": "https://www.accessmystudent.com/ADLA",
"className": "District",
"createdAt": "2015-10-22T20:51:16.057Z",
"disabled": false,
"disabledReason": null,
"name": "ADLA",
"objectId": "H9FBKMWBIU",
@nikhiljha
nikhiljha / MaxfieldExporter.user.js
Last active August 12, 2023 15:46
IITC Plugin to Export a list of all currently visible portals into Ingress Maxfield format.
// ==UserScript==
// @id iitc-plugin-ingressmaxfield-exporter@nikhiljha
// @name IITC plugin: Ingress Maxfield Exporter
// @category Keys
// @author Nikhil Jha
// @version 0.0.9
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @description Exports portals currently in view as a list for use with Ingress Maxfield.
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
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 / AddCookiesInterceptor.java
Created July 29, 2016 04:35
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
// Original written by tsuharesu
// Adapted to create a "drop it in and watch it work" approach by Nikhil Jha.
// Just add your package statement and drop it in the folder with all your other classes.
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
import java.io.IOException;
import java.util.HashSet;
@nikhiljha
nikhiljha / aops.user.js
Created October 4, 2016 02:16
AoPS Downloader
// ==UserScript==
// @name AoPS Downloader
// @namespace http://www.artofproblemsolving.com/
// @version 0.0.1
// @description Download the AoPS WOOT (or other classes) transcripts!
// @author Nikhil Jha
// @match http://www.artofproblemsolving.com/class/*/transcript/*
// @grant none
// ==/UserScript==
@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==