Gmail in Doom Emacs
A personal note to remember what on earth I did to set up Gmail in Emacs.
| import torch | |
| import torch.nn as nn | |
| def compute_scale_and_shift(prediction, target, mask): | |
| # system matrix: A = [[a_00, a_01], [a_10, a_11]] | |
| a_00 = torch.sum(mask * prediction * prediction, (1, 2)) | |
| a_01 = torch.sum(mask * prediction, (1, 2)) | |
| a_11 = torch.sum(mask, (1, 2)) |
| #!/bin/bash | |
| # Delete Archived Applications | |
| rm -r ~/Library/Developer/Xcode/Archives/*/ | |
| # Delete Devired Data | |
| rm -r ~/Library/Developer/Xcode/DerivedData/*/ | |
| # Delete Apple cached files | |
| rm -r ~/Library/Developer/CoreSimulator/Caches/dyld/*/*/ |
| " antirez's .vimrc | |
| " Copyright(C) 2001 Salvatore Sanfilippo | |
| " Enable the syntax highlight mode if available | |
| syntax sync fromstart | |
| if has("syntax") | |
| syntax sync fromstart | |
| syntax on | |
| set background=dark | |
| let php_sync_method="0" |
| export default { | |
| async fetch(request, env, ctx) { | |
| const url = new URL(request.url); | |
| // 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...) | |
| if ( | |
| (url.pathname === '/api/add-ssl' && request.method === 'POST') || | |
| (url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId')) | |
| ) { | |
| return handleApiRequest(request, url.searchParams); |
| // ==UserScript== | |
| // @name B站学习机 | Bilibili+Youtube字幕全文阅读 | coursera-like subtitles fulltext reader | |
| // @namespace https://gist.github.com/KnIfER/9e43ffa31c3b9831a500edf35595c1dc | |
| // @version 6 | |
| // @description 在线字幕阅读或下载,B站油管秒变cousera! - Read & learn subtitles full text online! | |
| // @author KnIfER | |
| // @match https://*.bilibili.com/video/* | |
| // @match https://*.youtube.com/* | |
| // @match https://*/watch?v=* | |
| // @match https://*/embed/*?si=* |
A personal note to remember what on earth I did to set up Gmail in Emacs.
| @echo off | |
| :: ------------------------------------------------------------------------------------------------------------ | |
| :: Clean Up ASUS All | |
| :: ------------------------------------------------------------------------------------------------------------ | |
| :: The tool helps to clean up all ASUS software from system | |
| :: ------------------------------------------------------------------------------------------------------------ | |
| :: Before running the tools, | |
| :: 1. Complete backup your system. | |
| :: 2. Disable ASUS Apps from BIOS (MyASUS and Armoury) | |
| :: 3. Run ASUS remove tools (Armoury Crate Uninstall Tool.exe, or geek_uninstall.exe). |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.