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 React from "react"; | |
import Baz from "baz"; | |
interface Props { | |
baz: boolean; | |
list: any[]; | |
} | |
export const Foo = function ({ list: entries, list = "" }: Props) { | |
const items = (list) => { |
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 React, { Component } from 'react'; | |
import NodeCGReplicant from './NodeCGReplicant'; | |
class HelloWorld extends Component { | |
state = { | |
hello: 'world' | |
}; | |
render() { |
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
describe('Context async', function () { | |
before(function (done) { | |
setTimeout(function(){ | |
this.name = "Eric"; | |
done(); | |
}, 1700) | |
}); | |
it('should work', function () { | |
this.should.have.property('name'); | |
}); |
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
-- Supported values for orientation: | |
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight | |
settings = { | |
orientation = { | |
default = "portrait", | |
supported = { "portrait", } | |
}, | |
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
https://gist.github.com/blenderer/39385d667a602177d852 | |
http://en.wikipedia.org/wiki/Model_View_ViewModel#mediaviewer/File:MVVMPattern.png | |
http://jsfiddle.net/rniemeyer/aDahT/ | |
http://lodash.com/ | |
http://requirejs.org/ | |
http://knockoutjs.com/ |
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
require('middleclass') | |
function love.load() | |
window_width = love.graphics.getWidth() | |
window_height = love.graphics.getHeight() | |
room_width = 64 | |
room_height = 48 | |
the_floor = Floor:new(room_width, room_height, 50, window_width / 2 - room_width / 2, window_height / 2 - room_height / 2) |
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
1. Place room number 1 | |
2. randomly choose a side on a random room, continue if not occupied or room won't be surrounded | |
3. place room there, make room1.(side) = new room. | |
4. Go back to 2 | |
- Repeat step 3 until n is fullfilled. | |
Let's put this in the wild! |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Shuriken</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> | |
<script> | |
(function($) { |
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
copy("the_title".replace(/ /g, "-").toLowerCase()); |
NewerOlder