- Do I have one?
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 <stdlib.h> | |
#include <stdio.h> | |
#include <immintrin.h> | |
const static __m256i SEED_MUL = _mm256_set1_epi32(214013); | |
const static __m256i SEED_ADDI = _mm256_set1_epi32(2531011); | |
const static __m256i SEED_MASK = _mm256_set1_epi32(0x3F800000); | |
const static __m256 FLOAT_1 = _mm256_set1_ps(1.f); | |
const static __m256i INT32_1 = _mm256_set1_epi32(1); |
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 <cstdio> | |
#include <nvml.h> | |
#pragma comment(lib, "nvml") | |
int main(int argc, char* argv[]) | |
{ | |
nvmlReturn_t result; | |
unsigned int device_count; |
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
[bits 16] | |
org 07c00h | |
mov ax, cs | |
mov ds, ax | |
mov es, ax | |
call check_a20 | |
test ax, ax |
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
#!/bin/bash | |
src=$1 | |
des=$2 | |
width=$3 | |
height=$4 | |
watermark=$5 | |
if [ `identify -format "%n" ${src}` -eq 1 ] | |
then | |
convert ${src} -resize ${width}x${height} ${des} |
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> | |
#include <openssl/pem.h> | |
#include <openssl/rsa.h> | |
void verifyRSASignature(unsigned char *originalMessage, unsigned int om_length, | |
unsigned char *signature, unsigned siglen) | |
{ | |
int result; | |
FILE *file; |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <gnutls/gnutls.h> | |
#include <gnutls/x509.h> | |
int main(void) | |
{ | |
FILE *fl; |
NewerOlder