- Convert between binary/decimal using two's complement and hex.
- Spot what's wrong with this code.
- LED Exercises (AND/OR/XOR/NAND)
- Functions with array parameters using the stack.
- Recursive functions.
- Reverse Polish Notation (who cares).
This file contains hidden or 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 __future__ import division | |
import sys | |
import cv2 | |
import contextlib | |
def main(num_keyframes, filepath): | |
print("Extracting {} keyframes from '{}'...".format(num_keyframes, filepath)) | |
with video_file(filepath) as video: |
This file contains hidden or 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
new Audio("http://hcmaslov.d-real.sci-nnov.ru/public/mp3/Beatles/11%20Yellow%20Submarine/The%20Beatles%20-%20Yellow%20Submarine%20-%2001%20Yellow%20Submarine.mp3").play();alert("done"); |
This file contains hidden or 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
INITIAL_DIRECTORY=$pwd | |
function write { | |
local block="################################################" | |
echo | |
echo $block | |
echo [$1] | |
echo $block | |
pause | |
} |
This file contains hidden or 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
Write a python program called p0.py that takes two positive integers and outputs their product. | |
Sample input: | |
1 | |
2 | |
Sample output: | |
2 | |
You can run it like this: |
This file contains hidden or 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
.586 | |
.model flat,stdcall | |
.stack 4096 | |
option casemap:none | |
include p:\masm32\include\windows.inc | |
include p:\masm32\include\kernel32.inc | |
include p:\masm32\include\user32.inc | |
include p:\masm32\include\msvcrt.inc | |
include p:\masm32\include\ca296.inc |