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 doesnt_exist::*; | |
pub fn example_case(something: Option<u32>) { | |
match something { | |
Some(x) => { println!("found a number {}", x); }, | |
None => { println!("found nothing"); } | |
} | |
} |
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('babel-polyfill'); // Necessary for PhantomJS | |
var unexpected = require('unexpected'); | |
var unexpectedReact = require('unexpected-react'); | |
var React = require('react'); | |
var TestUtils = require('react-addons-test-utils'); | |
var expect = unexpected.clone().use(unexpectedReact); |
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
// The dispatcher has no dependencies. It is a simple event emitter | |
var dispatcher = { | |
listeners: [], | |
emit: function(name, meta) { | |
this.listeners.forEach(function(listener) { | |
listener({ | |
name: name, | |
payload: meta | |
}) | |
}) |
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
#pragma once | |
#include "GLFWDriver.h" | |
class App { | |
public: | |
App() {}; | |
virtual ~App() {}; | |
int width; |