Skip to content

Instantly share code, notes, and snippets.

View apnerve's full-sized avatar
🏠
Working from home

Praveen apnerve

🏠
Working from home
View GitHub Profile
@apnerve
apnerve / whiteframr.url
Created November 1, 2018 10:01
A simple bookmarklet to convert any website to a whiteframe
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'})})()
@apnerve
apnerve / carnatic_music_theory.md
Created August 9, 2017 09:10
Carnatic Music Theory

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 19:11
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)
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>')})()
@apnerve
apnerve / The Technical Interview Cheat Sheet.md
Created March 22, 2017 20:30 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@apnerve
apnerve / options.md
Last active September 14, 2016 13:51
Basic UX guidelines on when to choose radio buttons or select or an autocomplete component

When the no. of items are less than 5, it is advisable to use radio When the no. of items are greater than 5, select is better When the no. of items is more than 15, select makes no sence and having a simple text with autocomplete or something similar to chosen is more suitable.

@apnerve
apnerve / credit-cart.js
Created September 12, 2015 17:03
Where am I spending my money?
var fs = require('fs');
var sc = require('sc-card-transaction-parser');
var _ = require('lodash');
var file = fs.readFileSync('transactions.txt');
var transactions = sc.parseLog(file);
var expenses = function(data, type) {
var grouped = _.groupBy(data, type);
return _.keys(grouped).map(function(a) {
return {
@apnerve
apnerve / insta-download.js
Last active May 26, 2017 19:22
Bookmarklet script to download images from Instagram
javascript:(function() {Array.prototype.map.call(document.querySelectorAll('._icyx7'),function(a){return a.attributes[3].nodeValue.replace('s640x640/sh0.08/','')}).map(function(i){var l = document.createElement('a');l.href=i;l.download=i;document.body.appendChild(l);l.click()});})()
@apnerve
apnerve / bookmarklet-UL.js
Created April 21, 2015 09:57
Remove subscription popup in Urban Ladder
javascript:!function(){$('.reveal-modal, .reveal-modal-bg,#subscription_popup').remove()}();
@apnerve
apnerve / Important JS Concepts
Created March 25, 2015 07:56
A collection of important JS concepts to help folks brush up their JS knowledge or prepare for interviews
* Scope
* Closure
* Hoisting
* IIFEs and their uses
* Event loop
@apnerve
apnerve / frontend-architect-responsibilites.md
Last active August 29, 2015 14:16
Frontend-architect responsibilities
  • understanding the cascade, inheritance, semantics, and being able to choose the best style of CSS organization for the project (not necessarily their favorite)
  • organizing and building UI modules, working closely with UX or more visually-focused designers/CSS developers
  • consistency of modules, look and feel, UI interactions
  • creating file and folder structure and naming conventions, for HTML and CSS, most likely JS as well, and helping define back-end naming conventions for consistency
  • understanding the technological and business implications of a task, technical debt, and “perfect is the enemy of done”