This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| classSet = require 'react-classset' | |
| moment = require 'moment' | |
| _ = require 'underscore' | |
| moment.locale 'de' | |
| # ----------------------------------------------------------------------------- | |
| Event = React.createClass | |
| displayName: "Event" | |
| workDayInMinutes: 8 * 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {stopEvent, hoistStatics} from 'util' | |
| let Types= React.PropTypes, | |
| _globalContainer= null | |
| export const PopoverSupport= Wrapped => { | |
| class PopoverSupport extends React.Component { | |
| // static propTypes= Wrapped.propTypes // Won't this be nice? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // libsass (v3.1.0) | |
| // ---- | |
| $asset-pipeline: false; | |
| @mixin font-face( | |
| $font-family, | |
| $file-path, | |
| $weight: normal, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:!function() { var slice = Array.prototype.slice; function throttle(type, name, obj) { obj = obj || window; var running = false; var func = function() { if (running) { return; } running = true; requestAnimationFrame(function() { obj.dispatchEvent(new CustomEvent(name)); running = false; }); }; obj.addEventListener(type, func); } slice .call(document.querySelectorAll("*")) .filter( e => e.scrollWidth > e.offsetWidth || e.scrollHeight > e.offsetHeight ) .filter(e => { var style = window.getComputedStyle(e); return [style.overflow, style.overflowX, style.overflowY].some( e => e === "auto" || e === "scroll" ); }) .forEach(e => { var color = Math.floor(Math.random() * 16777215).toString(16); e.style.backgroundColor = "#" + color; throttle("scroll", "optimizedScroll", e); e.addEventListener("scroll", event => { console.log("%c[scroll]", "color: white; background-color:#" + color, event.target); }); }); }() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {combineReducers, createStore} from "redux"; | |
| import todosActions from './actions/todos' | |
| const genericReducer = (storeName, initialState = null, actions = {}) => { | |
| return { | |
| [storeName]: (state = initialState, action) => { | |
| if (action.type === 'HYDRATE' && action.data[storeName]) | |
| return action.data[storeName] |
This Gist was automatically created by Carbide, a free online programming environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (new (require('atom').TextEditor)).cursors[0].constructor.prototype.isVisible = -> true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '.source.css': | |
| 'rgba': | |
| 'prefix': 'rgba' | |
| 'body': 'rgba(0, 0, 0, 0.5)' | |
| 'rgbaw': | |
| 'prefix': 'rgbaw' | |
| 'body': 'rgba(255, 255, 255, 0.5)' | |
| '.source.less': | |
| 'rgba': | |
| 'prefix': 'rgba' |