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
let MDLUpgrade = function(Component) { | |
const MDLComponent = React.createClass({ | |
componentDidUpdate() { | |
componentHandler.upgradeDom(); | |
}, | |
render() { | |
return <Component {...this.props} />; | |
}, |
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 strict"; | |
var React = require("react-native"); | |
var {ListView, ScrollView, ActivityIndicatorIOS, View, Text} = React; | |
var TimerMixin = require("react-timer-mixin"); | |
var kPulldownDistance = 60; | |
// Working with the TimerMixin, e.g. | |
// mixins: [TimerMinx, RefreshableMixin] |
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
define ["jquery", "react"], ($, React) -> | |
{div, button, a, p, span} = React.DOM | |
ModalHeader = React.createClass | |
render: -> | |
(div {className: "modal-header"}, [ | |
(button { type: "button", className: "close", "data-dismiss": "modal"}, [ | |
(span { "aria-hidden": "true"}, "×") | |
(span { className: "sr-only"}, "关闭") |
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
// Referring to the great open source lib of ompi-lda | |
// http://code.google.com/p/ompi-lda/ | |
// I only experimented running this is the local mode and don't | |
// know if this will be working in other deployment mode. | |
import spark.broadcast._ | |
import spark.SparkContext | |
import spark.SparkContext._ | |
import spark.RDD | |
import spark.storage.StorageLevel |