Skip to content

Instantly share code, notes, and snippets.

View alexjoverm's full-sized avatar

Alex Jover alexjoverm

View GitHub Profile
@alexjoverm
alexjoverm / Book-Vue-Jest-Review-01.md
Last active December 6, 2018 20:06
Book Vue Jest Review 01

General

Book repo link

Since the book comes from an articles series, the titles, intros an outros where written in a more article-way (like repeating Vue and Jest in every title). They've been slightly updated to give a better book style.

So, following actions are needed:

  • Update titles according to the book
  • If needed, update intros (first or first two paragraph)
@alexjoverm
alexjoverm / react-native-eject-android.md
Last active March 28, 2018 15:25
Eject React Native and run on Android

Overview for setting up the Android environment in Mac OS when ejecting a React Native app created via create-react-native-app.

Set up the environment

Prerequisites:

  • XCode command line tools are installed (via xcode-select --install for instance)
  • Brew is installed

Install the following packages

let openRequest = indexedDB.open("test", 5);
let messages = [
{ id: 0, message: 'pepepe' },
{ id: 1, message: 'paco' },
]
openRequest.onsuccess = function(ev) {
console.log('SUCCESS')
console.log(ev)
@alexjoverm
alexjoverm / emitter.js
Last active July 24, 2017 09:12
Event emitter
export default class Emitter {
constructor() {
this.subscriptions = {}
}
subscribe(name, cb) {
if (!Array.isArray(this.subscriptions[name])) {
this.subscriptions[name] = []
}
this.subscriptions[name].push(cb)
@alexjoverm
alexjoverm / init.coffee
Last active June 21, 2016 06:16
Sync settings Atom
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->