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
generated Mar 12, 2025 17:59:11 | |
system MacOS 15.3.1 Darwin 24.3.0 arm64 | |
emacs 29.4 EMACSDIR=~/.config/emacs/ | |
EMACS=/opt/homebrew/Cellar/emacs-plus@29/29.4/Emacs.app/Contents/MacOS/Emacs | |
doom 3.0.0-pre PROFILE=_default@0 HEAD -> master 8846d1518 2025-03-04 | |
14:13:38 -0500 ~/.config/doom/ | |
shell /opt/homebrew/bin/zsh | |
features ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP | |
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF | |
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB |
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
generated Jul 16, 2024 17:07:42 | |
system MacOS 14.5 Darwin 23.5.0 arm64 | |
emacs 29.4 EMACSDIR=~/.config/emacs/ | |
EMACS=/opt/homebrew/Cellar/emacs-plus@29/29.4/Emacs.app/Contents/MacOS/Emacs | |
doom 3.0.0-pre PROFILE=_@0 HEAD -> master, origin/master, | |
origin/HEAD fb0402e89 2024-07-15 15:22:56 -0400 | |
~/.config/doom/ | |
shell /opt/homebrew/bin/zsh | |
features ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES | |
NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS |
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
❯ doom info | |
generated Nov 25, 2022 12:37:56 | |
system MacOS 13.0 Darwin 22.1.0 arm64 | |
emacs 28.2 ~/.emacs.d/ | |
doom 3.0.0-pre PROFILE=_@0 HEAD -> master, origin/master, origin/HEAD | |
9d4d5b75 2022-10-31 16:18:16 +0100 ~/.doom.d/ | |
shell /opt/homebrew/bin/zsh | |
features ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP | |
NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS | |
XIM ZLIB |
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 org-agenda-files-base org-agenda-files) | |
(defun vulpea-project-p () | |
"Return non-nil if current buffer has any todo entry. | |
TODO entries marked as done are ignored, meaning that this | |
function returns nil if current buffer contains only completed | |
tasks." | |
(seq-find ; (3) | |
(lambda (type) |
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
# coding=utf-8 | |
class TreeNode: | |
def __init__(self, name='root', data=None, parent=None, children=None): | |
self.name = name | |
self.data = data | |
if parent: | |
assert isinstance(parent, TreeNode) | |
parent.add_child(self) |
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
from time import sleep | |
from termcolor import colored | |
import random | |
from simpleeval import simple_eval | |
class Bot: | |
wait = 1 |
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
require('console-stamp')(console, '[HH:MM:ss.l]') | |
const request = require('request') | |
const categories = [4754, 4755, 4756, 4635, 4634, 4620, 4892, 4621, 4622] | |
function getData(id) { | |
console.log("Started fetching courses in category " + id) |
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 Foundation | |
func randomDouble() -> Double { | |
return Double(arc4random_uniform(UInt32.max)) / Double(UInt32.max) | |
} | |
struct CalculatorBrain { | |
var numberFormatter: NumberFormatter? | |
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
%!TEX TS-program = xelatex | |
%!TEX encoding = UTF-8 Unicode | |
% 以上设定默认使用 XeLaTeX 编译,并指定 Unicode 编码,供 TeXShop 自动识别 | |
% XeLaTeX 示例 | |
\documentclass[12pt]{article} | |
% XeTeX 配合 fontspec 可以非常方便的设置字体 |
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
function runClojureOrg(redis) { | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var urlClojureAPI = 'http://clojure.github.io/clojure/'; | |
console.log('Start scrapping index: ' + urlClojureAPI); | |
redis.flushdb(); |
NewerOlder