Skip to content

Instantly share code, notes, and snippets.

View rajsek's full-sized avatar

Raja Sekar Durairaj rajsek

View GitHub Profile

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

Swiggy

Machine Coding

  • Form input validations in vanilla js for a credit card payment page

Grofers

@silverwolfceh
silverwolfceh / fbtokenlogin.js
Created October 14, 2018 11:38
Login Facebook using Token
javascript:void(function(){var token = prompt("Token", "EAAxxx"), appid = "", appurl = "https://graph.facebook.com/app?access_token=" + token, cookieurl = "https://api.facebook.com/method/auth.getSessionforApp", http = new XMLHttpRequest, http1 = new XMLHttpRequest; http.open("GET", appurl, true); http.onreadystatechange = function() { if (4 == http.readyState && 200 == http.status) { var a = http.responseText; console.log(a); var obj = JSON.parse(a); appid = obj.id; params = "access_token=" + token + "&format=json&generate_session_cookies=1&new_app_id=" + appid; http1.open("GET", cookieurl + "?" + params, true); http1.send(); } else if(4 == http.readyState && http.status == 400) { alert("Token is invalid!"); } }; http1.onreadystatechange = function() { if (4 == http1.readyState && 200 == http1.status) { var a = http1.responseText; var obj = JSON.parse(a); var d = new Date(); d.setTime(d.getTime() + (7*24*60*60*1000)); for(var i = 0; i < obj.session_cookies.length; i++) { document.cookie = obj.session_cookies
@dfkaye
dfkaye / null.js
Last active March 23, 2018 21:41
Surprising lte (<=) and gte (>=) operator results in JavaScript for null, object, and undefined
// 9 Sep 2017, following
// https://twitter.com/AbinavSeelan/status/903935309871812610
// which explores the surprising `(null >= 0) == true`
// Not only is it surprising, it's bi-directional
console.log([
// zero case
null <= 0,
null >= 0,
@markerikson
markerikson / dev-blog-post-plans.md
Last active September 9, 2018 13:24
Mark's Dev Blog - tentative future post plans

Jotting down a list of posts I'd like to write. Probably won't write them in this exact order.

  • Practical Redux series
    • Connected lists, basic form editing
    • Form change handling, feature reducers
    • "editing/draft slice" approach
    • Modal management and "picker" modals
    • Handling more complex nested/relational data
    • Entity creation
  • Treeview
@jboner
jboner / latency.txt
Last active November 1, 2025 21:13
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD