Skip to content

Instantly share code, notes, and snippets.

View rahulsivalenka's full-sized avatar

Phani Rahul Sivalenka rahulsivalenka

View GitHub Profile
@vitaliy-evsyukov
vitaliy-evsyukov / dnd_grid_to_tree.html
Created March 15, 2012 12:20
ExtJS 4 Drag&Drop from GridPanel to TreePanel and from TreePanel to GridPanel
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Grid to Tree Drag and Drop Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../shared/example.css" />
<script type="text/javascript" src="../../bootstrap.js"></script>
<script type="text/javascript" src="../shared/examples.js"></script>
@RonnyO
RonnyO / jquery.qDefer.min.js
Created April 15, 2012 11:24
Simply mimic the 'defer' attribute for inline scripts across all browsers (jQuery helper)
// http://bit.ly/qDefer
$(function(){$('script[type="text/javascript/defer"]').each(function(){$(this).clone().attr('type','').insertAfter(this)})});
@btroncone
btroncone / rxjs_operators_by_example.md
Last active November 7, 2024 09:19
RxJS 5 Operators By Example
@shikhirsingh
shikhirsingh / Application.scss
Created April 6, 2016 21:53
Yummy Chocolate Treat Theme for Ext JS 6 apps
// Defining Colors
$white_chocolate: #A99386;
$milk_chocolate : #523027;
$caramel_chocolate: #9C6D51;
$dark_chocolate : #5D4446;
$silver_spoons: #a79c8e;
$strawberry_chocolate: #f1bbba;
$strawberry_mousse: #EB9F9F;
// response to https://gist.github.com/yuval-a/d5794cc1439c08af085f
// via linkedin post https://www.linkedin.com/groups/121615/121615-6135714090246553602
// specifically tip #3,
// property === undefined is faster than hasOwnProperty(property)
// I'm not sure what the intent is, because the two checks compare different things...
var a = { name: 'aaaaaa' };
a.name === undefined // false (expected)
a.hasOwnProperty('name') // true (expected)
@milmazz
milmazz / imposter-handbook-links.md
Last active August 9, 2024 09:50
Useful links found in The Imposter's Handbook by Rob Conery
/*
It's now a package. You can find it here:
https://github.com/joshnuss/svelte-local-storage-store
*/
// Svelte store backed by window.localStorage
// Persists store's data locally
@kentcdodds
kentcdodds / README.md
Last active March 30, 2024 11:39
user-package-stats

user-package-stats

I was poking around trying to figure out all the packages I have access to publish and got curious. So I write this little script to determine the download stats for all the packages I have publish access to.

Feel free to try it yourself. Just change the username passed to getUserDownloadStats.

By default, the stats are sorted by their average daily downloads (descending). That should give you an idea of the most "popular" package of a given user relative to how long that package has been around.

You can use it with npx like so: