I hereby claim:
- I am ekse on github.
- I am ekse (https://keybase.io/ekse) on keybase.
- I have a public key ASAjJhB91KqudymCaE1s1fqmK9wOeBDyN2LpAtdcVuE85Qo
To claim this, I am signing this object:
| [DISASM] | |
| 000000 //Instruction | |
| aaaaaa //Directive | |
| f3c5ff //Macro name | |
| 7e6082 //Register name | |
| 666666 //Other keywords | |
| ffffff //Dummy data name | |
| b9ebeb //Dummy code name | |
| b9ebeb //Dummy unexplored name | |
| bbecff //Hidden name |
| #!/usr/bin/env python | |
| # Looks like the serial number verification for space ships is similar to that | |
| # of your robot. Try to find a serial that verifies for this space ship | |
| import sys | |
| print ("Please enter a valid serial number from your RoboCorpIntergalactic purchase") | |
| if len(sys.argv) < 2: | |
| print ("Usage: %s [serial number]"%sys.argv[0]) | |
| exit() | |
| extern crate byteorder; | |
| use std::io::{Read, Cursor, Seek, SeekFrom}; | |
| use std::fs::File; | |
| use byteorder::{LittleEndian, ReadBytesExt}; | |
| pub type PeResult<T> = Result<T, PeError>; |
I hereby claim:
To claim this, I am signing this object:
| extern crate ws; | |
| use ws::{WebSocket, Sender, Handler, Factory, Message}; | |
| fn gimme_websocket() -> WebSocket<Factory<Handler = FnMut(Sender) -> (Fn(Message) -> ws::Result<()>)>> { | |
| let f = |output: Sender| { | |
| // The closure handler needs to take ownership of output | |
| let handler = move |msg| { | |
| println!("got '{}' ", msg); | |
| }; |
| int main(int argc, char* argv[]) { | |
| return 0; | |
| } |
| cmake_minimum_required(VERSION 3.0) | |
| project(CMakeRustSample) | |
| add_executable(helloworld main.cpp) |
| set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") | |
| enable_language(Rust) | |
| include(CMakeCargo) |
| [lib] | |
| crate-type = ["staticlib"] |
| #[no_mangle] | |
| pub extern "C" fn print_hello() { | |
| println!("hello world!"); | |
| } |