Skip to content

Instantly share code, notes, and snippets.

View iammerrick's full-sized avatar

Merrick Christensen iammerrick

View GitHub Profile
" Vundle
filetype off
" Plugins
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundle installed
var React = require('react');
var CardSocialStore = require('./CardSocialStore');
var CSSMixin = require('cssmixin!./CardSocialSnapshot.css');
var $ = require('jquery');
var AnimationMath = require('../../../../utilities/animation/AnimationMath');
var Avatar = require('../../../../components/Avatar');
var UserStore = require('../../../../stores/UserStore');
var offset = 4;
function getCoordinates(e) {
snippet rf
var React = require('react');
var $1 = React.createClass({
render() {
return {$0:null};
}
});
module.exports = $1;
" Vundle
filetype off
" Plugins
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundle installed
Bundle 'gmarik/vundle'
" Vundle
filetype off
" Plugins
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
" Vundle installed
Plugin 'gmarik/vundle'
@iammerrick
iammerrick / StyleSheet.js
Created April 22, 2015 22:25
A StyleSheet function which gives you cached prefixing.
function StyleSheet() {
var el = document.createElement('div');
var prefixes = ['Webkit', 'Moz', 'O', 'ms'];
var prefixed = {};
function getPrefixed(key) {
if (prefixed[key]) return prefixed[key];
if (el.style[key] !== '') {
import React from 'react';
import PagesList from './components/PagesList';
import LoadingStore from '../../../stores/LoadingStore';
import NavigationActions from 'handlers/AppHandler/NavigationActions';
import PageNavigationStore from '../stores/PageNavigationStore';
import PageNavigationActions from '../actions/PageNavigationActions';
import StoreObserver from 'utilities/StoreObserver';
import Title from 'components/Title';
import css from './PageNavigationHandler.css';
import Style from 'utilities/Style';
import ActionConstants from '../ActionConstants';
import {dispatch} from '../store'
import { bindActionCreators } from 'redux';
export default bindActionCreators({
setCurrentPlan: function (planId) {
return {
type: ActionConstants.SET_CURRENT_PLAN,
payload: {
id: planId
@iammerrick
iammerrick / Question.md
Created August 14, 2015 17:21
Help me understand contexts!

Halp!!!

Something about calling createElement within the function not ahead of time makes the context of Provider work. Why?

switch ($this->permissions->user_type)
{
case 1:
case 2:
// Global User or Chair
$this->load_global_view($sort);
break;
case 3:
$this->load_faculty_view($sort);