Skip to content

Instantly share code, notes, and snippets.

View icecliffs's full-sized avatar
🤔
Changing the world with boring code...

IceCliffs icecliffs

🤔
Changing the world with boring code...
View GitHub Profile
@icecliffs
icecliffs / vague.py
Last active December 4, 2022 14:11
沙雕代码,通过脚本让图片变湖
import sys, getopt, os
from PIL import Image
def main(argv):
inputfile = ''
try:
opts, args = getopt.getopt(argv,"l:i:")
except getopt.GetoptError:
print("test.py -l 模糊程度 -i 图片")
sys.exit(2)
for opt, arg in opts:
@icecliffs
icecliffs / Spider-1
Created September 13, 2021 10:41
Batch crawling web sites pages
<?php
function getSites(){
// echo '';
$imgDate = date('Y-m-d-H-m-s');
// echo date('Y-m-d-H-m-s').''."<br>";
$j = 0;
for ($i=1; $i <= 22; $i++) {
$j = $j + 1;
if ($j < 10) {
$_GET['url'] = 'http://172.31.1.1:1000' . $j;
@icecliffs
icecliffs / rssi_test
Created August 30, 2021 04:56
rssi_received
var sigGen1 = [
{"x": 2.02, "y": 10.98, "room": "FT236", "rssi": [], "mean": 'No Data', "variance": 'No Data'},
{"x": 2.17, "y": 4.98, "room": "FT222", "rssi": [-76, -76, -76, -76], "mean": -76, "variance": 0},
{"x": 3.51, "y": 9.02, "room": "hollway_2nd", "rssi": [-73, -70, -74, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71, -71], "mean": -71.2, "variance": 0.66},
{"x": 5.16, "y": 10.94, "room": "FT235", "rssi": [-85, -85, -85, -86, -86, -86, -86, -87, -87, -87, -87, -87, -87, -87, -85], "mean": -86.2, "variance": 0.69},
{"x": 5.39, "y": 5.06, "room": "FT223", "rssi": [-64], "mean": -64, "variance": 0},
{"x": 8.48, "y": 1.93, "room": "FT223", "rssi": [], "mean": 'No Data', "variance": 'No Data'},
{"x": 9.81, "y": 9.02, "room": "hollway_2nd", "rssi": [-70, -70, -70, -70, -70, -70, -70, -70, -70, -73, -73, -73, -73, -73, -73, -73, -70, -70, -73, -73], "mean": -71.35, "variance": 2.23},
{"x": 11.57, "y": 1.89, "room": "FT224", "rssi": [], "mean":
@icecliffs
icecliffs / Platform_data
Last active April 25, 2020 07:18
Platform_data
-Video-Fans-------------------
bilibili: 3677 | Youtube: 0 | Tiktok: 71
-Github Contributions---------
All: 256 | 2020: 238 | 2019: 18
Last update: 2020 Apr 25.