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
docker swarm join \ | |
--token SWMTKN-1-621ib4l42g58v0caikrtg23hhpbj5wf35tzoph5j3gnf2n8x3m-7z5ezybmu3e12i1miy6kkzcjd \ | |
192.168.1.39:2377 |
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 <stdarg.h> | |
enum E /* : int */ { | |
one | |
}; | |
void f(enum E e, ...) { | |
va_list list; | |
va_start(list, e); | |
va_end(list); |
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 "llvm/Analysis/Passes.h" | |
#include "llvm/ExecutionEngine/ExecutionEngine.h" | |
#include "llvm/ExecutionEngine/MCJIT.h" | |
#include "llvm/ExecutionEngine/SectionMemoryManager.h" | |
#include "llvm/IR/DataLayout.h" | |
#include "llvm/IR/DerivedTypes.h" | |
#include "llvm/IR/IRBuilder.h" | |
#include "llvm/IR/LLVMContext.h" | |
#include "llvm/IR/Module.h" | |
#include "llvm/IR/Verifier.h" |
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
The generated expression is: | |
x x -92.2377 x inv - ^ x -34.9367 ^ -53.6051 + neg neg -59.9354 + x abs -93.1926 5.33465 + cos x inv sqrt * x x - -64.255 sin sqrt + * abs sqrt inv sin x -59.5055 + + inv neg x x ^ ^ -28.5652 -83.1926 - x neg -75.0351 35.8105 + abs x - x + inv sqrt - inv x x * x x 46.262 ^ x - inv -23.7232 abs -20.0237 sin + sqrt -17.4068 abs * * + sqrt + + neg + 23.2486 sin x abs -50.7365 * neg ^ x cos sin ^ ^ - * -67.5583 + -91.428 - 33.7192 ^ sqrt -57.6454 * 99.3374 83.8863 x x * neg * ^ - + -76.1303 cos sin + cos -18.6552 x x inv sqrt - cos inv 83.8093 abs ^ + x x 60.2191 sqrt x cos 64.9359 neg + ^ -89.1284 -47.2417 37.57 70.0226 x abs 17.7244 - * + x x sin inv ^ + sqrt x 67.5474 sin + abs x -18.419 inv * abs abs 64.8939 x abs inv 88.9673 x abs ^ + ^ - abs - abs inv - sqrt abs x cos + + ^ x sin ^ sin inv ^ - ^ x inv -5.14284 38.896 x x 98.8533 + sqrt sin x - -19.9279 + - x inv * x 19.4499 inv abs x ^ sqrt -57.9877 neg sqrt + x * -93.6665 sqrt - cos sqrt ^ cos -68.7527 * + - x ^ -62.9158 * + ne |
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> | |
char *names[] = { "spock", "scissors", "paper", "rock", "lizard" }; | |
int result(int a, int b) { | |
return a == b ? 0 : ( 5 - a + b ) % 5 % 2 * 2 - 1; | |
} | |
int main() { | |
for (int i = 0; i < 5; ++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
#include <stdlib.h> | |
#define SIZE 4096 | |
int main() | |
{ | |
int *ptr = (int *)malloc(SIZE * SIZE * sizeof(int)); | |
for (int x = 0; x < SIZE; ++x) | |
{ |
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
using System; | |
namespace dlgt | |
{ | |
delegate void LoggerDelegate(int a, int b, int p); | |
class DataHandler | |
{ | |
public void DoOperation (int a, int b, LoggerDelegate d) | |
{ |