Skip to content

Instantly share code, notes, and snippets.

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

Plamen Stoev pstoev

🏠
Working from home
View GitHub Profile
if( Object.prototype.toString.call( someVar ) === '[object Array]' ) {
alert( 'Array!' );
}
@echo off
rem Based on a gist for adding sublime text 2:
rem https://gist.github.com/mrchief/5628677
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with ST3" /t REG_SZ /v "" /d "Open with ST3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with ST3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
/*#region ScrollBar Styles */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background-color: rgba(113, 112, 107, 0.2);
}
::-webkit-scrollbar-thumb:vertical {
background-color: rgba(0, 0, 0, 0.2);
@pstoev
pstoev / jsbin_case
Created July 26, 2012 21:32
Truncated code
var total_items_array = [{
"created_at": "Thu Jul 26 14:01:50 +0000 2012",
"id": 228490315407958000,
"id_str": "228490315407958016",
"text": "Лятна жега налегна и лихвите http://t.co/ce3D3HRr",
"source": "<a href=\"http://www.dnevnik.bg\" rel=\"nofollow\">e:Twit</a>",
"truncated": false,
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,