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
| set previousVolume to output volume of (get volume settings) | |
| set volume output volume 80 | |
| do shell script "afplay " & "~/inception.mp3" | |
| set volume output volume previousVolume |
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
| #!/usr/bin/python | |
| import os | |
| import urllib2 | |
| import json | |
| import sys | |
| import time | |
| import subprocess | |
| from subprocess import call |
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 random | |
| num_people = 100 | |
| num_trials = 10000 | |
| for personCount in range(2,num_people+1): | |
| trial_success = 0 | |
| for trialCount in range(0, num_trials): | |
| birthdays = [] | |
| for person in range(0, personCount): |
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 socket | |
| import sys | |
| HOST = '0.0.0.0' # Symbolic name meaning the local host | |
| PORT = int(sys.argv[1]) # Arbitrary non-privileged port | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.bind((HOST, PORT)) | |
| s.listen(1) |
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
| According to all known laws of aviation, there is no way a bee should be able to fly. | |
| Its wings are too small to get its fat little body off the ground. | |
| The bee, of course, flies anyway because bees don't care what humans think is impossible. | |
| Yellow, black. Yellow, black. Yellow, black. Yellow, black. | |
| Ooh, black and yellow! | |
| Let's shake it up a little. | |
| Barry! Breakfast is ready! | |
| Coming! | |
| Hang on a second. | |
| Hello? |
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
| #!/usr/bin/python | |
| import re | |
| with open('script', 'r') as scriptfile: | |
| script=scriptfile.read() | |
| bottles = [] | |
| currentString = "" | |
| for c in script: |
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
| rm -r backups/* | |
| mysqldump -u root --password <PASSWORD_HERE> --all-databases > backups/backup-$(date -d "today" +"%Y-%m-%d-%H%M").sql | |
| gsutil cp backups/* gs://<BUCKET HERE> |