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
    
  
  
    
  | import sys | |
| with open(sys.argv[1], "r") as f: | |
| contents = f.read() | |
| class Node(object): | |
| def __init__(self, value, position, forward=None, backward=None): | |
| self.forward = forward | |
| self.backward = backward | |
| self.value = value | 
  
    
      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
    
  
  
    
  | import time | |
| characters = "" | |
| started = False | |
| morseAlphabet = { | |
| "A": ".-", | |
| "B": "-...", | |
| "C": "-.-.", | |
| "D": "-..", | 
  
    
      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 maxelements(seq): | |
| m = max(seq) | |
| return [i for i, j in enumerate(seq) if j == m] | |
| f = open('homework.in', 'r') | |
| num = int(f.readline().strip()) | |
| nums = f.readline().strip().split(' ') | |
| nums = [int(x) for x in nums] | |
| f.close() | 
  
    
      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
    
  
  
    
  | 5 | 
  
    
      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
    
  
  
    
  | . | 
  
    
      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
    
  
  
    
  | echo "USAGE: rpi-netflix.sh workdirectory" | |
| echo "THIS ASSUMES YOU HAVE CHROMIUM!!!" | |
| echo "IF NOT, PRESS CTRL+C" | |
| sleep 5 | |
| wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh | |
| echo "YOU MUST HAVE ENOUGH FREE SPACE!!!" | |
| echo "14\n" | sudo WORKDIR=$1 ./linux_recovery.sh | |
| cd $1 | |
| sudo apt-get install kpartx | |
| sudo kpartx -avs chromeos*.bin | 
  
    
      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 bs4 import BeautifulSoup | |
| import urllib2 | |
| from subprocess import call | |
| import os | |
| package_name = "" | |
| def find_between( s, first, last ): | |
| try: | |
| start = s.index( first ) + len( first ) | |
| end = s.index( last, start ) | 
  
    
      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
    
  
  
    
  | import praw | |
| r = praw.Reddit("Most downvoted comment by /u/kusti8") | |
| r.login('####', "####", disable_warning=True) | |
| already_done = [] | |
| def most_downvoted(user_name): | 
  
    
      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
    
  
  
    
  | import urllib2 | |
| def find_between( s, first, last ): | |
| try: | |
| start = s.index( first ) + len( first ) | |
| end = s.index( last, start ) | |
| return s[start:end] | |
| except ValueError: | |
| return "" |