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
| #pragma once | |
| #include <variant> | |
| #include <string> | |
| #include <vector> | |
| #include <unordered_map> | |
| namespace json { | |
| inline std::string util_replace(std::string haystack, const std::string_view& needle, const std::string_view& replaced_data) { |
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
| #ifndef CONCURRENCY_EXPERIMENT_QUEUE_H | |
| #define CONCURRENCY_EXPERIMENT_QUEUE_H | |
| #include <vector> | |
| #include <atomic> | |
| #include <optional> | |
| struct queue_idx { | |
| union { | |
| uint64_t compound; | |
| struct { |
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 <thread> | |
| #include <vector> | |
| #include <atomic> | |
| #include <memory> | |
| #include <iostream> | |
| #include <sstream> | |
| template<typename T> | |
| struct Concurrent_Queue_t { | |
| protected: |
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
| Task<Boolean> maintask = new Task<Boolean>(myContext) { | |
| int internalState = 0; | |
| @Override | |
| public AwaitableState work() { | |
| switch(internalState){ | |
| case 0: | |
| return Work0(); | |
| case 1: | |
| return Work1(); |
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
| #!/bin/bash | |
| gcc main.c -o main | |
| for i in {0..3} | |
| do | |
| if [ $("cat input${i}.txt | ./main") != $("cat output${i}.txt") ] then | |
| echo "Error for file: ${i}\n" | |
| exit | |
| fi |
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
| .\ffprobe.exe : ffprobe version 4.0.2 Copyright (c) 2007-2018 the FFmpeg developers | |
| At line:1 char:1 | |
| + .\ffprobe.exe .\bbb_30mb_720p.mp4 2> ffprobe_bbb.txt | |
| + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| + CategoryInfo : NotSpecified: (ffprobe version...mpeg developers:String) [], RemoteException | |
| + FullyQualifiedErrorId : NativeCommandError | |
| built with gcc 7.3.1 (GCC) 20180722 | |
| configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass | |
| --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.Serialization; | |
| using System.Text; | |
| namespace libdiscordovr.Discord.ResponseTypes | |
| { | |
| [DataContract] | |
| public class Channel | |
| { |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Runtime.Serialization; | |
| using System.Net; | |
| using System.Threading.Tasks; | |
| using System.IO; | |
| using System.Runtime.Serialization.Json; |
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
| import java.util.*; | |
| public class Sommatore{ | |
| public class Somma{ | |
| public int a, b, result; | |
| public Somma(int a, int b){ | |
| this.a = a; | |
| this.b = b; | |
| result = 0; |