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
| ["https://farm66.staticflickr.com/65535/40942054633_8a4ffc596e_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47854946952_374e5008ce_k.jpg", | |
| "https://farm66.staticflickr.com/65535/40940492633_c7e55dac1a_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47854944632_19288b5031_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47906100501_5a2fa86154_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47116706874_d8b59372eb_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47854051952_80bd588780_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47116706444_8a345e1d14_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47906100001_60b1b82105_k.jpg", | |
| "https://farm66.staticflickr.com/65535/47116706064_0cf8f68aa5_k.jpg", |
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
| // Codemod to convert class methods to properties, and remove `.bind(this)` in JSX props. | |
| // Doesn't support Flow annotations yet | |
| export default function(file, api) { | |
| const j = api.jscodeshift; | |
| const isReactClass = p => { | |
| const extended = p.node.superClass; | |
| return ( | |
| extended && ( | |
| extended.type === 'MemberExpression' && |
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
| var SimpleMarkdown = require('simple-markdown'); | |
| var joinTextRules = { | |
| // Here's where the magic happens | |
| Array: { | |
| join: (arr, output) => { | |
| var result = []; | |
| for (var i = 0; i < arr.length; i++) { | |
| var node = arr[i]; | |
| if (node.type === 'text') { |
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
| npm install --no-save babel-cli babel-transform-flow-strip-types babel-syntax-jsx babel-syntax-class-properties babel-syntax-object-rest-spread | |
| babel src -d src2 --plugins=transform-flow-strip-types,syntax-jsx,syntax-class-properties,syntax-object-rest-spread --copy-files --no-babelrc |
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
| expect.extend({ | |
| toBeTheSameReactOutput: function(received, argument) { | |
| received = cleanUpReact(received) | |
| argument = cleanUpReact(argument) | |
| var pass = this.equals(received, argument) | |
| if (pass) { | |
| return { | |
| pass: true, | |
| // called when expect(actual).not.toBeTheSameReactOutput fails: |
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
| //var SimpleMarkdown = require("simple-markdown"); | |
| var SimpleMarkdown = require("./index.js"); | |
| var modifiedTextRule = Object.assign({}, SimpleMarkdown.defaultRules.text, { | |
| match: function(source) { | |
| // This just changes ':' to '[:\.]' in the text regex, so seeing www.g ahead ends the current text match | |
| return /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+[:\.]\S|$)/.exec(source); | |
| } | |
| }); |
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
| // Use this file only for editor styles | |
| // (changes to the renderer will not work in production) | |
| // | |
| // Variables | |
| // Should be consistent with webapp's variables.less | |
| // Colors | |
| @grayDarker: #333; | |
| @gray: #999; |
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
| .framework-perseus.perseus-article { | |
| width: 640px; | |
| } | |
| .framework-perseus.perseus-article div.paragraph.perseus-paragraph-centered, | |
| .framework-perseus.perseus-article div.paragraph > .perseus-widget-container:only-child { | |
| text-align: center; | |
| } | |
| .framework-perseus.perseus-article div.paragraph.perseus-paragraph-centered > *, | |
| .framework-perseus.perseus-article div.paragraph > .perseus-widget-container:only-child > * { | |
| display: inline-block; |
This file has been truncated, but you can view the full file.
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
| /*! Perseus | http://github.com/Khan/perseus */ | |
| // commit 11a9556a7a7c4a80df6e6cc00de274442fba7753 | |
| // branch master | |
| (function webpackUniversalModuleDefinition(root, factory) { | |
| if(typeof exports === 'object' && typeof module === 'object') | |
| module.exports = factory(); | |
| else if(typeof define === 'function' && define.amd) | |
| define(factory); | |
| else if(typeof exports === 'object') | |
| exports["Perseus"] = factory(); |
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
| componentDidMount: function() { | |
| var _this = this; | |
| socket.on('update', function (comment) { | |
| _this.setState({data: _this.state.data.push(comment)}); | |
| }); | |
| }, |
NewerOlder