Skip to content

Instantly share code, notes, and snippets.

View DrewWeth's full-sized avatar

Drew Wetherington DrewWeth

View GitHub Profile
fname = "numbers.txt"
with open(fname, "r") as f:
array = []
for line in f:
array.append(int(line.strip("\n")))
# print array
min = array[0]
Drews-MacBook-Pro-4:sqlite3 zizimaza$ node-gyp rebuild --target=0.36.7 --arch=x64 --target_platform=darwin --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-darwin-x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
XButton1::
CoordMode, Mouse, Screen
MouseGetPos, px, py
Click 1850, 292 right ; Click the right mouse button.
Mousemove, px,py, 1
Return
#p::Pause ; Pressing Win+P once will pause the script. Pressing it again will unpause.
; Arrow slot
XButton1::
CoordMode, Mouse, Screen
MouseGetPos, px, py
Click 1853, 328 right ; Click the right mouse button.
Mousemove, px,py, 1
Return
; Potions
XButton2::
@DrewWeth
DrewWeth / minecraft-server-standard-1gb.sh
Last active January 18, 2020 01:26
Starting a Minecraft Server
#!/bin/sh
# Based on: https://gist.github.com/niksudan/a3f90651f35203815f245d5d09ac6646
# This script uses tmux instead of screen because of prefer it.
# Update package manager and download java development kit.
apt-get update && apt-get install default-jdk
# Downloads Minecraft server 1.15.1
wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/4d1826eebac84847c71a77f9349cc22afd0cf0a1/server.jar
import React, {useState} from 'react';
import { Input, Icon } from 'semantic-ui-react'
export const FocusEditableInput = (props) => {
const [state, setState] = useState ({
hovering: false,
focused: false,
value: props.value || ""
})