Skip to content

Instantly share code, notes, and snippets.

View zzj0402's full-sized avatar

张梓径 zzj0402

  • University of Waikato
  • Hamilton, New Zealand
View GitHub Profile
@zzj0402
zzj0402 / figure.tex
Last active July 20, 2021 04:11
Figure Snippet in LaTeX
\begin{figure}[H]
\centering
\includegraphics[scale=0.36]{}
\caption{}
\label{fig:}
\end{figure}
@zzj0402
zzj0402 / imageIO.py
Created May 7, 2019 00:26
Open and store images with base64 encoding
import base64
with open("D:\\cyber-security\\Assignment3\\t.png", "rb") as imageFile:
str = base64.b64encode(imageFile.read())
print(str)
fh = open("D:\\cyber-security\\Assignment3\\s.png", "wb")
decoded = base64.b64decode(str)
fh.write(decoded)
fh.close()
@zzj0402
zzj0402 / VocabularyTemplate.md
Created April 29, 2019 00:35
Vocabulary Template
  1. Use Cases
  2. Etymology
  3. Pronunciation
  4. Meaning
@zzj0402
zzj0402 / dine.md
Last active December 29, 2018 04:47
Dine

prepare

dine

cleanup

@zzj0402
zzj0402 / TechnologyOfficer.md
Created December 27, 2018 11:17
Technology Officer

Definition
Rewards
Requirements

@zzj0402
zzj0402 / mochaTest
Created December 15, 2018 11:44
JS Mocha Test Case Tempate
const request = require('supertest');
const grid = require('../');
describe('', () => {
const test = ()
it('.', () => {
});
});
@zzj0402
zzj0402 / LogTemplate
Created December 13, 2018 12:34
Log Template
Collaborator (String)
Date time(Windows: echo %date% %time% | clip )
Cycle Number for the Twilight(Dawn #/Dusk #)
#Dispatch
#Reward
Item
#Task1
#Task2
#Task3
#Task4
@zzj0402
zzj0402 / Constitution Template
Created July 5, 2018 11:12
Constitution Template
Constitution
1 NAME
We shall be called XX (the Group, XX).
2 AIMS AND OBJECTIVES
We are a non-profit membership organization and aim to promote deep learning study, socialization and resource-sharing.
3 VALUES
3.1 KNOWLEDGE-ORIENTED
We would produce knowledge base, in forms of Anki cards.
3.2 REFERENCED DEBATE
Reference.
@zzj0402
zzj0402 / QuestionTemplate.md
Created June 2, 2018 07:13
Question Template
  1. Prerequisites
  2. Brainstorming
  3. Criticizing
  4. Implementation
  5. Peer-review
  6. Revision
  7. Memorization
@zzj0402
zzj0402 / postBehaviorCorrection.md
Created May 10, 2018 03:19
Post behavior correction template

Steps

Thank them for contributing to the discussion

Gently explain why what they did might negatively affect other learners or themselves

(If applicable) mention and explain any edits you made to their original post

Express some positive sentiment or encouragement