Skip to content

Instantly share code, notes, and snippets.

View cherta's full-sized avatar

Gabriel Chertok cherta

View GitHub Profile
@cherta
cherta / machine.js
Created May 19, 2020 19:45
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@cherta
cherta / controllers.application.js
Created December 3, 2017 19:34
Ember CLI Google Viewer Sample
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@cherta
cherta / contents.md
Created April 11, 2017 20:46
Contenidos de la newsletter

About

Qué contenido debería tener el newsletter mensual de js.uy.

Secciones

  • Resumen de las meetups del mes, una sección por meetup: (ember, angular, react, frontend-mvdjs, mvd-js)
  • Agenda del próximo mes
  • Blog posts de JS de integrantes de la comunidad (asociadas o no a las charlas que se han dado)
  • Proyectos open source de integrantes de la comunidad (4 o 5 por sección)
@cherta
cherta / keybase.md
Created February 9, 2017 16:53
keybase.md

Keybase proof

I hereby claim:

  • I am cherta on github.
  • I am cherta (https://keybase.io/cherta) on keybase.
  • I have a public key whose fingerprint is EDD0 F233 2056 90E4 0FC4 7F88 6ACF 7B6C 6A77 31F4

To claim this, I am signing this object:

{
"channels": [
{
"id": 1,
"logoURL": "http://www.radiomontecarlo.com.uy/artworks/artworks_radiomontecarlocomuy/logo_small.png",
"name": "Montecarlo AM 930",
"playbackURL": "http://192.99.150.52:7900/"
},
{
"id": 2,
@cherta
cherta / reducer.js
Last active June 18, 2016 15:52
Sample reducer
const initialState = {
token:: null,
tokenIsExpired: false,
errors: [],
profile:null,
loading: false
}
export default function auth(state = initialState, action) {
switch(action.type) {
@cherta
cherta / index.md
Last active June 16, 2016 14:40
Mañana en el abasto

Volvía yo una madrugada, más melancólico que borracho remotando esas callecitas de San Telmo cuando me encuentro con un pibe, otro yo. Borrachos y melancólicos caminamos juntos como viejos amigos que vienen de darle pelea a la noche, de darle pelea y perder por goleada.

La noche se hacía día y él o yo, vaya a saber quien, arrancó con "mañana de sol..." y fue cantar hasta Estados Unidos o Independencia donde cada uno siguió cantando por su lado.

Mañana en el Abasto, una canción que se instala en la cabeza y se repite, en loop vinílico con su ritmo cancino y su batería repiqueteando el tono monocorde de Luca, mientras él escucha el tren y baja al subsuelo para (re)descubrir nuestra historia; nuestra única identificación de lugar y momento, esa nación redentora de embajadas en cada esquina, el barrio.

@cherta
cherta / index.md
Created May 9, 2016 03:02
OC README feedback

Hi Matteo!

I've been playing with OC and I wanted to share with you how the doc could be improved to help people better grasp the concepts.

I will personally delay explaining how to set up a registry as far as I can in the learning process. To me the dev registry works great for testing the technology and avoids people going to S3, setting up infrastructure, etc.

Another thing I came across while testing is that I understand how to create components but combine them together is not so well explained, I can imagine it is acheived by creating a 'bigger' component, but who knows, maybe I'm missing something.

In conclussion, I will approach the doc the following way:

@cherta
cherta / sagas.js
Last active January 29, 2016 14:35
Sagas
import { routeActions, UPDATE_LOCATION } from 'redux-simple-router'
import { take, put, fork, call } from 'redux-saga'
import { show, retrieve } from './actionCreators'
/*
* Small tree structure in a plain hash that works as my backend server.
*/
const fakeDB = {
'/': [
{ id: '/1',
@cherta
cherta / actionCreators.js
Created January 19, 2016 17:19
redux-simple-router and sagas
export function retrieve(nodeId) {
return { type: 'RETRIEVE_NODE', payload: { nodeId: nodeId } }
}
export function show(nodes) {
return { type: 'SHOW_NODE', payload: { nodes: nodes } }
}