Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
🪀
Focusing

Vinit Kumar vinitkumar

🪀
Focusing
View GitHub Profile
function onFacebookLogin() {
"use strict";
localStorage.accessToken || chrome.tabs.getAllInWindow(null, function (e) {
for (var i = 0; i < e.length; i += 1) if (e[i].url.indexOf(successURL) === 0) {
var t = e[i].url.split("#")[1];
access = t.split("&")[0], console.log(access), localStorage.setItem("accessToken", access), chrome.tabs.onUpdated.removeListener(onFacebookLogin);
return;
}
});
}
// Your JavaScript

#Chrome remote mode command for Linux

/opt/google/chrome/chrome --remote-debugging-port=9222

What I Need

Here are some very urgent things i need for good work

whiteboard

markers

White Copy

Montly expense

Cook + Food : 2000

Milk Daily: 450

Rent: 5200

Total: 2000+ 450 + 5200 = 7650

Montly expense

Cook + Food : 2000

Milk Daily: 450

Rent: 5200

Total: 2000+ 450 + 5200 = 7650

##My Schedule:

6.00 - 7.30 : Jogging 7.30 - 8.00 : Freshen up + Bath 8.00 - 10.00 : Work 10.00 - 10.30 : Food 10.30 - 11.00 : TV / Work / Play 11.00 - 1.00 : Work 1.00 - 2.30 : Lunch + Rest

@vinitkumar
vinitkumar / x.md
Created January 4, 2013 14:48 — forked from Raynos/x.md

DOM Libraries, the easy way

  • [by. Select elements][1]
  • [fragment. Turn HTML into DOMFragments][2]
  • [class-list. Cross browser HTML5 classList implementation][3]
  • [dom-walk. Traverse the DOM in tree order][4]
  • [xhr. Minimal cross browser, cross domain XHR][5]
  • [insert. Cross browser DOM4 insertion methods][6]
  • [to-array. Convert nodelists into arrays][7]
  • [hidden. Cross browser HTML5 hidden property][8]
.--. Try not.
::\`--._,'.::.`._.--'/:: Do or do not.
::::. ` __::__ ' .:::: There is no try.
::::::-:.`'..`'.:-::::::
::::::::\ `--' /:::::::: -Yoda
my $a=4;
print foo(),"\n";
sub foo{my $a=$a;}
my @a=(10,5,1);
my @b=sort @a;
print "@b";