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
# ... | |
# Run the browser | |
if [ $(tty) == /dev/tty1 ]; then | |
xinit ./run_browser.sh | |
fi |
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
Show hidden characters
{ | |
"presets": ["es2015", "react"], | |
"plugins": [ | |
"transform-class-properties", | |
"transform-function-bind", | |
"transform-runtime", | |
"transform-object-rest-spread" | |
] | |
} |
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 d3 from 'd3'; | |
import {responsivefy} from './lib'; | |
export default function Chart(node, options, initialData) { | |
const [width, height] = [ | |
options.width - options.margin.left - options.margin.right, | |
options.height - options.margin.top - options.margin.bottom | |
]; | |
function chart(data) { |
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 React from 'react'; | |
import Immutable from 'immutable'; | |
import {Record, Map} from 'immutable'; | |
import ImmutablePropTypes from 'react-immutable-proptypes'; | |
import merge from 'merge'; | |
export const PropTypes = merge(ImmutablePropTypes, React.PropTypes); | |
export function alteredRecord(...args) { | |
const methods = [ |
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
// Prints size of free space in localStorage | |
(1024 * 1024 * 5 - unescape(encodeURIComponent(JSON.stringify(localStorage))).length)/1024/1024 |
NewerOlder