Skip to content

Instantly share code, notes, and snippets.

After booting into Parabola Linux USB:
# Configure
1. Setup wireless connection: `$ wifi-menu`
2. Update parabola package keystring: `$ pacman -Sy parabola-keyring`
3. Install parabola base system: `$ pacstrap /mnt`
4. Install GRUB v2:
$ pacstrap /mnt grub-bios
$ pacstrap /mnt grub-efi-x86_64
(define (prime n)
(define (last lst)
(if (null? (cdr lst))
(car lst)
(last (cdr lst))))
(let* ((primes (list 2)))
(let outer ((i 3) (len 1) (last-pair primes))
(if (< len n)
(let inner ((remaining primes))
(define try (car remaining))
Neue Programming
# Fun
"I think that it’s extraordinarily important that we in computer science keep fun in computing. When it started out, it was an awful lot of fun. Of course, the paying customers got shafted every now and then, and after a while we began to take their complaints seriously. We began to feel as if we really were responsible for the successful, error-free perfect use of these machines. I don’t think we are. I think we’re responsible for stretching them, setting them off in new directions, and keeping fun in the house."
-- Alan J. Perlis
# Youthful Spirit
One of the main things that will separate Art/Programming from the Free Software movement is the new movement's youthful spirit. Free Software is the pastime of neck-beards, and while that doesn't make it *bad* by any means, it makes it too niche for a child to partake in.
# Beauty
@JacksonGariety
JacksonGariety / pascal.scm
Last active April 26, 2018 19:31
An implementation of pascal's triangle in scheme.
;; 1
;; 1 1
;; 1 2 1
;; 1 3 3 1
;; 1 4 6 4 1
;; pascal's triangle
(define (pascals-triangle h)
;; row iterator
(define (gen-row row)

Keybase proof

I hereby claim:

  • I am jacksongariety on github.
  • I am garietyxxx (https://keybase.io/garietyxxx) on keybase.
  • I have a public key whose fingerprint is 6A29 55B3 BA64 E0AB 422D 814A CAC1 5456 C6EB A8E8

To claim this, I am signing this object:

// Differential inheritance helpers
Function.prototype.earn = function (property, value) {
this.prototype[property] = value
return this
}
Function.prototype.inherit = function (parent) {
this.__super__ = parent
this.prototype = Object.create(parent.prototype, {
@JacksonGariety
JacksonGariety / INSTALL.md
Last active August 29, 2015 13:57
Popcorn Time installation for dummies
  1. Open Terminal (/Applications/Utilities/Terminal.app)
  2. Install homebrew $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  3. Install Node.js $ brew install node
  4. Install compass $ gem install compass
  5. Download the source $ git clone https://github.com/isra17/popcorn-app.git
  6. Change directory $ cd popcorn-app
  7. Install dependencies $ npm install
  8. Install the task runner $ npm install -g grunt-cli
  9. Build the app $ grunt build
  10. Move to /Applications $ mv build/release/Popcorn-Time.app /Applications
<main>
<header>
</header>
<aside>
</aside>
<section>
</section>
</main>
var stream = new Stream.Readable()
stream._read = function () { stream.push('foo') }
var b = browserify().require(stream).bundle(function (err, src) {
if (err) throw err
console.log(src)
})
var empty = 'path/to/_empty.js'
var b = browserify().add(empty).transform(function (file) {
if (file !== empty) return through()
return through(function (data) {}, function () {
this.queue('(function(){window;})();')
this.queue(null);
})
}).bundle(function (err, src) {