Skip to content

Instantly share code, notes, and snippets.

View shonenada's full-sized avatar
🤷‍♂️
Focusing

Yaoda Liu shonenada

🤷‍♂️
Focusing
View GitHub Profile
from PIL import Image
def binary(filename):
image = Image.open(filename)
# Convert to Gray mode
image = image.convert('L')
#-*- coding: utf-8 -*-
from PIL import Image
MAX_LEN = 100.0
FIX_RATE = 1.8
REPLACEMENT = 'MNHQ$OC?7>!:-;. '
def convert(filename):
#include <stdio.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_vector_double.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_cblas.h>
#include <gsl/gsl_eigen.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_sort_vector.h>
#include <gsl/gsl_sf.h>
import os
import sys
import comtypes.client
def main():
in_file = os.path.abspath(sys.argv[1])
out_file = os.path.abspath("%s.pdf" % sys.argv[1])
try:
powerpoint_application = comtypes.client.CreateObject('Powerpoint.Application')
import os
import sys
import comtypes.client
def main():
in_file = os.path.abspath(sys.argv[1])
out_file = os.path.abspath("%s.pdf" % sys.argv[1])
try:
word_application = comtypes.client.CreateObject('Word.Application')
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <time.h>
#define ret printf("\n")
#define spa printf(" ")
#define hli printf("-")
#define vli printf(" |")
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <time.h>
#define getpch(type) (type*)malloc(sizeof(type))
typedef struct pcb PCB;
#include <stdio.h>
#define PI 3.1415926535898
#define sqrt2 1.41421356237
double fabs(double input){
return input > 0 ? input : (-input);
}
#include <unistd.h>
#include <stdarg.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
// 定义最大子进程数量
#define MAX_PROCESS_NUM 100
#include <unistd.h>
#include <stdarg.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
pid_t create_process(void(*ptr) ());