echo -e '*1\r\n$4\r\nPING\r\n' | nc redis.host.com 6379
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
a = [] | |
cap = cv2.VideoCapture('clip.mp4') | |
ok, frame = cap.read() | |
parameters_shitomasi = dict(maxCorners=100, qualityLevel=0.3, minDistance=7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, json | |
import requests | |
from requests.exceptions import HTTPError | |
import random | |
import time | |
user = "root@example.com" | |
password = "Complexpass#123" | |
bas64encoded_creds = base64.b64encode(bytes(user + ":" + password, "utf-8")).decode("utf-8") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: guild | |
channels: | |
- defaults | |
dependencies: | |
- backcall=0.2.0 | |
- ca-certificates=2021.10.26 | |
- certifi=2021.10.8 | |
- colorama=0.4.4 | |
- decorator=5.1.0 | |
- ipython=7.29.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
from pylab import * | |
import scipy.integrate as spi | |
#Parameter Values | |
PopIn= {'g1s_young':1/12,'g1i_young':1/12,'g1r_young':1/12,'g1s_mid':1/12,'g1i_mid':1/12,'g1r_mid':1/12,'g1s_old':1/12,'g1i_old':1/12,'g1r_old':1/12,'g1s_vold':1/12,'g1i_vold':1/12,'g1r_vold':1/12} | |
arr = [1/12]*12 | |
beta= 0.50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class meow { | |
constructor(options) { | |
this.maxexample = 2; | |
this.word = ''; | |
} | |
async displayName() { | |
return "אנגלית טכנית" | |
} | |
async findTerm(word) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Hello Webpack</title> | |
</head> | |
<body> | |
<textarea name="" id="input" cols="130" rows="10">a AND b OR c</textarea> | |
<div> | |
<button type="button" id="submit">Submit</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Create dummy Data Frame | |
df = pd.DataFrame({ | |
'A': [1,2,-3], | |
'B': [2,-4,6], | |
'C': [3,5,-7] | |
}) | |
print(df.corr().unstack().sort_values().drop_duplicates()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewer = new Cesium.Viewer('cesiumContainer', { | |
terrainProviderViewModels : [], //Disable terrain changing | |
infoBox : false, //Disable InfoBox widget | |
selectionIndicator : false //Disable selection indicator | |
}); | |
//Enable lighting based on sun/moon positions | |
viewer.scene.globe.enableLighting = true; | |
//Use STK World Terrain |
NewerOlder