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
// Example program | |
#include <iostream> | |
#include <cmath> | |
#include <chrono> | |
int main() | |
{ | |
float test; |
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
// Example program | |
#include <iostream> | |
#include <cmath> | |
#include <ctime> | |
#define SIZE 3 | |
int parker[SIZE][SIZE]; | |
int sumsY[SIZE]; |
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
// Example program | |
#include <iostream> | |
#include <string> | |
#include <cmath> | |
char buf[32][32]; | |
void clearBuf() | |
{ | |
for (int i = 0; i < 32; 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
/* | |
Author: ishidex2 | |
License: MIT | |
*/ | |
class URLUtils | |
{ | |
static isObj(a):boolean | |
{ | |
if ((!!a) && (a.constructor === Object)) | |
{ |
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
// Example program | |
#include <iostream> | |
#include <string> | |
template <class T> | |
class Array | |
{ | |
private: | |
T *arr0 = new T(); | |
T *arr1 = new T(); |
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
// Example program | |
#include <iostream> | |
#include <string> | |
template <class T> | |
class Array | |
{ | |
private: | |
T *arr0 = new T(); | |
T *arr1 = new T(); |
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
int field[9][9]; | |
bool checkInRow(int number, int row) | |
{ | |
for (int i = 0; i < 9; i++) | |
{ | |
if (field[row][i] == number) | |
return true; | |
} |
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
{"air":{"id":0,"var":"NIL"},"stone":{"id":1,"var":6},"grass":{"id":2,"var":"NIL"},"dirt":{"id":3,"var":2},"cobblestone":{"id":4,"var":"NIL"},"planks":{"id":5,"var":5},"sapling":{"id":6,"var":5},"bedrock":{"id":7,"var":"NIL"},"flowing_water":{"id":8,"var":"NIL"},"water":{"id":9,"var":"NIL"},"flowing_lava":{"id":10,"var":"NIL"},"lava":{"id":11,"var":"NIL"},"sand":{"id":12,"var":1},"gravel":{"id":13,"var":"NIL"},"gold_ore":{"id":14,"var":"NIL"},"iron_ore":{"id":15,"var":"NIL"},"coal_ore":{"id":16,"var":"NIL"},"log":{"id":17,"var":3},"leaves":{"id":18,"var":3},"sponge":{"id":19,"var":1},"glass":{"id":20,"var":"NIL"},"lapis_ore":{"id":21,"var":"NIL"},"lapis_block":{"id":22,"var":"NIL"},"dispenser":{"id":23,"var":"NIL"},"sandstone":{"id":24,"var":2},"noteblock":{"id":25,"var":"NIL"},"bed":{"id":355,"var":"NIL"},"golden_rail":{"id":27,"var":"NIL"},"detector_rail":{"id":28,"var":"NIL"},"sticky_piston":{"id":29,"var":"NIL"},"web":{"id":30,"var":"NIL"},"tallgrass":{"id":31,"var":2},"deadbush":{"id":32,"var":"NIL"},"pis |
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> | |
static void sayhi(char *text) | |
{ | |
printf("hi, %s", text); | |
} | |
struct { | |
void (*sayhi)(char*); | |
} __MODULE_ANOTHER_MODULE_C = {&sayhi}; |
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
#define VGA_SCR_WIDTH 80 | |
#define VGA_SCR_HEIGHT 25 | |
short* VGA_PTR = (short*)0xb8000; | |
void printvmem(const char* str, char color, short offset) | |
{ | |
int i = 0; | |
while(str[i] != 0) | |
{ |
OlderNewer