Skip to content

Instantly share code, notes, and snippets.

View sanketsahu's full-sized avatar

Sanket Sahu sanketsahu

View GitHub Profile
@sanketsahu
sanketsahu / ReactiveConf-CFP.md
Last active August 22, 2022 04:54
CFP: Reactive Conf: Introducing the React Native Builder

This is a proposal for ReactiveConf 2017 open call for Lightning talks. If you'd like to make this talk happen, please 🌟 this gist and retweet my tweet. 🙏


We are building something that would bring designer and developer on the same file!

Introducing BuilderX

A design tool which writes React Native code for you

BuilderX Demo

✅ Don't just prototype but code as a designer

@siddharthkp
siddharthkp / reactivconf-2017-proposal.md
Last active February 25, 2024 10:06
Building applications for the next billion users
@mmazzarolo
mmazzarolo / mobxLogger.js
Created May 30, 2016 13:10
While waiting for React-Native MobX devtools...
import mobx from 'mobx'
const DEFAULT_STYLE = 'color: #006d92; font-weight:bold;'
// Just call this function after MobX initialization
// As argument you can pass an object with:
// - collapsed: true -> shows the log collapsed
// - style -> the style applied to the action description
export const startLogging = ({ collapsed, style } = {}) => {
mobx.spy(event => {
@mgonto
mgonto / configuration.js
Created April 30, 2013 05:10
Restangular responseInterceptor
app.config(function(RestangularProvider) {
// First let's set listTypeIsArray to false, as we have the array wrapped in some other object.
RestangularProvider.setListTypeIsArray(false);
// Now let's configure the response extractor for each request
RestangularProvider.setResponseExtractor(function(response, operation, what, url) {
var newResponse;
// This is a get for a list
if (operation === "getList") {
// First the newResponse will be response.objects which is actually an array
@peteboere
peteboere / jquery.alterclass.js
Created December 24, 2011 12:49
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/
@fatihacet
fatihacet / pubsub-simple.js
Created October 15, 2011 22:02
Simple PubSub implementation with JavaScript - taken from Addy Osmani's design patterns book -
var pubsub = {};
(function(q) {
var topics = {}, subUid = -1;
q.subscribe = function(topic, func) {
if (!topics[topic]) {
topics[topic] = [];
}
var token = (++subUid).toString();
topics[topic].push({
token: token,