- insertion sort
 - selection sort
 - bubble sort
 - heap sort
 - Quick Sort - in place
 - Merge Sort
 - Binary Search
 
  
    
      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
    
  
  
    
  | ffmpeg -i video.mp4 -r 10 -s 640x360 -q:v 2 -vframes 25 frame%03d.jpg | |
| # -r = frames per second | |
| # -vframes = number of total frames to extract | |
| # -s = resolution (width x height) | |
| # -q:v = quality of extracted frames, 1 (highest) to 31 (lowest quality) | |
| # frame%03d.jpg = output path (i.e. frame000.jpg, frame001.jpg, ...) | 
  
    
      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
    
  
  
    
  | input_file=example.mkv | |
| output_file=example-nosound.mkv | |
| ffmpeg -i $input_file -c copy -an $output_file | 
  
    
      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
    
  
  
    
  | def sample_points_on_sphere(radius = 1, vres = 10, hres = 10): | |
| """ Sample points on a sphere that has the given radius. | |
| Args: | |
| - vres: vertical resolution, the amount of heights at which the sphere will | |
| be sampled, the vertical distances are sampled at even distances | |
| - hres: horizontal resolution, same as vres but horizontally | |
| """ | |
| def sample(r, theta, phi): | |
| x = r * np.sin(theta) * np.cos(phi) | |
| y = r * np.sin(theta) * np.sin(phi) | 
  
    
      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
    
  
  
    
  | // 0.809017 = (1.0f + sqrt(5.0f)) / 2 / 2 (half the length of the golden rectangle) | |
| vertices: | |
| (-0.809017, 0, 0.5) | |
| (-0.809017, 0, -0.5) | |
| (0.809017, 0, -0.5) | |
| (0.809017, 0, 0.5) | |
| (-0.5, 0.809017, 0) | |
| (0.5, 0.809017, 0) | |
| (0.5, -0.809017, 0) | |
| (-0.5, -0.809017, 0) |