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
#[derive(PartialEq, Debug)] | |
enum Op { | |
Push(i64), | |
Pop, | |
Sum, | |
Sumx, | |
UnknownOp, | |
} |
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
#define GPIO_BASE 0x20200000UL | |
#define LED_GPFSEL 4 | |
#define LED_GPFBIT 21 | |
#define LED_GPSET 8 | |
#define LED_GPCLR 11 | |
#define LED_GPIO_BIT 15 | |
volatile unsigned int* gpio; |
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 Promise = require('bluebird'); | |
var a = {context: 'context a'}; | |
function set() { | |
console.log(this.context); | |
} | |
Promise.resolve().bind(a).then(function() { | |
console.log(this.context); |
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 Promise = require('bluebird'); | |
var a = {context: 'context a'}; | |
function set() { | |
console.log(this.context); | |
} | |
Promise.resolve().bind(a).then(function() { | |
console.log(this.context); |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define TAM 128 | |
#define INF (0x3f3f3f3f) | |
int adj[TAM][TAM],v[TAM],min[TAM],p[TAM],n,m; | |
int prim(int k) { | |
int next = -1, tmin = 1000; |
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
struct Tree { | |
root: *mut Node, | |
} | |
impl Tree { | |
fn new() -> Tree { | |
Tree { root: ptr::null_mut() } | |
} | |
pub fn insert(&mut self, value: i32) { |
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
I AM GROOT | |
i am groot | |
i am groot | |
i am groot | |
i am groot | |
i am groot | |
i am groot | |
i am groot | |
i am groot | |
i am groot |
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
#![crate_type = "lib"] | |
#[no_mangle] | |
pub extern fn print_hello() { | |
println!("hello"); | |
} |
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
Undefined symbols for architecture x86_64: | |
"old_io::stdio::println_args::h04e4ae6b36a3a4812Zg", referenced from: | |
_print_hello in hello.o | |
_print_hello in rust_hello.o | |
"___morestack", referenced from: | |
_print_hello in hello.o | |
_print_hello in rust_hello.o | |
"_main", referenced from: | |
implicit entry/start for main executable | |
ld: symbol(s) not found for architecture x86_64 |
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
#user nobody; | |
worker_processes 1; | |
error_log logs/error.log; | |
error_log logs/error.log notice; | |
error_log logs/error.log info; | |
pid logs/nginx.pid; |