Skip to content

Instantly share code, notes, and snippets.

@arthurbailao
arthurbailao / uberScraper.js
Created June 19, 2019 00:40
Uber trips scraper
const fetchRides = (offset = '0') =>
fetch('https://riders.uber.com/api/getTripsForClient', {
method: 'POST',
body: JSON.stringify({
limit: 50,
offset,
range: {fromTime: null, toTime: null}, }), headers: {
'x-csrf-token': document
.getElementById('__CSRF_TOKEN__')
.innerText.replace(/\\u0022/g, ''),
@arthurbailao
arthurbailao / quiz.rb
Created September 4, 2017 20:00
Quiz
class Integer; alias 🆙 upto; alias 👍 +; alias 👎 -; alias 🖖 /; end
class Proc; alias 📞 call; end
module Kernel; alias 🖨 puts; def 💯; 100 end; end
✊ = 💯.👎 💯
🖕 = 💯.🖖 💯
🤘 = 🖕.👍 🖕
👌 = 🤘.👍 🖕
🖐 = 👌.👍 🤘
🤖 = -> (💩) {
📄 = if 💩 % 🖐 == ✊ && 💩 % 👌 == ✊