Skip to content

Instantly share code, notes, and snippets.

@max107
max107 / calendar.js
Last active August 29, 2015 14:20
React calendar
var Calendar = React.createClass({
getDefaultProps: function() {
return {
prev_text: "Prev",
next_text: "Next",
month_format: "MMMM, YYYY",
month: undefined,
count: 2,
reserved: [],
onSelect: function(date) {
@max107
max107 / userChrome.css
Created July 16, 2015 15:51
Firefox userChrome.css wild old tabs
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
* {
font-size: 12px !important;
font-family: Ubuntu, "Lucida Grande", "Helvetica Neue", Arial, sans-serif !important;
}
/* Remove space before first tab */
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
-moz-padding-end: 0 !important;
@max107
max107 / index.js
Created November 23, 2015 17:24
easy-react-router
export { default as Router } from './router';
export { default as Link } from './link';
export { default as Store } from './store';
@max107
max107 / modal.jsx
Created November 24, 2015 09:28
modal react
var Modal = React.createClass({
killClick: function(e) {
// clicks on the content shouldn't close the modal
e.stopPropagation();
},
componentDidMount: function() {
ModalCount += 1;
modalWindowLock();
},
handleBackdropClick: function() {
class Alert extends React.Component {
render() {
return (
<div className='alert'>alert</div>
)
};
}
class Header extends React.Component {
render() {
return (
@max107
max107 / qwe.jsx
Created November 26, 2015 08:54
qwe.jsx
import React from 'react';
import $ from 'jQuery';
class Alert extends React.Component {
render() {
return (
<div className='alert'>alert</div>
)
};
}
@max107
max107 / tmux-cheatsheet.markdown
Created December 23, 2015 08:15 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@max107
max107 / fly.js
Created June 1, 2016 15:12
fly.js
import $ from 'jquery';
export default (src, dst) => {
let divider = 3,
$src = $(src),
$dst = $(dst),
$srcClone = $($src.clone());
$srcClone.css({
'position': 'absolute',
@max107
max107 / .gitignore
Created September 21, 2016 21:33 — forked from Ocramius/.gitignore
`Zend\EventManager` examples
vendor
composer.lock
-apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", sans-serif