Skip to content

Instantly share code, notes, and snippets.

View danielsz's full-sized avatar

Daniel Szmulewicz danielsz

View GitHub Profile
ld -verbose
GNU ld (GNU Binutils) 2.30
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
elf_iamcu
i386linux
elf_l1om
elf_k1om
Parsing:
"namespace"
"namespace"
"declare"
__gx#libdir
__gx#load-mdoule
__gx#expander-loaded
__gx#rtlibs
__gx#method-ref
optimize-call _else132148_ => #<!lambda #551> lambda
optimize-call _else132148_ => #<!lambda #551> lambda
optimize-call _else132148_ => #<!lambda #551> lambda
optimize-call gx#module-context-export => #<!struct-getf #552> gx#module-context::t
optimize-call gx#core-resolve-module-export => #<!lambda #553> lambda
optimize-call gerbil/tools/gxprof#find-export-binding => #<!lambda #554> lambda
optimize-call gx#runtime-binding? => #<!struct-pred #555> gx#runtime-binding::t
optimize-call gx#binding-id => #<!struct-getf #556> gx#binding::t
optimize-call gx#expander-context-id => #<!struct-getf #557> gx#expander-context::t
optimize-call with-unwind-protect => #<!lambda #558> lambda
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.1 20180406 (GCC)
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with <open> and enter text in its buffer.
... compile exe gxprof -> gxprof
/usr/bin/ld: cannot find -lieee
collect2: error: ld returned 1 exit status
*** ERROR IN ##main -- target link failed while linking "/home/arch/daniel/scheme/gerbil/bin/gxprof_.o" "/home/arch/daniel/scheme/gerbil/bin/gxprof.o"
*** ERROR IN gxc#compile-exe-stub-module -- Syntax Error
*** ERROR IN ?
--- Syntax Error at compile: Compilation error; gsc exit with nonzero status
@danielsz
danielsz / keybase.md
Created January 29, 2017 20:12
keybase.md

Keybase proof

I hereby claim:

  • I am danielsz on github.
  • I am danielsz (https://keybase.io/danielsz) on keybase.
  • I have a public key whose fingerprint is BA33 576B 24FF 371B E024 5E3E D2DD 64F0 A30E 1DD6

To claim this, I am signing this object:

(defvar notify-command (executable-find "terminal-notifier") "The path to terminal-notifier")
(defun notify (title message)
"Shows a message through the Notification center system using
`notify-command` as the program."
(flet ((encfn (s) (encode-coding-string s (keyboard-coding-system))) )
(let* ((process (start-process "notify" nil
notify-command
"-title" (encfn title)
"-message" (encfn message))))))
(ns node-test.core
(:require [cljs.nodejs :as nodejs]))
(nodejs/enable-util-print!)
(def cp (.-spawn (nodejs/require "child_process")))
(defn run-cmd [cmd args call-back]
(let [child (cp cmd args)]
(.on (.-stdout child) "data" call-back)
(.on (.-stdout child) "end" #(println (str cmd " process ended")))))
@danielsz
danielsz / germain.clj
Last active January 3, 2016 23:29
Sophie Germain primes
(require '[clojure.math.numeric-tower :refer [sqrt]])
(defn smallest-divisor [n]
(find-divisor n 2))
(defn divides? [a b]
(= (mod b a) 0))
(defn find-divisor [n test-divisor]
(cond (> (sqrt test-divisor) n) n
@danielsz
danielsz / guidelines.txt
Last active January 3, 2016 01:29
Israel Clojure user group gathering: Dojo I, instructions and guidelines.
The task of this Dojo is to play a tune with Overtone, namely "In the Summertime" by Mungo Jerry.
http://www.youtube.com/watch?v=wvUQcnfwUUM
http://www.youtube.com/watch?v=yG0oBPtyNb0
Wifi password: Elc0Campus
The instructions on how to set up a working overtone environment are detailed in this excellent guide:
http://bzg.fr/emacs-org-babel-overtone-intro.html