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
# git clone https://github.com/microsoft/fluentui-emoji.git | |
# change this to your project dir after clone | |
WORK_DIR="/home/ralxyz/Desktop/fluentui-emoji-main" | |
# replace all space in filename to '_' | |
find $WORK_DIR/assets -depth -name "* *" -execdir rename 's/ /_/g' "{}" \; | |
mkdir target |
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
import cyaron | |
f = open("input.txt", "w") | |
vertex = int(input("vertex num: ")) | |
edge = int(input("edge num: ")) | |
starting_point = int(input("starting vertex: ")) | |
graph = cyaron.Graph.graph(vertex, edge, weight_limit=(1, 100), self_loop=False, repeated_edges=False) |
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
import random | |
from numba import jit, cuda | |
import numpy as np | |
@jit | |
def calculate_probability(): | |
valid_count = 0 | |
iterations = 10000000 # 10M | |
for _ in range(0, iterations): |
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> | |
struct ListNode { | |
int data; | |
struct ListNode *next; | |
}; | |
struct ListNode *listCreat(); | |
void listPrint(struct ListNode *head ); |
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
// struct test already declared | |
const test test::operator++(int) { | |
test temp = *this; | |
this->a++; | |
return temp; | |
} | |
test& test::operator++() { | |
++this->a; | |
return *this; |