Skip to content

Instantly share code, notes, and snippets.

View joshthecoder's full-sized avatar

Joshua Roesslein joshthecoder

View GitHub Profile
class Button extends React.Component {
constructor(props) {
super(props);
this.state = {clickCount: 0};
}
_onClick(e) {
e.preventDefault();
this.setState({clickCount: this.state.clickCount + 1});
}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
@joshthecoder
joshthecoder / docker-compose.yml
Last active July 15, 2018 06:24
MC Server - Sponge Survival
version: '3'
services:
minecraft:
image: itzg/minecraft-server
ports:
- "25565:25565"
environment:
EULA: 'TRUE'
Compiling chat-rs v0.1.0 (/mnt/c/Users/jroes/Development/chat-rs)
error[E0373]: closure may outlive the current function, but it borrows `out`, which is owned by the current function --> src/main.rs:6:34
|
6 | listen("127.0.0.1:8888", |out| |msg| out.send(msg)).unwrap()
| ^^^^^ --- `out` is borrowed here
| |
| may outlive borrowed value `out`
|
note: closure is returned here
--> src/main.rs:6:34