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 matplotlib.pyplot as plt | |
# If you want to move the data into a CSV file you can use Pandas: | |
#import pandas as pd | |
# | |
#df = pd.read_csv('histogram.csv', sep=',', header=None) | |
#data = df.values | |
# Otherwise a Python array works | |
data = [2.8, 7, 15.1, 3.8, 27.2, 10.3, 12.9, 8.1, 18.9, 9.2, 16.3] |
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 bash | |
set -eo pipefail | |
RED='\033[1;31m' | |
NC='\033[0m' # No Color | |
FORK=automaticrippingmachine | |
TAG=latest | |
function usage() { | |
echo -e "\nUsage: docker_setup.sh [OPTIONS]" | |
echo -e " -f <fork>\tSpecify the fork to pull from on DockerHub. \n\t\tDefault is \"$FORK\"" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
#info title | |
#info underline | |
info "OS\t\t" distro | |
info "Host\t" model | |
#info "Kernel" kernel | |
info "Uptime\t" uptime |
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/python3 | |
# Battery | |
# Shows battery status | |
import psutil | |
battery = psutil.sensors_battery() | |
icons = { | |
'charging': { | |
'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
// Make use of the CMake build system or compile manually, e.g. with: | |
// gcc -std=c99 example.c -lsweep | |
#include <assert.h> | |
#include <inttypes.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include sweep.h |
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
// CONFIGURATION | |
var host = 'localhost'; | |
var port = 8080; | |
var httpRoot = './http'; | |
// -------------------------------------------------- // | |
const http = require('http'); | |
const fs = require('fs'); | |
const url = require('url'); |
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 threading | |
import platform, subprocess, random | |
crazyMode = True | |
def ip(): | |
DETACHED_PROCESS = 0x00000008 | |
def myping(host): | |
parameter = '-n' if platform.system().lower()=='windows' else '-c' |
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
function clear() | |
print("\033[H\033[2J") | |
end | |
function add(a, b) | |
return a + b | |
end |
NewerOlder