First things first !
sudo apt update
sudo apt upgradesudo apt-get install build-essential git| function optionalAccess(obj, path, def) { | |
| const propNames = path.replace(/\]|\)/, "").split(/\.|\[|\(/); | |
| return propNames.reduce((acc, prop) => acc[prop] || def, obj); | |
| } | |
| function proxyOptional(obj, evalFunc, def) { | |
| const handler = { | |
| get: function(target, prop, receiver) { | |
| const res = Reflect.get(...arguments); |
While there are examples of Python-based apps in mobile App stores, the knowledge of how to actually create a mobile app in Python hasn't been well documented, or simplified for mass use - until now.
In this talk, Dr Russell Keith-Magee will demonstrate a collection of tools from the BeeWare Project that enable you to build a cross-platform mobile app using Python in a matter of minutes.
| import pyautogui, time, sys, os, win32api, win32gui, win32con, datetime, pyHook, pythoncom | |
| from optparse import OptionParser | |
| ''' | |
| Python Automated Actions Script by Ian Mckay | |
| Version 0.1 - 20151217 | |
| ''' | |
| pyautogui.PAUSE = 0 | |
| pyautogui.FAILSAFE = True |
| (function() { | |
| "use strict"; | |
| var Foxx = require("org/arangodb/foxx"), | |
| controller = new Foxx.Controller(applicationContext), | |
| _ = require("underscore"), // loading underscore.js in C:\Program Files\ArangoDB 2.2.4\share\arangodb\js\node\node_modules | |
| moment = require("moment"); // loading moment.js in C:\Program Files\ArangoDB 2.2.4\share\arangodb\js\node\node_modules | |
| controller.get("/hello/:name", function(req, res) { | |
| res.set("Content-Type", "text/plain"); |
###SSH into a remote machine###
ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| /* Groovy Usage: | |
| The following example replaces: | |
| the 1st occurrence of "James" in data.txt with "user1", | |
| the 2nd occurrence of "James" in data.txt with "user2", | |
| the 3rd occurrence of "James" in data.txt with "user3", | |
| .. | |
| the 9th occurrence of "James" in data.txt with "user9". | |
| */ | |
| def myFile = new File("data.txt") |