Skip to content

Instantly share code, notes, and snippets.

Eric Yang erictt

Block or report user

Report or block erictt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
erictt /
Last active Oct 19, 2018
Quick Sort & Merge Sort with Python 3
def quicksort(items):
if len(items) <= 1:
return items
pivot = items.pop()
leftItems = []
rightItems = []
for i in items:
if i <= pivot:
View QuickSort.c
#include <stdio.h>
void myQuickSort(int arr[], int size, int low, int high);
void swapItem(int arr[], int i, int j);
void printarr(int arr[], int length);
int main(void)
int arr[] = { 1, 4, 5, 4, 1, 8, 9, 3, 12, 10, 9, 10};
int length = 12;
View MergeSort.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void myMergeSort(int arr[], int size);
void printarr(int arr[], int length);
void mergeBothSide(int arr[], int leftarr[], int rightarr[], int halfLen, int rightHalfLen);
int main(void)
View anki-card-style-for-confused-words.html
<!-- front -->
<h1 class="R">Recite</h1>
<div class="front">
<div class="word-line">
<span class="word">{{单词1}}</span><br/>
<span class="PhoneticSymbol">{{音标1}}</span><br/>
<span class="POSR">{{发音1}}</span>
erictt / anki-card-style-for-confused-words.css
Last active Jan 19, 2017
Anki Card Style for confused words(CSS)
View anki-card-style-for-confused-words.css
.card {
font-size: 16px;
text-align: center;
color: #32517d;
line-height: 15px;
h1 {
font-family: times;
font-size: 18px;
erictt / layout.kbd.json
Last active Apr 11, 2017
Untitled Keyboard Layout
View layout.kbd.json
erictt / layout.kbd.json
Last active May 6, 2018
Untitled Keyboard Layout
View layout.kbd.json
You can’t perform that action at this time.