Skip to content

Instantly share code, notes, and snippets.

View nkoneko's full-sized avatar

Nekomura, Koneko nkoneko

  • Tokyo
View GitHub Profile
public class Program
{
static void Main(string[] args)
{
string str = "Hello work!";
Test(str,
error =>
{
Console.WriteLine(error.Message);
Console.ReadLine();
#include <iostream>
#include <vector>
#include <algorithm>
int main(void)
{
int i;
std::vector<int> v;
while (std::cin >> i)
{
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));
readInt := [
|s i readInt_|
readInt_ := [:i |
i_ isNumeric
ifTrue: [
i_ asInteger.
] ifFalse: [
'Not an integer.' signal.
].
].
var c = ([]+{})[(!+[]+!![]<<+!![])+!![]]+(''+{})[+!!{}]+(''+[][+![]])[+!![]]+(''+![])[(+!!{}<<(!+[]+!![]))-!![{}]]+
(''+!![])[+![]]+([]+!![])[+!![]]+(''+[][+[]])[+![]]+([]+{})[(!+[]+!![]<<+!![])+!![]]+([]+!![])[+!this]+
([]+{})[+!![]]+([]+!![])[+!![]],
lambda = [][(''+!{})[(+!!{}<<(!+[]+!![]))-!![[]]]+([]+{})[+!![]]+(''+!![])[+!![]]+([]+!![])[+![]]][c],
r = ([]+!![])[+!![]]+([]+!![])[(+!![]<<+!![])+!![]]+([]+!![])[+![]]+([]+[][+[]])[+![]]+
([]+!![])[+!![]]+([]+[][+[]])[+!![]]+(''+lambda)[+!![]<<(+!![]<<+!![])<<+!![]],
SP = (''+lambda)[+!![]<<(+!![]<<+!![])<<+!![]],
ts = ([]+!![])[+[]]+([]+{})[+!![]]+
([]+([]+[])[c])[+!![]+(+!![]<<(+!![]<<+!![])<<+!![])]+
([]+!![])[+[]]+([]+!![])[+!![]]+
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);
#include <stdio.h>
#include <stdint.h>
int main()
{
char in[101], *iter;
struct _counter {
uint8_t a;
uint8_t b;
uint8_t c;
#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;
#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);
@nkoneko
nkoneko / fof.c
Created September 19, 2015 17:57
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#define BIT_MASK 0x0000001111111111
enum result_t
{
OK = 0,