Skip to content

Instantly share code, notes, and snippets.

View sathify's full-sized avatar

Satheesh Kumar sathify

  • Descript
  • San Francisco
View GitHub Profile
@sathify
sathify / _.md
Created February 23, 2013 20:36
Tributary inlet
@sathify
sathify / SassMeister-input.scss
Created August 5, 2014 00:45
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
.blocker
&__item
text-align: left
&--mo
text-align: right
@sathify
sathify / bem-mixin
Created August 6, 2014 04:53
Simplified BEM mixin for component css.
// Elements get appended with "-" and the $name.
@mixin e($name) {
&-#{$name} {
@content;
}
}
// Modifiers get appended with "--" and the $name.
@mixin m($name) {
&--#{$name} {
@sathify
sathify / gist:e83c596cb2fe792f62f0
Created September 25, 2014 17:34
SSO SAML Error
sage.auth.sso: Error making auth request with tenant id {"reason":{"message":"ETIMEDOUT","stack":"Error: ETIMEDOUT\n at null._onTimeout (/Users/satheeshkumar/dev/sage/node_modules/request/request.js:677:15)\n at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)","code":"ETIMEDOUT"}}
sage.auth.saml-sage: redirecting to saml failure: Error initializing session for user glimpseprod {}
@sathify
sathify / slim-redux.js
Created October 22, 2015 17:41 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@sathify
sathify / Enhance.js
Created October 25, 2015 03:16 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@sathify
sathify / Enhance.js
Last active October 25, 2015 07:05
Higher Order Components React
import { Component } from "React";
export default function Enhance(ComposedComponent) {
return class extends Component {
constructor() {
this.state = { time: null };
}
componentDidMount() {
this.setState({ time: new Date().now() });
}
@sathify
sathify / account-index.jsx
Created November 5, 2015 05:24 — forked from jedireza/account-index.jsx
on the client side
/* global window */
var React = require('react/addons');
var ReactRouter = require('react-router');
var Routes = require('./Routes.react');
var MeStore = require('../../stores/Me');
var MeActions = require('../../actions/Me');
var RedirectActions = require('../../actions/Redirect');
var HistoryLocation = ReactRouter.HistoryLocation;