Skip to content

Instantly share code, notes, and snippets.

Avatar
⚛️
Seeking baubles

Immortalin

⚛️
Seeking baubles
View GitHub Profile
@Immortalin
Immortalin / minified_bookmarklet.js
Last active Aug 13, 2021
Reddit to Teddit Bookmarklet
View minified_bookmarklet.js
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 Aug 7, 2019 — 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.
View oshprice.ulp
#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 Mar 14, 2019 — forked from bit4bit/go_example_websocket_novnc
Example: Go Websocket binary proxy noVnc
View go_example_websocket_novnc
package main
import (
"flag"
"golang.org/x/net/websocket"
"io"
"log"
"net"
"net/http"
"os"
@Immortalin
Immortalin / math.rb
Created Nov 9, 2018 — forked from delonnewman/math.rb
Symbolic Math in Ruby
View math.rb
module Expression
def ops
{ :+ => :add,
:- => :sub,
:* => :mult,
:/ => :div,
:** => :exp }
end
module_function :ops
@Immortalin
Immortalin / README.md
Created Nov 9, 2018 — forked from joyrexus/README.md
collapsible markdown
View README.md

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@Immortalin
Immortalin / LICENSE
Created May 20, 2018 — 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
View LICENSE
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 Nov 27, 2015 — forked from ghoseb/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
View ns-cheatsheet.clj
;;
;; 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.
View pprint.button.patch
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?))