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> | |
void print_sizeof(char* ptr) { | |
printf("The passed variable is %u bytes large\n", (unsigned int)sizeof(ptr)); | |
} | |
int main() { | |
char arr[] = "Hello World!"; | |
char* ptr = "Hello World!"; |
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
gcc main.c -o hello | |
./hello |
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
set nocompatible " Fix arrow keys | |
set backspace=2 " Use normal backspace behaviour |
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> | |
int main() { | |
printf("Hello World!\n"); | |
return 0; | |
} |
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> | |
int main() { | |
int x, y; | |
printf("Enter a number: "); | |
scanf("%d", &x); | |
printf("Enter another number: "); | |
scanf("%d", &y); | |
printf("The sum of %d and %d is %d", x, y, x + y); | |
return 0; |
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> | |
int main() { | |
char hello[] = "Hello World!"; | |
int i; | |
for (i = 0; i < 13; ++i) { | |
printf("%c = %d\n", hello[i], (int)hello[i]); | |
} | |
return 0; | |
} |
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
var argon2 = require('argon2'); | |
var pass = "password"; | |
var salt = argon2.generateSaltSync(); | |
var hash = argon2.encryptSync(pass, salt, { | |
timeCost: 3, memoryCost: 12, parallelism: 1 | |
}); | |
console.log(pass); | |
console.log(hash); |
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
var argon2 = require('argon2'); | |
var pass = "password"; | |
var salt = argon2.generateSaltSync(); | |
var hash = argon2.encryptSync(pass, salt, { | |
timeCost: 3, memoryCost: 12, parallelism: 1 | |
}); | |
console.log(pass); | |
console.log(hash); |
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
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "intel" | |
Option "DRI" "3" | |
EndSection |
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
incognito@localhost:~/ws/3rdparty/vulkan/VulkanSDK/1.0.3.1/examples/build$ ./cube | |
WARNING: Haswell Vulkan support is incomplete | |
anv_device.c:407: FINISHME: Get correct values for VkPhysicalDeviceLimits | |
gen7_pipeline.c:326: FINISHME: disabling ps | |
gen7_pipeline.c:326: FINISHME: disabling ps | |
gen7_pipeline.c:326: FINISHME: disabling ps | |
gen7_pipeline.c:235: FINISHME: VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO | |
gen7_pipeline.c:235: FINISHME: VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO | |
gen7_pipeline.c:235: FINISHME: VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO | |
gen7_pipeline.c:235: FINISHME: VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO |