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
| /* | |
| http://griddlegriddle.github.io/Griddle/index.html | |
| <Griddle useGriddleStyles={false} tableClassName="table" showFilter={true} useCustomPagerComponent="true" customPagerComponent={BootstrapPager} results={this.state.data} /> | |
| */ | |
| var BootstrapPager = React.createClass({ | |
| getDefaultProps: function() { | |
| return { | |
| "maxPage": 0, |
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 React = require('react'); | |
| var Bootstrap = require('react-bootstrap'); | |
| var Input = Bootstrap.Input; | |
| var NameInput = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| value: '', | |
| hint: null, |
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 Hello = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| value: 1, | |
| editMode: false | |
| }; | |
| }, | |
| edit: function() { | |
| this.setState({editMode: 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
| const BootstrapPager = React.createClass({ | |
| getDefaultProps() { | |
| return { | |
| currentPage : 0, | |
| maxPage : 0, | |
| maxButtons : 10 | |
| } | |
| }, | |
| handleSelect(event, selectedEvent) { | |
| let page = selectedEvent.eventKey |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:orientation="vertical" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_weight="1" |
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
| package org.farmradio.fessbox; | |
| public interface WebSocketMessageListener { | |
| void onMessage(String message); | |
| } |
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
| package org.farmradio.fessbox; | |
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.os.Binder; | |
| import android.os.IBinder; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| import de.tavendo.autobahn.WebSocketConnection; |
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
| module Main where | |
| (.?.) :: Bool -> (a, a) -> a | |
| (.?.) True = fst | |
| (.?.) False = snd | |
| infixl 3 .?. | |
| (>:<) :: a -> b -> (a, b) | |
| (>:<) = (,) |
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
| module Main | |
| import Prelude.Functor | |
| total ap : Applicative f => f (a -> b) -> f a -> f b | |
| ap = (<*>) | |
| total maybeAdd1 : Num a => Maybe a -> Maybe a -> Maybe a | |
| maybeAdd1 x y = do x' <- x | |
| y' <- y |
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
| 'atom-workspace': | |
| 'ctrl-shift-0': 'ide-haskell:toggle-output' |
OlderNewer