Skip to content

Instantly share code, notes, and snippets.

Avatar
💊
null

Rubén Sospedra sospedra

💊
null
View GitHub Profile
View timeline.json
This file has been truncated, but you can view the full file.
@sospedra
sospedra / time-log.ts
Created Dec 2, 2020
console.log but outputs time differences
View time-log.ts
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 Oct 16, 2020
remove-embrace.diff
View 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 Apr 4, 2018
For Onion Omega 2. You need a config.json file alongside this one
View twitter.py
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 Jul 6, 2017
Lodash objects difference
View difference-object.js
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val))