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
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string str = "Hello work!"; | |
Test(str, | |
error => | |
{ | |
Console.WriteLine(error.Message); | |
Console.ReadLine(); |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
int main(void) | |
{ | |
int i; | |
std::vector<int> v; | |
while (std::cin >> i) | |
{ |
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 std::io::Timer; | |
use std::io::timer; | |
use std::time::duration::Duration; | |
fn main() { | |
let (sc1, rc1) = channel(); | |
let (sc2, rc2) = channel(); | |
let mut timer = Timer::new().unwrap(); | |
let timeout1 = timer.oneshot(Duration::milliseconds(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
readInt := [ | |
|s i readInt_| | |
readInt_ := [:i | | |
i_ isNumeric | |
ifTrue: [ | |
i_ asInteger. | |
] ifFalse: [ | |
'Not an integer.' signal. | |
]. | |
]. |
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 c = ([]+{})[(!+[]+!![]<<+!![])+!![]]+(''+{})[+!!{}]+(''+[][+![]])[+!![]]+(''+![])[(+!!{}<<(!+[]+!![]))-!![{}]]+ | |
(''+!![])[+![]]+([]+!![])[+!![]]+(''+[][+[]])[+![]]+([]+{})[(!+[]+!![]<<+!![])+!![]]+([]+!![])[+!this]+ | |
([]+{})[+!![]]+([]+!![])[+!![]], | |
lambda = [][(''+!{})[(+!!{}<<(!+[]+!![]))-!![[]]]+([]+{})[+!![]]+(''+!![])[+!![]]+([]+!![])[+![]]][c], | |
r = ([]+!![])[+!![]]+([]+!![])[(+!![]<<+!![])+!![]]+([]+!![])[+![]]+([]+[][+[]])[+![]]+ | |
([]+!![])[+!![]]+([]+[][+[]])[+!![]]+(''+lambda)[+!![]<<(+!![]<<+!![])<<+!![]], | |
SP = (''+lambda)[+!![]<<(+!![]<<+!![])<<+!![]], | |
ts = ([]+!![])[+[]]+([]+{})[+!![]]+ | |
([]+([]+[])[c])[+!![]+(+!![]<<(+!![]<<+!![])<<+!![])]+ | |
([]+!![])[+[]]+([]+!![])[+!![]]+ |
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
bool readChunk(const char *ptr, | |
struct Chunk **out) noexcept | |
{ | |
*out = nullptr; | |
struct Chunk *chunk = new (std::nothrow) Chunk; | |
if (chunk == nullptr) | |
{ | |
return false; | |
} | |
chunk->header.length = *reinterpret_cast<const uint32_t*>(ptr); |
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 <stdint.h> | |
int main() | |
{ | |
char in[101], *iter; | |
struct _counter { | |
uint8_t a; | |
uint8_t b; | |
uint8_t c; |
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 <stdint.h> | |
#include <stdbool.h> | |
#include <string.h> | |
static bool read(char *s, uint8_t *n) | |
{ | |
uint8_t m; | |
char *iter; |
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 <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
uint32_t X, Y; | |
char x[11], y[11]; | |
y[10] = x[10] = '\x00'; | |
scanf("%11s %11s", x, y); |
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> | |
#include <stdint.h> | |
#define BIT_MASK 0x0000001111111111 | |
enum result_t | |
{ | |
OK = 0, |