cat your.itermcolors | plist2json | bb -i -o -f convert.clj
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title></title> | |
| <style type="text/css"> | |
| body { | |
| font-family: Arial, Helvetica, sans-serif; | |
| } | |
| .container { |
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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "regexp" | |
| ) | |
| func main() { |
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
| -- # setup | |
| create extension "uuid-ossp"; | |
| -- # users | |
| create table users ( | |
| id serial not null constraint users_pk primary key, | |
| username varchar(255) not null, | |
| password bytea not null | |
| ); |
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
| hs.hotkey.bind({"cmd", "alt"}, "V", function() | |
| local pasteContent = hs.pasteboard.getContents() | |
| hs.pasteboard.clearContents() | |
| hs.eventtap.keyStrokes(pasteContent) | |
| end) |
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
| import torch | |
| def main(): | |
| if not torch.backends.mps.is_available(): | |
| print("MPS not available") | |
| return | |
| large_weight = torch.randn(12, 8, device='mps') | |
| weight_sliced = large_weight[::2, ::1] | |
| weight_contiguous_equiv = weight_sliced.contiguous() |
OlderNewer