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
export default function(robot){ | |
robot.hear(/badger/i, (res) => { | |
res.send("Badgers? BADGERS? WE DON'T NEED NO STINKIN BADGERS") | |
}) | |
} |
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 GameViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene { | |
// Configure the view. | |
let skView = self.view as! SKView | |
skView.showsFPS = true |
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 "basic"; | |
// 読み込まれる | |
@import "sass/basic"; | |
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
$ tree -I node_modules | |
. | |
├── app | |
│ ├── client | |
│ │ ├── Foo.jsx | |
│ │ └── main.jsx | |
│ ├── index.html | |
│ └── index.js | |
└── package.json |
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 Icon extends React.Component{ | |
activeClass(){ | |
throw new Error("Not implemented error") | |
} | |
inactiveClass(){ | |
throw new Error("Not implemented error") | |
} | |
render(){ | |
var {key, active} = this.props; | |
const classes = active ? this.activeClass() : this.inactiveClass() |
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 five = require("johnny-five") | |
var board = new five.Board() | |
module.exports = function(cb){ | |
board.once("ready", function() { | |
var temperature = new five.Temperature({ | |
controller: "LM35", | |
pin: "A0" | |
}) |
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 Container extends React.Component{ | |
render(){ | |
//一個storeとつなぐ親コンポーネントがラップする | |
return ( | |
<FluxComponent flux={this.flux} connectToStores={{ | |
messages: store => ({ | |
foo: store.getFoo(), | |
baz: store.getBaz() | |
}) | |
}}> |
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
return { | |
user = "your.name", | |
host = "0.0.0.0", | |
source = "/path/to/source", | |
dest = "/path/to/dest", | |
} |
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 Example = React.createClass({ | |
onUpdateKana(data){ | |
this.setState({ | |
kana : data.kana | |
}) | |
}, | |
render(){ | |
return ( | |
<div> | |
<div> |
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
"use strict"; | |
function foo() {} | |
module.exports = { foo: foo }; |