Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Praveen apnerve

🏠
Working from home
Block or report user

Report or block apnerve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View machine.js
const underwritingStates = {
id: "underwriting",
initial: "PENDING",
states:{
PENDING: {
on: {
approve: "APPROVED",
reject: "REJECTED",
ask_for_cosigner: "COSIGNER_NEEDED"
}
View machine.js
const loanMachine = Machine({
id: 'loan',
initial: 'PAYMENT_DETAILS',
context: {
cosigners: 0,
awesome: false,
},
states: {
PAYMENT_DETAILS: {
on: {
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@apnerve
apnerve / wStore.js
Last active Jul 11, 2019
Whatsapp Store
View wStore.js
const getStore = modules => {
for (let id in modules) {
if (modules[id].exports && modules[id].exports.default) {
if (modules[id].exports.default.Chat)
// The Store Object
window.Store = webpackJsonp([], null, [id]).default
if (
modules[id].exports.default.prototype &&
modules[id].exports.default.prototype.processFiles
) {
View gist:720bf7b34121318f343e667dc00557d5
docker run --rm -v $(pwd):/app composer:latest install --no-dev
View gist:c8db4e15cf32af07396b87ddc46e1aee
javascript:window.results = ([].slice.apply(document.querySelectorAll('#div1 tr'))).slice(3,-1).map(row => {const cells = row.querySelectorAll('td');return {c:cells[0].innerText,p: cells[1].innerText,v:Number(cells[2].innerText)}})
View whatsapp.js
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@apnerve
apnerve / whiteframr.url
Created Nov 1, 2018
A simple bookmarklet to convert any website to a whiteframe
View whiteframr.url
javascript:(function() {[].slice.apply(document.all).forEach(e => { e.style.color = 'black'; e.style.background = 'none'; e.style.borderColor = 'black';e.style.boxShadow = 'none'} );[].slice.apply(document.querySelectorAll('img')).forEach(i => {i.style.backgroundColor='lightgray';i.width = i.width; i.height = i.height;i.alt='';i.style.filter='none';i.style.border='none';i.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'})})()
View carnatic_music_theory.md

Music theory

Notes Hindustani Carnatic Western
I IIb IIIb IV# V VIb VII Todi Shubhapantuvarali Chromatic lydian inverse
I II IV V VII / VIIb VI V IV III II I Desh NA NA, Mixolydian while coming down
@apnerve
apnerve / twitter verified account
Created May 24, 2017
Not a verified account? No problem, this bookmarklet will add the verified icon (which is completely pointless but fun as it reminds me of Orkut days)
View twitter verified account
javascript:(function(){$('.ProfileHeaderCard-name').append('<span class="ProfileHeaderCard-badges"><a href="/help/verified" class="js-tooltip" target="_blank" title="Verified account" data-placement="right" rel="noopener"><span class="Icon Icon--verified"><span class="u-hiddenVisually">Verified account</span></span></a></span>');$('.ProfileHeaderCard-badges').css({left: '-6px'});$('.my-tweet .FullNameGroup .UserBadges').append('<span class="Icon Icon--verified"><span class="u-hiddenVisually">Verified account</span></span>')})()
You can’t perform that action at this time.