References: * A different version https://gist.github.com/revolunet/537a3448cff850231a74 * Javascript: https://developer.mozilla.org/en-US/docs/Web/JavaScript * Python: https://docs.python.org/3/index.html
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
test |
Python syntax here : 3.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
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
Lesson 1 SUMMARY | |
1. The cursor is moved using either the arrow keys or the hjkl keys. | |
h (left) j (down) k (up) l (right) | |
2. To start Vim from the shell prompt type: vim FILENAME <ENTER> | |
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes. | |
OR type: <ESC> :wq <ENTER> to save the changes. |
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
\begin{align*} | |
\frac{dL}{dz^{[1]}} = & \frac{dL}{da^{[1]}} \times \frac{da^{[1]}}{dz^{[1]}} \\ | |
& = \frac{dz^{[2]}}{da^{[1]}} \frac{dL}{dz^{[2]}} \times \frac{da^{[1]}}{dz^{[1]}} \\ | |
& = \frac{d(W^{[2]}{^T}a^{[1]})}{d a^{[1]}} {\bf dz^{[2]}} \times \frac{da^{[1]}}{dz^{[1]}} \\ | |
& = W^{[2]}{^T} {\bf dz^{[2]}} \times \frac{da^{[1]}}{dz^{[1]}} \\ | |
& = \frac{W^{[2]}{^T}}{dz^{[2]}} \times \frac{d}{dz^{[1]}}g^{[1]}(z^{[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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.js"></script> | |
<script type="text/javascript" | |
src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython.js"> | |
</script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.10/brython.min.js" integrity="sha512-vaUMOYK2BF2hTTOXyvh7IoMaY6dDi7WkcywhsyX7XmASXxyZITWmsNK08VVQQwLrcsyGVXsypUNL/rbCeCpyLw==" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.10/brython_stdlib.min.js" integrity="sha512-CRKDjWdmHDkAJF/3fn4TFNRQkMybzRW41h92BUXM/n4bRMkOpfoO9t7saEw7BN/JstEu9LmYn0tTku+wY6jixw==" crossorigin="anonymous"></script> |
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
from PIL import ( | |
Image, | |
ImageDraw, | |
ImageFont, | |
) | |
#SIZE = (100, 100) | |
base = Image.open('images/lena.png').convert('RGBA') | |
text = Image.new('RGBA', base.size, (255, 255, 255, 0)) | |
# Chinese Fonts |
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
def num_buses(n): | |
""" (int) -> int | |
Precondition: n >= 0 | |
Return the minimum number of buses required to transport n people. | |
Each bus can hold 50 people. | |
>>> num_buses(75) | |
2 |
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
__author__ = 'Jeremy Chen' | |
def merge_sort(unsorted): | |
sorted_ = [] | |
length = len(unsorted) | |
if length == 1: | |
sorted_ = unsorted |
The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.
- ⌘ : Command
NewerOlder