Skip to content

Instantly share code, notes, and snippets.

View hlolli's full-sized avatar
🛀

Hlöðver Sigurðsson hlolli

🛀
View GitHub Profile
@hlolli
hlolli / Custom.cmake
Last active April 8, 2023 21:27
custom csound development config using nix
set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_APPLE_SILICON_PROCESSOR "arm64")
execute_process(
COMMAND bash "-c"
"nix-build -E 'let pkgs = import <nixpkgs> {}; in pkgs.libsndfile.out' --no-out-link | awk '{print $1\"/lib/libsndfile.dylib\"}'"
OUTPUT_VARIABLE LIBSNDFILE_LIBRARY
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(
COMMAND bash "-c"
Verify Github on Galaxy. gid:gNZwNnsuqvuQSuKoGmSaqM

Keybase proof

I hereby claim:

  • I am hlolli on github.
  • I am hlolli (https://keybase.io/hlolli) on keybase.
  • I have a public key ASAIxfZAh5SzLGA4wSk1s-WF0BH4FVtDiUlVm2BN-fc9vwo

To claim this, I am signing this object:

[
"Abkasía",
"Afganistan",
"Albanía",
"Alsír",
"Alþýðulýðveldið Kína",
"Andorra",
"Angóla",
"Angvilla",
"Antígva og Barbúda",
@hlolli
hlolli / csound.zig
Created September 25, 2020 04:27
translate-c on csound, for lolz
pub const __u_char = u8;
pub const __u_short = c_ushort;
pub const __u_int = c_uint;
pub const __u_long = c_ulong;
pub const __int8_t = i8;
pub const __uint8_t = u8;
pub const __int16_t = c_short;
pub const __uint16_t = c_ushort;
pub const __int32_t = c_int;
pub const __uint32_t = c_uint;
This file has been truncated, but you can view the full file.
Directory: C:\Users\User\Documents\csound
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 6/10/2019 8:41 AM build
-- The C compiler identification is MSVC 19.13.26129.0
-- The CXX compiler identification is MSVC 19.13.26129.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Build
brew install \
pkg-config \
aften \
libsamplerate \
libsndfile \
opus \
readline \
doxygen \
wget
@hlolli
hlolli / blockcheck.cljs
Created August 31, 2018 19:21
detect thread block in nodejs
(defn detectBlock []
(let [interval 500
blockDelta 5]
(js/setInterval
(fn []
(let [last (.hrtime js/process)]
(js/setImmediate
(fn []
(let [delta (* 1e-6 (aget (.hrtime js/process last) 1))]
@hlolli
hlolli / init.el
Last active May 8, 2018 20:02
Emacs-Live styled quick-start script
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
;; First run of this emacs config
(when (not (package-installed-p 'use-package))
(package-refresh-contents)
(package-install 'use-package)
(package-install 'quelpa-use-package)
;; -*- lexical-binding: t -*-
;;; shadow-cljs.el --- shadow-cljs bindings for Emacs
;;; Commentary: Provides easy Cider interaction
;; for shadow-cljs.
(require 'cider)
(require 'edn)
;; target/shadow-cljs/nrepl.port