Skip to content

Instantly share code, notes, and snippets.

View riodw's full-sized avatar

Rio Weber riodw

View GitHub Profile
# keys.py
# Code by Daniel Kukiela (https://twitter.com/daniel_kukiela)
import ctypes
from threading import Thread
from time import time, sleep
from queue import Queue
# main keys class
# Done by Frannecklp
import cv2
import numpy as np
import win32gui, win32ui, win32con, win32api
def grab_screen(region=None):
hwin = win32gui.GetDesktopWindow()
# vehicle_detector.py
# https://pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/
# # Object Detection Demo
# License: Apache License 2.0 (https://github.com/tensorflow/models/blob/master/LICENSE)
# source: https://github.com/tensorflow/models
# https://gpuopen.com/rocm-tensorflow-1-8-release/
# py -m pip install Cython contextlib2 pillow lxml jupyter matplotlib
# http://www.mingw.org/wiki/Getting_Started
[
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
/*
Apple Colors
https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/
*/
/* Blue */
.text-blue {
color: rgb(10, 132, 255);
}
.bg-blue {
background-color: rgb(10, 132, 255);
var keyPairs = [];
var params = window.location.search.substring(1).split('&');
for (var i = params.length - 1; i >= 0; i--) {
keyPairs.push(params[i].split('='));
};
@riodw
riodw / MongoDB-UserCollection-Data-Change_Send-Change-SocketIO.js
Created February 7, 2018 19:20
Notify socket.io users when MongoDB data collection changes
/* MongoDB-UserCollection-Data-Change_Send-Change-SocketIO.js */
'use strict'
module.exports = function (
app,
io,
User // Collection Name
) {
// SET WATCH ON COLLECTION
const changeStream = User.watch();
@riodw
riodw / Mongodb_Data_Change.md
Last active September 20, 2020 12:53
How to listen for changes to a MongoDB collection?
"""Softmax."""
scores = [3.0, 1.0, 0.2]
import numpy as np
def softmax(x):
"""Compute softmax values for each sets of scores in x."""
pass # TODO: Compute and return softmax(x)
return np.exp(x) / np.sum(np.exp(x), axis=0)
@riodw
riodw / deploy.php
Last active May 8, 2023 08:54
Deploy to Production Server with git using PHP
<?php
/**
* GIT DEPLOYMENT SCRIPT
*
*/
// The commands
$commands = array(
'echo $PWD',
'whoami',
'git reset --hard HEAD',