Skip to content

Instantly share code, notes, and snippets.

@awohletz
awohletz / trpc-internals.ts
Created January 29, 2022 02:30
A follow-up to the post https://funtoimagine.com/blog/using-react-trpc-electron/ detailing the resolveIPCResponse function that main.ts uses
/** Including the MIT license notice verbatim from the trpc repository... **/
/*
MIT License
Copyright (c) <year> <author>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@awohletz
awohletz / core.cljs
Created December 10, 2014 02:46
Om routing with Secretary
(ns om-routing.core
(:require-macros [secretary.core :refer [defroute]]
[cljs.core.async.macros :refer [go go-loop]])
(:require [om.core :as om :include-macros true]
[om-tools.core :refer-macros [defcomponent]]
[sablono.core :as h :refer-macros [html]]
[secretary.core :as secretary :include-macros true]
[goog.events :as events]
[goog.history.EventType :as EventType]
[cljs.core.async :refer [put! chan <! pub sub]])
@awohletz
awohletz / gist:7343088
Created November 6, 2013 19:57
strace log files for rubinius 2.1.1 (2.1.0 be67ed17 2013-10-18 JI) [x86_64-linux-gnu]
This file has been truncated, but you can view the full file.
execve("/home/ayron/.rvm/rubies/rbx-2.1.1/bin/ruby", ["ruby", "test.rb"], [/* 84 vars */]) = 0
brk(0) = 0x1fc7000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54e756b000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/x86_64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/x86_64", 0x7fff8b5e5760) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls", 0x7fff8b5e5760) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/x86_64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)