kubernetes-cli
(v1.10.3) taken as example
- Downgrade Homebrew to the commit which upgrades the formula to the specific version that we want
$ cd "$(brew --repo homebrew/core)"
$ git log Formula/kubernetes-cli.rb
...
import socket | |
import time | |
server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
# Enable broadcasting mode | |
server.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) | |
server.settimeout(0.2) |
import cv2 | |
import numpy as np | |
from datetime import datetime | |
# datetime object containing current date and time | |
now = datetime.now() | |
dt_string = now.strftime("%d-%m-%Y_%H_%M_%S") | |
print("date and time =", dt_string) |
class ThreadedCamera(object): | |
def __init__(self, src=0): | |
self.capture = cv2.VideoCapture(src) | |
self.capture.set(cv2.CAP_PROP_BUFFERSIZE, 2) | |
# FPS = 1/X | |
# X = desired FPS | |
self.FPS = 1/30 | |
self.FPS_MS = int(self.FPS * 1000) |
#!/bin/bash | |
## This gist contains instructions about cuda v11.2 and cudnn 8.1 installation in Ubuntu 18.04 for PyTorch | |
############################################################################################# | |
##### forked by : https://gist.github.com/Mahedi-61/2a2f1579d4271717d421065168ce6a73 ######## | |
############################################################################################# | |
### steps #### | |
# verify the system has a cuda-capable gpu |
The Insane Techie
May 7, 2020 ROS • python kinetic • melodic • robotics • python • ROS • python
ROS (Robot Operating System) - Documentation - http://wiki.ros.org/
import cv2 as cv | |
import numpy as np | |
import math | |
#saved | |
low_H_set = 0 | |
high_H_set = 25 | |
low_S_set = 32 | |
high_S_set = 255 | |
low_V_set = 197 |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Diagnostics; |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Diagnostics; | |
using System.Net; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace CurrencyExchange |