Skip to content

Instantly share code, notes, and snippets.

View ivar's full-sized avatar

Ivar Vasara ivar

  • Misc / Consultant
  • Vancouver
View GitHub Profile
@oakes
oakes / bbs.ansiwave
Last active June 14, 2021 19:58
Ideas for a modern, decentralized BBS
██╗██████╗ ███████╗ █████╗ ███████╗ ███████╗ ██████╗ ██████╗ █████╗
██║██╔══██╗██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██╔══██╗ ██╔══██╗
██║██║ ██║█████╗ ███████║███████╗ █████╗ ██║ ██║██████╔╝ ███████║
██║██║ ██║██╔══╝ ██╔══██║╚════██║ ██╔══╝ ██║ ██║██╔══██╗ ██╔══██║
██║██████╔╝███████╗██║ ██║███████║ ██║ ╚██████╔╝██║ ██║ ██║ ██║
╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
_______________________________________
|,---"-----------------------------"---,|
||___ ............................ ||
@kniknoo
kniknoo / rubberdub.rb
Last active February 3, 2021 01:51
Rubber Dub for Sonic Pi
# Rubber Dub
# Coded by KniKnoo
use_bpm 75
use_debug false
use_random_seed 98736
define :sn_roll do #|length|
in_thread do
sn_amp = 0.05
@littlemove
littlemove / my-ruby.el
Created March 18, 2016 11:40
Spacemacs: Code folding for ruby-mode
;; Code folding
(add-hook 'ruby-mode-hook
(lambda () (hs-minor-mode)))
(eval-after-load "hideshow"
'(add-to-list 'hs-special-modes-alist
`(ruby-mode
,(rx (or "def" "class" "module" "do" "{" "[")) ; Block start
,(rx (or "}" "]" "end")) ; Block end
,(rx (or "#" "=begin")) ; Comment start
@oqu
oqu / gist:354aecb973f6bf5c0efe
Last active February 23, 2016 13:55
Dobot - first try
/**
* Created by olipion on 2/8/16.
* My first shot at reverse engineering java application.
*/
var SerialPort = require("serialport").SerialPort;
var serialPort;
/**
# Phasing Piano for Sonic Pi, coded by Darin Wilson
# inspired by Steve Reich's Clapping Music
#
# This piece consists of two threads, each playing the same short melodic phrase.
#
# On every third pass through the phrase, one of the threads shifts the phase by
# 1/4 of a beat, moving it more and more out of phase. Eventually, it comes
# back around to where it started, and the piece ends.
use_synth :piano
@nickloewen
nickloewen / bret_victor-reading_list.md
Last active November 14, 2024 21:10
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@joey-coleman
joey-coleman / README.md
Last active November 1, 2016 19:27
Webapps with OS X Server 3.1

Creating a apache-proxy webapp on OS X using Server.app. Just enable the webapp on the appropriate domains; the path etc is configured in the webapp plist.

The examples below come from the config I used to get jenkins running on the Overture build server.

Frankly, I think the mechanism used has promise, but is very poorly documented. So it goes with much of Apple's Server.app stuff, though. Apple's "Advanced Topics" page at http://www.apple.com/support/osxserver/advancedtopics/ is not a bad place to find a bit of help, though.

  • One for the webapp description
    • Lives in /Library/Server/Web/Config/apache2/webapps/
    • Should be auto-detected by Server.app? Doesn't seem to be for me, no idea why.
  • The magic invocation webappctl restart appears to force a reload.
@seabre
seabre / three.cljs
Last active September 13, 2021 06:19 — forked from michiakig/three.cljs
Three.js demo with ClojureScript. Actually works.
(ns three.demo)
(def THREE js/THREE)
(def camera (THREE.PerspectiveCamera. 75 (/ (.-innerWidth js/window)
(.-innerHeight js/window)) 1 10000))
(set! (.-z (.-position camera)) 1000)
(def scene (THREE.Scene.))
(def geometry (THREE.CubeGeometry. 200 200 200))
(def obj (js/Object.))
(set! (.-color obj) 0xff0000)
(set! (.-wireframe obj) true)
@jonasschneider
jonasschneider / Gemfile
Created January 14, 2013 13:36
Multiprocessing on a single heroku dyno
source "http://rubygems.org"
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active November 14, 2024 17:18
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx