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
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 |
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
version: '3' | |
services: | |
minecraft: | |
image: itzg/minecraft-server | |
ports: | |
- "25565:25565" | |
environment: | |
EULA: '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
# 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' | |
# |
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 Button extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = {clickCount: 0}; | |
} | |
_onClick(e) { | |
e.preventDefault(); | |
this.setState({clickCount: this.state.clickCount + 1}); | |
} |
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 Actions = Flux.createActions( | |
INCR_COUNT, DECR_COUNT | |
); | |
var CountStore = Flux.createStore( | |
INCR_COUNT: (_, state) => state.update('count', count => count + 1) | |
DECR_COUNT: (_, state) => state.update('count', count => count - 1) | |
); | |
var App = React.createClass({ |
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
Traceback (most recent call last): | |
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tests/test_api.py", line 204, in testupdateprofilebannerimage | |
self.api.update_profile_banner('examples/banner.png') | |
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/api.py", line 377, in update_profile_banner | |
)(self, post_data=post_data, headers=headers) | |
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/binder.py", line 194, in _call | |
return method.execute() | |
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/tweepy/binder.py", line 151, in execute | |
resp = conn.getresponse() | |
File "/Users/jroesslein/Development/Libraries/Python/tweepy/tweepy/.env/lib/python2.7/site-packages/httreplay/stubs/base.py", line 142, in getresponse |
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
uv = terralib.includecstring([[ | |
#include <uv.h> | |
// Keep uv_write_s alive by tricking clang with a dummy function. | |
void __ignore(uv_write_t*); | |
]]) | |
terralib.linklibrary("libuv.dylib") | |
stdlib = terralib.includec("stdlib.h") | |
stdio = terralib.includec("stdio.h") |
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
parse_messages: | |
Parsed 100000 messages in 37 ms | |
2702703 messages/s |
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 spawn = require('child_process').spawn; | |
function Log(level, pid, message) { | |
this.level = level; | |
this.pid = pid; | |
this.message = message; | |
} | |
process.stdout.write(['time', 'mem_freed', 'allocated', 'size'].join('\t') + '\n'); |
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
local ffi = require("ffi") | |
ffi.cdef[[ | |
typedef long time_t; | |
typedef struct timeval { | |
time_t tv_sec; | |
time_t tv_usec; | |
} timeval; | |
int gettimeofday(struct timeval* t, void* tzp); |
NewerOlder