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 / dabblet.css
Created October 17, 2012 06:30
Just to make it look clearer
#attendees {
color: #c30;
}
/* CSS */
#attendees {
color: #c30;
}
@apnerve
apnerve / gist
Created November 25, 2012 14:20
Testing gist.io
I love the way http://gist.io turns my simple gist into a presentable page
@apnerve
apnerve / dabblet.css
Created December 13, 2012 02:50 — forked from anonymous/dabblet.css
CSS
/* CSS */
#attendees {
color: #c30;
}
@apnerve
apnerve / dabblet.css
Created December 13, 2012 11:40 — forked from anonymous/dabblet.css
Untitled
.first{
border:1px solid #ccc;
width:100%;
padding:20px;
background:green;
-webkit-box-sizing:border-box;
}
.parent{
background:#ccc;
padding:10px;
@apnerve
apnerve / Dhingana-bookmarklet.js
Created November 20, 2013 14:48
Dhingana download bookmarklet - Adds a download button beside every song in the list.
javascript:!function(){Dhingana=Dhingana||{},Dhingana.findSongList=function(){return $(".songs").find(".song")},Dhingana.fetchSongURL=function(a,b){$.get("http://www.dhingana.com/xhr/getSongDetails?id="+a+"&count=1",function(c){var d=$.parseJSON(c),e=d.songs[a].Name,f=d.songs[a].Streams.Mp3;Dhingana.addDownloadButton(b,f,e)})},Dhingana.addDownloadButtons=function(){this.findSongList().each(function(a,b){var c=$(b).data("id");Dhingana.fetchSongURL(c,b)})},Dhingana.addDownloadButton=function(a,b,c){$(a).append('<a class="btn btn-blue" style="position:absolute;left:540px;top:9px;" href="'+b+'" download="'+c+'.mp3">Download</a>')},Dhingana.addDownloadButtons()}();
@apnerve
apnerve / gaana.js
Created July 13, 2014 21:06
download songs from gaana.com
var tracks = [];$('.album_songlist .playcol').map(function(index, track) {tracks[index] = $(track).data('value')});var getURL = function(track_id) {$.post('http://gaana.com//streamprovider/get_stream_data_v1.php', {track_id:track_id}, function(data){console.log($.parseJSON(data).stream_path)})};tracks.map(getURL);
@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”
@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 / 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()}();