Daniel Zeng
Daniel Zeng
In ggez 0.4, we could use check_update_time() to limit the update frequency: https://docs.rs/ggez/0.4.2/ggez/timer/fn.check_update_time.html ``` fn update(&mut self, ctx: &mut Context) -> GameResult while(timer::check_update_time(ctx, 60)) { update_game_physics()?; } Ok(()) } ```...
1. TITLE can be generated with the first Header h1 We should not force people to duplicate it in both article content and front matters. Besides, TITLE will could be...
``` Rx = require 'rx' local events = { 'begincontact', 'directorydropped', 'draw', 'endcontact', 'filedropped', 'focus', 'keypressed', 'keyreleased', 'load', 'lowmemory', 'mousefocus', 'mousemoved', 'mousepressed', 'mousereleased', 'postsolve', 'presolve', 'quit', 'resize', 'textedited', 'textinput', 'threaderror',...
Add URI scheme like [Anyconnect](http://www.cisco.com/c/en/us/td/docs/security/vpn_client/anyconnect/anyconnect30/administration/guide/anyconnectadmin30/acmobiledevices.html#pgfId-1011562) Here is a draft: ``` shadowvpn://create/?data=BASE64_DATA shadowvpn://create/?name=Descript&server=Addr&port=1234&...&onsuccess=URL&onerror=URL shadowvpn://connect/?name=Description&host=ServerAddress&onsuccess=URL&onerror=URL shadowvpn://disconnect/?onsuccess=URL&onerror=URL shadowvpn://close example: shadowvpn://create/data=BASE64_DATA?onsuccess=shadowvpn%3A%2F%2Fconnect%2F?name=Tokyo1 Create Tokyo1 and connect to Tokyo1 if success. shadowvpn://connect/name=Tokyo1?onsuccess=shadowvpn%3A%2F%2Fclose Connect to Tokyo1 and...
Although we can edit build.rs manually, change the let langs = vec![ "af", "hy", ... "hsb", "cy" ]; to let langs = vec!["en"]; to make the final lib much smaller...
``` def fetch_payload_v(self): headers = { 'referer': 'https://www.ingress.com/intel', 'user-agent': 'balabalabala', } request = requests.post('https://www.ingress.com/jsc/gen_dashboard.js', headers=headers, verify=False) offset = request.text.index('b.v="') + 5 v = request.text[offset:offset + 40] return v ``` 就像这样……...
``` qbitmonitor | 2024-05-05 15:28:22,795 INFO: unknown 77.68.37.246:51500: (BitTorrent 7.6, -DE1360-) qbitmonitor | 2024-05-05 15:45:35,073 INFO: unknown 77.68.41.119:51500: (Transmission 2.52, -DE1360-) qbitmonitor | 2024-05-05 15:45:35,077 INFO: unknown 88.208.201.96:51500: (Vuze 5.0.0.0,...