Skip to content

Instantly share code, notes, and snippets.

View jsDotCr's full-sized avatar

jsDotCr

  • Málaga, Spain
View GitHub Profile
@jsDotCr
jsDotCr / index.js
Created December 29, 2018 09:57
Exist.io – Update attribute snipped
const { inspect } = require('util')
const fetch = require('cross-fetch')
fetch('https://exist.io/api/1/attributes/update/', {
method: 'post',
headers: {
'Authorization': 'Bearer AUTHCODE'
},
body: JSON.stringify([
{
@jsDotCr
jsDotCr / README.md
Last active October 16, 2018 09:21
Visual Studio Code snippets
@jsDotCr
jsDotCr / keybase.md
Last active April 15, 2017 10:37
keybase.md

Keybase proof

I hereby claim:

  • I am jsdotcr on github.
  • I am jsdotcr (https://keybase.io/jsdotcr) on keybase.
  • I have a public key ASBVSASDDu_mUJlZi1qk-sdW0ugN_D2ZMdCp4s-DFzqNcwo

To claim this, I am signing this object:

@jsDotCr
jsDotCr / BackboneDispatcher.js
Last active August 29, 2015 14:16
Quick and easy Backbone.Events-based Dispatcher for a flux architecture. This requires backbone (oh, srsly?), underscore (that is a backbone hard dependency, anyway) to work. It is intended to be used in a browserify (or node.js) environment. Enjoy :-)
var _ = require('underscore');
var Backbone = require('backbone');
var dispatcher = _.extend({
defaultCallback: 'onEventDispatched',
defaultHandlersHash: 'handlers',
registerStore: function registerStore(store) {
'use strict';