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 * as React from "react" | |
import Component from "components/component.js" | |
import Row from "components/row.js" | |
import View from "components/view.js" | |
// for now this component only works with StyledComponents as children because of `pb` | |
const Stack = props => { | |
const {children, space, direction = "vertical"} = props // TODO : implement divider prop | |
return ( |
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 {useContext, useEffect, useReducer} from "react" | |
import FetcherContext from "~/components/fetcher.js" | |
import UserContext from "~/components/user.js" | |
const reducer = (state, action) => { | |
const {type, payload} = action | |
switch (type) { | |
case "SET_URL": | |
case "FETCH_INIT": |
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
{ | |
// ... | |
"peacock.affectActivityBar": true, | |
"peacock.affectStatusBar": true, | |
"peacock.affectTitleBar": false, | |
"peacock.favoriteColors": [ | |
{"name": "Base16 Blue", "value": "#7cafc2"}, | |
{"name": "Base16 Pink", "value": "#ba8baf"}, | |
{"name": "Base16 Yellow", "value": "#f7ca88"}, | |
{"name": "Base16 Red", "value": "#ab4642"}, |
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
class TresElegant extends Component { | |
@autobind | |
handleInput() { } | |
render() { | |
return <div onInput={this.handleInput}/> | |
} | |
} | |
class MoinsElegant extends Component { |
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
var domReadyRE = /interactive|complete|loaded/ | |
, isReady = false | |
function checkStatus() { | |
if(isReady) return | |
if(domReadyRE.test(document.readyState)) { | |
isReady = true | |
ready() | |
return | |
} |
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
<?php | |
function partial_exists($templateName) | |
{ | |
$context = sfContext::getInstance(); | |
// is the partial in another module? | |
if (false !== $sep = strpos($templateName, '/')) | |
{ | |
$moduleName = substr($templateName, 0, $sep); |