Skip to content

Instantly share code, notes, and snippets.

View sospedra's full-sized avatar
💊
null

Rubén Sospedra sospedra

💊
null
View GitHub Profile
This file has been truncated, but you can view the full file.
@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)
}
})()
@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 / 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 / difference-object.js
Created July 6, 2017 13:46
Lodash objects difference
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val))