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
| pub struct ExtensionMeta { | |
| name: &'static str, | |
| version: [u8; 4] | |
| } | |
| macro_rules! metadata { | |
| ($metadata: ident) => { | |
| // Make sure that the given variable is of type ExtensionMeta | |
| const __PYRO_METADATA: ExtensionMeta = $metadata; |
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 Control.Monad (void) | |
| import Data.Map (Map, (!)) | |
| import qualified Data.Map as Map (fromList) | |
| import Text.ParserCombinators.Parsec | |
| import Text.Parsec.Error (messageString, errorMessages) | |
| import Text.Parsec.Token | |
| import Text.Parsec.Language | |
| import Text.Read (readEither) | |
| import System.Environment (getArgs) | |
| import System.IO (readFile) |
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 Control.Monad | |
| import Text.ParserCombinators.Parsec | |
| import System.Environment | |
| import System.IO | |
| infixr 5 !: | |
| (!:) :: [[a]] -> (Int, Int) -> a | |
| a !: (x, y) = a !! x !! y | |
| normalValue :: Parser String |
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
| void SubchunkBE::DeserializeBlocksAVX2(ByteStream& stream, int word_count, | |
| int bits_per_block, int block_count) noexcept | |
| { | |
| const int all_ones = 0xFFFFFFFF; | |
| int lower_zeros = all_ones << bits_per_block; | |
| int lower_ones = ~lower_zeros; | |
| __m256i _vec_shift = _mm256_set1_epi32(bits_per_block); | |
| __m256i _vec_lower_ones = _mm256_set1_epi32(lower_ones); | |
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(add_filepath_macro target) | |
| get_target_property(SOURCE_FILES ${target} SOURCES) | |
| foreach(FILE_PATH IN LISTS SOURCE_FILES) | |
| file(RELATIVE_PATH RELATIVE_FILE_PATH ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${FILE_PATH}) | |
| set_property(SOURCE ${FILE_PATH} APPEND PROPERTY COMPILE_DEFINITIONS FILEPATH="${RELATIVE_FILE_PATH}") | |
| endforeach() | |
| endfunction() | |
| add_filepath_macro(phoenix) |
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
| platform.apiLevel = '2.4' | |
| BOX9_WIDTH = platform.window:width() / 3 | |
| BOX9_HEIGHT = platform.window:height() / 3 | |
| BOX_WIDTH = platform.window:width() / 9 | |
| BOX_HEIGHT = platform.window:height() / 9 | |
| answers = {} | |
| selected = {0, 0} | |
| is_in_menu = true |
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 <stdlib.h> | |
| #include <limits.h> | |
| struct vector { | |
| int* data; | |
| size_t allocsize; | |
| size_t size; | |
| }; |
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 <stdlib.h> | |
| struct node { | |
| struct node* next; | |
| int data; | |
| }; | |
| struct list { | |
| struct node* head; |
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
| >+++++++++[->++++++++[-<<+>>]<]<.>+++++++[->++++[-<<+>>]<]<+.+++++++..+++.>++++++++++[->++++++++[-<<->>]<]<+.>+++++++++++[->+++++[-<<+>>]<]<.>++++++++[->+++[-<<+>>]<]<.+++.------.--------.>++++++++[->++++++++[-<<+>>]<]<---. |