Skip to content

Instantly share code, notes, and snippets.

@shg
shg / ob-julia-vterm.el
Created August 28, 2022 07:53
ob-julia-vterm.el 0.2f
;;; ob-julia-vterm.el --- Babel Functions for Julia in VTerm -*- lexical-binding: t -*-
;; Copyright (C) 2020-2022 Shigeaki Nishina
;; Author: Shigeaki Nishina
;; Maintainer: Shigeaki Nishina
;; Created: October 31, 2020
;; URL: https://github.com/shg/ob-julia-vterm.el
;; Package-Requires: ((emacs "26.1") (julia-vterm "0.16") (queue "0.2"))
;; Version: 0.2f
@shg
shg / process-kill-without-query.el
Created August 17, 2020 01:12
Redefine obsolete process-kill-without-query function
(defun process-kill-without-query (process &optional flag)
(set-process-query-on-exit-flag process nil)
t)
@shg
shg / half_teapot.obj
Created August 13, 2020 22:35
Half teapot 3D model in OBJ
g Mesh_body_02
v -0.06671 -0.0022148 0.0405
vn -0.986807 -0.12921 -0.0975587
vt 0 0
v -0.067 -3.02536e-18 0.0405
vn -0.986807 -0.12921 -0.0975587
vt 0 0
v -0.0666287 -3.25533e-18 0.0367443
vn -0.986807 -0.12921 -0.0975587
vt 0 0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#-*- coding: utf-8 -*-
function show(world)
print("\033[2J\033[0;0H")
wh, ww = size(world)
for m in 2:wh - 1
println(String(ifelse.(world[m, 2:ww - 1], 'O', '.')))
end
end
@shg
shg / poly-julia.el
Last active March 14, 2020 14:12
A minimum polymode for Julia + Markdown
;; poly-julia.el --- Polymode for Julia language -*- lexical-binding: t -*-
;;
;; Copyright (C) 2020 Shigeaki Nishina
;; Author: Shigeaki Nishina
;; Maintainer: Shigeaki Nishina
;; URL: https://github.com/shg/poly-julia
;; Version: 0.1
;;
;; This file is not part of GNU Emacs.
;;
@shg
shg / julia-repl-vterm.el
Last active November 8, 2020 03:23
Inferior Julia REPL using vterm
;; julia-repl-vterm.el --- A mode for Julia REPL using vterm -*- lexical-binding: t -*-
;;
;; Copyright (C) 2020 Shigeaki Nishina
;; Author: Shigeaki Nishina
;; Maintainer: Shigeaki Nishina
;; URL: https://github.com/shg/julia-repl-vterm
;; Version: 0.4
;;
;; This file is not part of GNU Emacs.
;;
@shg
shg / .gitconfig
Created April 14, 2012 09:47
git alias for listing aliases
[alias]
alias = "!git config -l|awk -F= '/^alias/ { sub(\"^alias\\.\", \"\", $1); print $1 \"\t\" $2 }'"