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> | |
| unsigned int read_int(); | |
| /** | |
| * 1 - 3 + 5 - 7 + 9 - 11 + 13 ... n | |
| * Calculate total of the operation above. | |
| */ | |
| int main(int argc, char **argv) | |
| { |
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
| listCase() { | |
| // List<dynamic> | |
| List randomList = [ | |
| "There is a phrase", | |
| 234, | |
| 2.0094, | |
| ["Another random list", 98, 0x04] | |
| ]; | |
| // List<Object> - In this case, we use String object. |
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
| <?php | |
| declare(strict_types=1); | |
| function string2hex(string $letter) : string { | |
| $retVal = []; | |
| for ($i = 0; $i < strlen($letter); ++$i) { | |
| $retVal[$i] = dechex(ord($letter[$i])); | |
| } |
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
| <?php | |
| declare(strict_types=1); | |
| class Car { | |
| private $brandName = ""; | |
| private $doorsCount = 0; | |
| private $fuelType = ""; |
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> | |
| typedef struct Node_t Node; | |
| typedef struct LinkedList_t LinkedList; | |
| struct Node_t | |
| { | |
| int value; | |
| Node* next; |
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
| <build> | |
| <plugins> | |
| <plugin> | |
| <!-- Jar builder plugin. --> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>3.1.2</version> | |
| <configuration> | |
| <archive> | |
| <manifest> |
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 <SDL2/SDL.h> | |
| int throw_sdl_err(const char* fmt) | |
| { | |
| SDL_LogError( | |
| SDL_LOG_CATEGORY_APPLICATION, | |
| fmt, | |
| SDL_GetError() | |
| ); | |
| return 3; // constant error code. |
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
| ## | |
| ## Arch Linux repository mirrorlist | |
| ## Filtered by mirror score from mirror status page | |
| ## Generated on 2019-07-01 | |
| ## | |
| ## Indonesia | |
| Server = http://suro.ubaya.ac.id/archlinux/$repo/os/$arch | |
| Server = http://mirror.poliwangi.ac.id/archlinux/$repo/os/$arch |
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> | |
| void _d(char val[], char identifier) | |
| { | |
| for (int i = 0; val[i] >= 0; ++i) { | |
| printf("[#%c] val[%d]: (%c) -> %d;\n", identifier, i, val[i], val[i]); | |
| } | |
| } | |
| int main(int argc, char **argv) |
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> | |
| typedef struct { | |
| // let this variable to store maximum 8-bit of value, that means this value ONLY accept any value from 0 to 255. | |
| // if the value given is more than 255, so the program would capping its value. | |
| unsigned char user_length:8; | |
| } dat_t; | |
| int main() | |
| { |