Skip to content

Instantly share code, notes, and snippets.

View Immortalin's full-sized avatar
⚛️
Seeking baubles

Lin Immortalin

⚛️
Seeking baubles
  • Latent space
View GitHub Profile
@Immortalin
Immortalin / minified_bookmarklet.js
Last active August 13, 2021 19:43
Reddit to Teddit Bookmarklet
javascript: "i.reddit.com"===document.location.hostname||"old.reddit.com"===document.location.hostname||"amp.reddit.com"===document.location.hostname||"reddit.com"===document.location.hostname||"www.reddit.com"===document.location.hostname?document.location="https://teddit.net"+document.location.pathname:alert("Invalid domain! This bookmarklet only works with Reddit.com");
@Immortalin
Immortalin / oshprice.ulp
Created August 7, 2019 17:05 — forked from itavero/oshprice.ulp
Eagle CAD ULP script to calculate the price of a PCB when you order it at OSHPark.Currently only works for 2-layer boards.
#usage "en: <b>Calculate the price of a dual-layer PCB if you order them at OSH Park.</b>"
"<p>Usage: run oshprice</p>"
"<p>Author: <author>Arno Moonen &lt;info@arnom.nl&gt;</author><br />"
"Version: <em>201405042026</em></p>"
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED
void main() {
if(!board) {
// No board
@Immortalin
Immortalin / go_example_websocket_novnc
Created March 14, 2019 05:25 — forked from bit4bit/go_example_websocket_novnc
Example: Go Websocket binary proxy noVnc
package main
import (
"flag"
"golang.org/x/net/websocket"
"io"
"log"
"net"
"net/http"
"os"
@Immortalin
Immortalin / math.rb
Created November 9, 2018 21:49 — forked from delonnewman/math.rb
Symbolic Math in Ruby
module Expression
def ops
{ :+ => :add,
:- => :sub,
:* => :mult,
:/ => :div,
:** => :exp }
end
module_function :ops
@Immortalin
Immortalin / README.md
Created November 9, 2018 19:32 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@Immortalin
Immortalin / LICENSE
Created May 20, 2018 04:29 — forked from madc/LICENSE
Simple morse en- & decoding for Arduino (including LED Example)Build after the specs on http://en.wikipedia.org/wiki/Morse_code
Copyright (c) 2015 Matthias Esterl
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
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Immortalin
Immortalin / ns-cheatsheet.clj
Created November 27, 2015 10:04 — forked from ghoseb/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.
diff --git a/src/clojure/nightcode/builders.clj b/src/clojure/nightcode/builders.clj
index cb5578b..b646aaa 100644
--- a/src/clojure/nightcode/builders.clj
+++ b/src/clojure/nightcode/builders.clj
@@ -95,6 +95,8 @@ top level expression."
(not ios-project?))
:#eval (and (not java-project?)
(not ios-project?))
+ :#pprint (and (not java-project?)
+ (not ios-project?))