This file contains 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 Components.Tab exposing (Model, Msg, init, view, update) | |
import Html exposing (Html, div, text, i) | |
import Html.Attributes exposing (class) | |
import Html.Events exposing (onClick) | |
-- MODEL | |
type alias Model = | |
{ icon : String |
This file contains 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
Reason # type face = | Jack | Queen | King | Ace; | |
type face = Jack | Queen | King | Ace | |
Reason # let f1 = Queen; | |
let f1 : face = Queen | |
Reason # let f2 = Ace; | |
let f2 : face = Ace | |
Reason # f1 > f2; |
This file contains 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
type suit = | |
| Diamonds | Clubs | Hearts | Spades; | |
type rank = | |
| Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten; | |
type face = | |
| Jack | Queen | King | Ace; |
This file contains 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 classNames from 'classnames'; | |
import React from 'react'; | |
const NavTab = ({ selected, icon, onClick, children }) => { | |
let tabClasses = classNames({ | |
'nav-tab': true, | |
'selected': selected | |
}); | |
let iconClasses = `fa fa-${icon} fa-lg fa-fw`; |
This file contains 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
Workflow.run = function (actions) { | |
var files = []; | |
var promise = Promise.resolve(files); | |
actions.forEach(function(action) { | |
promise = promise.then(function (outFiles) { | |
// Need to return a promise here to keep the chain going | |
return new Action(action, outFiles); | |
}); | |
}); | |
promise = promise.catch(function (error) { |
This file contains 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
GET /DocData/api/replication/db.json?DbName=test HTTP/1.1 | |
Host: localhost | |
Connection: keep-alive | |
Cache-Control: max-age=0 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 | |
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 | |
Accept-Encoding: gzip, deflate, sdch | |
Accept-Language: en-US,en;q=0.8 | |
Cookie: ss-id=hO2XaZXMotKtMOEOE4WF; ss-pid=9MwQlX6VDITl5UcGsLfH; DocStudySetId=7945916; AuthSession= |
This file contains 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 |
This file contains 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
node.unplug(Y.DD.Drag); | |
node.plug(Y.Plugin.Drag); | |
node.dd.plug(Y.Plugin.DDConstrained, { | |
constrain2node: constrainNode, | |
tickX: gridSize, | |
tickY: gridSize | |
}); | |
node.dd.plug(Y.Plugin.DDWinScroll); | |
... |
This file contains 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
MyApp = Y.Base.create 'myApp', Y.App, [], | |
views: | |
signIn: | |
type: SignInView | |
requestPasswordReset: | |
type: RequestPasswordResetView | |
parent: 'signIn' | |
checkEmail: | |
type: CheckEmailView |