- Install homebrew from https://brew.sh/ (follow the instructions there)
- tap the https://invent.kde.org/packaging/homebrew-kde/ repo,
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
brew edit okular
, workaround now is to comment out or delete the linedepends_on "chmlib"
(won't compile on macos arm64 for now as of 2021-08-18), then save (if using vim you need to first pressi
to insert/type, when saving then<esc>
then:wq
then<enter>
.brew install okular
, wait for stuff to compile and/or install- It may ask for keychain credentials (to sign the binaries? because of mac arm64 security policy https://eclecticlight.co/2021/01/26/when-you-dont-have-permission-to-run-an-app-on-an-m1-mac/)
$(brew --repo kde-mac/kde)/tools/do-caveats.sh
- Now okular is in your
$HOME/Applications/KDE
folder, and will show up in Launchpad! You can view pdf, djvu, etc documents.
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
(setq my-feeds '(("Richard Stallman" "https://stallman.org/rss/rss.xml" "Chief GNUisance of the GNU Project") | |
;; Define other feeds right here (title url description) | |
)) | |
;; This function mimics `gnus-group-make-rss-group' behaviour | |
(defun my-subscribe-rss-feeds (feeds) | |
(require 'nnrss) | |
(dolist (feed feeds) | |
(let* ((title (nth 0 feed)) | |
(href (nth 1 feed)) |
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
const source = 'http://ncov.mohw.go.kr' | |
let webView = new WebView() | |
await webView.loadURL(source) | |
let covid = await webView.evaluateJavaScript(` | |
const baseSelector = 'div.mainlive_container div.liveboard_layout ' | |
let date = document.querySelector(baseSelector + 'h2 span.livedate').innerText | |
let domestic = document.querySelector(baseSelector + 'div.liveNum_today_new ul li:nth-child(1) span.data').innerText | |
let overseas = document.querySelector(baseSelector + 'div.liveNum_today_new ul li:nth-child(2) span.data').innerText | |
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
#!/bin/bash | |
# Launch Dired in a plain Emacs configuration. | |
# Arguments are passed to Emacs, e.g. "-nw" works as expected. | |
emacs -q "$@" \ | |
--eval "(dired default-directory)" \ | |
--eval "(defun kill-window-or-emacs () (interactive) (if (one-window-p) (kill-emacs) (delete-window)))" \ | |
--eval "(setq dired-dwim-target t delete-by-moving-to-trash t)" \ |
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
''' | |
A simple Time Timer app made of ShapeNodes. | |
<Change Line 120 for seconds or minutes counting> | |
<Uncomment Line 126 and fill in your shortcut name to | |
automatically run other shortcut you defined | |
after timer stopped> | |
Odd touch attemps will start the timer | |
Even touch attemps will stop the timer | |
Stops automatically when the set times passed | |
''' |
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 os | |
import sys | |
import zipfile | |
import time | |
import re | |
import urllib3 | |
from dataclasses import dataclass | |
from bs4 import BeautifulSoup |
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 nimline | |
import os | |
static: | |
let | |
halideDist = getenv("HALIDE_DIST") | |
assert halideDist != "" , "HALIDE_DIST environment variables not set!" | |
when defined windows: |
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
use std::thread; | |
use std::sync::mpsc; | |
use std::sync::Arc; | |
use std::sync::Mutex; | |
enum Message { | |
NewJob(Job), | |
Terminate, | |
} |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Update a simple plot as rapidly as possible to measure speed. | |
""" | |
## Add path to library (just for examples; you do not need this) | |
from pyqtgraph.Qt import QtGui, QtCore | |
import numpy as np | |
import pyqtgraph as pg |
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>Audio only stream example</title> | |
<script src="//cdn.jsdelivr.net/npm/hls.js@latest"></script> | |
<style> | |
video { | |
width: 640px; | |
height: 360px; |
NewerOlder