If .DS_Store was never added to your git repository, simply add it to your .gitignore file.
.gitignore
In your the root directory of your app and simply write
| import requests | |
| import base64 | |
| from tqdm import tqdm | |
| master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
| base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
| resp = requests.get(master_json_url) | |
| content = resp.json() |
| adb shell dumpsys battery | grep level |
| <div id="swipezone"> | |
| Swipe me | |
| </div> | |
| // credit: http://www.javascriptkit.com/javatutors/touchevents2.shtml | |
| function swipedetect(el, callback){ | |
| var touchsurface = el, | |
| swipedir, | |
| startX, |
| -- | |
| -- Created by IntelliJ IDEA. | |
| -- User: Juraji | |
| -- Date: 25-1-2018 | |
| -- Time: 19:51 | |
| -- | |
| -- Binds to a text source and shows the current time in 24h format | |
| -- appended with the current timezone designation. | |
| -- The timezone designations for both dst and non-dst can be changed | |
| -- by updating the dst_ variables below |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>ACE Editor: submit, beautify and minify</title> | |
| <style type="text/css" media="screen"> | |
| #ace_js, #ace_css { | |
| width: 95%; | |
| height: 15em; | |
| border: 1px solid silver; |
| cd $HOME | |
| FileName='go1.13.4.linux-armv6l.tar.gz' | |
| wget https://dl.google.com/go/$FileName | |
| sudo tar -C /usr/local -xvf $FileName | |
| cat >> ~/.bashrc << 'EOF' | |
| export GOPATH=$HOME/go | |
| export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin | |
| EOF | |
| source ~/.bashrc |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| import os | |
| # function to take care of downloading file | |
| def enable_download_headless(browser,download_dir): | |
| browser.command_executor._commands["send_command"] = ("POST", '/session/$sessionId/chromium/send_command') | |
| params = {'cmd':'Page.setDownloadBehavior', 'params': {'behavior': 'allow', 'downloadPath': download_dir}} | |
| browser.execute("send_command", params) |
| #!/usr/bin/env python3 | |
| import sys, os, socket | |
| from socketserver import ThreadingMixIn | |
| from http.server import SimpleHTTPRequestHandler, HTTPServer | |
| HOST = socket.gethostname() | |
| class ThreadingSimpleServer(ThreadingMixIn, HTTPServer): | |
| pass |
| #!/usr/bin/osascript -l JavaScript | |
| // ^^^^ COMMENT/REMOVE THIS SHEBANG IF RUNNING FROM SCRIPT EDITOR!!!!! ^^^^^^^^^^^ | |
| // The SHEBANG is only needed if the file is executable and is run from a terminal with `./RsyncBackup.js` | |
| // 1. In MacOS Spotlight type 'Script Editor' and paste the code below | |
| // 2. Click the top-left dropdown which says 'AppleScript' and select 'JavaScript' | |
| // 3. Under menu File pick Export | |
| // 4. In the Export dialog select File Format = Application | |
| // 5. Save the app in /Applications |