This file contains hidden or 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 datetime | |
import psutil | |
from influxdb import InfluxDBClient | |
# influx configuration - edit these | |
ifuser = "grafana" | |
ifpass = "<yourpassword>" | |
ifdb = "home" |
This file contains hidden or 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 partition(arr, left, right, pivot) { | |
var temp = arr[pivot]; | |
arr[pivot] = arr[right]; | |
arr[right] = temp; | |
var track = left; | |
for (var i = left; i < right; i++) { | |
if (arr[i]<arr[right]) { | |
var t = arr[i]; | |
arr[i] = arr[track]; | |
arr[track] = t; |