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
127.0.0.1 | |
172.*.*.* | |
192.*.*.* | |
10.*.*.* | |
82.157.25.86 | |
39.106.86.136 | |
152.136.199.195 | |
::1 | |
localhost | |
arch |
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 BlurWidget(QWidget): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
effect = QGraphicsBlurEffect(self) | |
effect.setBlurRadius(120) | |
self.setGraphicsEffect(effect) | |
self.parent().installEventFilter(self) |
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
from Foundation import NSRunLoop, NSMutableDictionary, NSObject | |
from MediaPlayer import MPRemoteCommandCenter, MPNowPlayingInfoCenter | |
from MediaPlayer import ( | |
MPMediaItemPropertyTitle, MPMediaItemPropertyArtist, | |
MPMusicPlaybackState, MPMusicPlaybackStatePlaying, MPMusicPlaybackStatePaused | |
) | |
class No |
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 Foundation | |
import MediaPlayer | |
import Network | |
let cmdCenter = MPRemoteCommandCenter.shared() | |
cmdCenter.togglePlayPauseCommand.addTarget{ (e) -> MPRemoteCommandHandlerStatus in | |
return .success | |
} |
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 Foundation | |
import MediaPlayer | |
import Network | |
let cmdCenter = MPRemoteCommandCenter.shared() | |
cmdCenter.togglePlayPauseCommand.addTarget{ (e) -> MPRemoteCommandHandlerStatus in | |
return .success | |
} |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
豆瓣租房爬虫 | |
Install: | |
pip install beautifulsoup4 | |
Usage: |
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
# -*- coding: utf-8 -*- | |
""" | |
Dependency:: | |
pip3 install pyobjc-framework-Cocoa | |
pip3 install pyobjc-framework-Quartz | |
Usage:: |
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
# BSD 3-Clause License | |
# | |
# Copyright (c) 2020, Cosven | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. |
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 os | |
from tomlkit import document, value, dumps | |
from fuocore.models.uri import reverse | |
from fuo_xiami import provider | |
user = provider._user | |
if user is None: | |
raise Exception('你可能没有登录') |
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
from typing import List | |
class SongDisplayModel: | |
pass | |
class SongModel: | |
pass |
NewerOlder