This file contains hidden or 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> | |
struct AdditionModule { | |
const char * name = "ADD"; | |
void print() { | |
std::cout << name << "\n"; | |
}; | |
}; |
This file contains hidden or 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 <inttypes.h> | |
#define ROUNDS 32 | |
static inline void | |
speck_hash( | |
uint8_t& x, uint8_t& y, | |
const uint8_t key) | |
{ |
This file contains hidden or 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> | |
struct User { | |
enum { AGE, NAME } tag; | |
union { | |
int age; | |
char * nik; | |
}; | |
This file contains hidden or 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 <cassert> | |
#include <iostream> | |
#define STREAM std::ostream& | |
struct Player { | |
int score; | |
Player (int s) { this -> score = s; } | |
Player () { this -> score = 0; } |
This file contains hidden or 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
// | |
// main.swift | |
// runLoop | |
// | |
// Created by menangen on 27.12.2021. | |
// | |
import Foundation | |
extension Thread { |
This file contains hidden or 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 <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#define MAX 80 |
This file contains hidden or 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
// | |
// main.swift | |
// dispatcher | |
// | |
// Created by menangen on 24.09.2021. | |
// | |
import Foundation | |
import Dispatch |
This file contains hidden or 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
// | |
// Created by menangen on 04.09.2021. | |
// | |
import Foundation | |
print("Hello, World!") | |
let t = Task(priority: .background, operation: { return 2 } ) | |
let handle = Task { |
This file contains hidden or 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
function timeHandler(ok, bad) { | |
if (Math.random() > 0.5) | |
ok("Anna") | |
else | |
bad("Andre") | |
} | |
function | |
setUp(ok, bad) { | |
setTimeout(timeHandler, 1000, ok, bad) |
NewerOlder