Skip to content

Instantly share code, notes, and snippets.

View sospedra's full-sized avatar
💊
null

Rubén Sospedra sospedra

💊
null
View GitHub Profile
@sospedra
sospedra / difference-object.js
Created July 6, 2017 13:46
Lodash objects difference
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val))
@sospedra
sospedra / twitter.py
Last active April 4, 2018 08:19
For Onion Omega 2. You need a config.json file alongside this one
import os
import json
import base64
import urllib3
import unicodedata as ud
from OmegaExpansion import oledExp
http = urllib3.PoolManager()
baseUrl = "https://api.twitter.com"
bearerToken = ""
@sospedra
sospedra / remove-embrace.diff
Last active October 16, 2020 10:50
remove-embrace.diff
diff --git a/ios/Podfile b/ios/Podfile
index 4a69b5702..d83e4796d 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -80,8 +80,6 @@ target 'cameo' do
use_unimodules!
use_native_modules!
- pod 'EmbraceIO'
-
@sospedra
sospedra / time-log.ts
Created December 2, 2020 16:45
console.log but outputs time differences
const time = (() => {
let mark
return (...msgs: any[]) => {
if (!mark) {
mark = new Date().getTime()
}
const now = new Date().getTime()
console.log(`${(now - mark) / 1000 % 60}s`, ...msgs)
}
})()
This file has been truncated, but you can view the full file.
{"version":1,"recording":{"displayName":"Timeline Recording 1","startTime":29.888655570000992,"endTime":54.10816112199973,"discontinuities":[],"instrumentTypes":["timeline-record-type-network","timeline-record-type-layout","timeline-record-type-script","timeline-record-type-rendering-frame","timeline-record-type-cpu"],"records":[{"type":"timeline-record-type-script","eventType":"api-script-evaluated","startTime":29.88896020100219,"endTime":29.88904348500364,"details":"","extraDetails":null},{"type":"timeline-record-type-network","archiveStartTime":1631547174.9437041,"entry":{"pageref":"page_0","startedDateTime":"2021-09-13T15:33:24.835Z","time":1244.055986404419,"request":{"method":"GET","url":"https://github.com/baronapp/cameoapp/pull/6298/files","httpVersion":"HTTP/2","cookies":[{"name":"_gh_sess","value":"aBuFtOOo1FoSUq7AOaVrKAKUFLRpIfe0SIy7jPxFFrQDCH30YbmcrQ6zC5CcHaaDvfHoqFf6rlofDBg2FFwYoN6b1iU5vV2inV399lk%2BU7GvT2VgnBKaQMbFbPNskkR40HJIH59ICO1CMjo%2Foa1QwlrKdGAj5PxMvcvKRTZsY8TDkQbrWRZPlKP3ytU0w73cbyTY%2Bt