Skip to content

Instantly share code, notes, and snippets.

View pankajparashar-zz's full-sized avatar

Pankaj Parashar pankajparashar-zz

View GitHub Profile
@pankajparashar-zz
pankajparashar-zz / twitter.json
Created August 22, 2016 12:36 — forked from hrp/twitter.json
Example JSON response from Twitter streaming API
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",
.random-color {
border-top-color: "LightCoral";
border-right-color: #a44b58;
border-bottom-color: rgb(108, 188, 134);
border-left-color: rgb(24%, 88%, 5%);
outline-top-color: hsl(88, 69%, 69%);
outline-right-color: rgba(220, 71, 132, 0.69);
outline-bottom-color: rgba(79%, 47%, 14%, 0.37);
outline-left-color: hsla(111, 31%, 38%, 0.86);
}
@pankajparashar-zz
pankajparashar-zz / spool.sql
Last active August 29, 2015 14:02
The perfect SQLPLUS script.
SET TRIMSPOOL ON
SET TRIMOUT ON
SET HEADSEP OFF
SET ECHO OFF
SET VERIFY OFF
SET TERMOUT ON
SET HEADING OFF
SET PAGESIZE 0
SET FEEDBACK OFF
SET NEWPAGE NONE
@pankajparashar-zz
pankajparashar-zz / todo.sh
Created February 8, 2014 07:43
The best todo list app for any developer
Make a list of your todos in /etc/motd:
* Dump prod.sql
- Don't forget to sanitize
* Finish Foo project
And now you'll see it every time you open a new prompt:
* Dump prod.sql
- Don't forget to sanitize
sudo chown -R `whoami` ~/.npm
sudo chown -R $USER /usr/local
@pankajparashar-zz
pankajparashar-zz / cheatsheet.md
Created December 18, 2013 14:52
Markdown Cheatsheet
body {
font-size: 1em;
line-height: 1.5em;
}
h1 {
font-size: 6.87500em;
line-height: 1.09091em;
margin-top: .2182em;
margin-bottom: .4364em;
@pankajparashar-zz
pankajparashar-zz / SassMeister-input.scss
Created December 8, 2013 07:16
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// SCSS version of Joshua's baseline generator - [http://joshnh.com/tools/em-baseline-generator.html]
// Article - http://joshnh.com/2011/08/03/how-to-set-up-a-baseline-grid/
$base-font-size: 16px !default;
$line-height: 24px !default;
$line-height: 1.65 !default;
$font-size: 112.5 !default; // percentage value (16 * 112.5% = 18px)
$font-base: 16 * ($font-size/100) !default; // converts our percentage to a pixel value
$measure: $font-base * $line-height;
// Modular Scale Values
// http://typecast.com/blog/contrast-through-scale
$tera: 117 !default; // 117 = 18 × 6.5
<ul id="members" data-role="listview" data-filter="true">
<!-- ... more list items ... -->
<li>
<a href="detail.html?id=10">
<h3>John Resig</h3>
<p><strong>jQuery Core Lead</strong></p>
<p>Boston, United States</p>
</a>
</li>
<!-- ... more list items ... -->