This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defstruct svg | |
(points nil :type list) | |
(polys nil :type list) | |
(lines nil :type list)) | |
(defstruct point | |
(x 0.0 :type (or float integer)) | |
(y 0.0 :type (or float integer))) | |
(defstruct line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; (load "tsp.lisp") | |
(ql:quickload 'cl-ppcre) | |
(defstruct svg | |
(points nil :type list) | |
(polys nil :type list) | |
(lines nil :type list)) | |
(defstruct point |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lisp --script | |
#-quicklisp | |
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" | |
(user-homedir-pathname)))) | |
(when (probe-file quicklisp-init) | |
(load quicklisp-init))) | |
(ql:update-dist "quicklisp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lisp --script | |
#-quicklisp | |
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" | |
(user-homedir-pathname)))) | |
(when (probe-file quicklisp-init) | |
(load quicklisp-init))) | |
(let* ((bzr-out-string (make-array '(0) :element-type 'base-char | |
:fill-pointer 0 :adjustable t)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; package.lisp | |
(defpackage #:trie | |
(:use #:cl) | |
(:export #:create | |
#:add | |
#:contains | |
#:words | |
#:with-prefix | |
#:from-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
uint64_t fib(uint64_t n) { | |
uint64_t a=1; | |
uint64_t b=1; | |
uint64_t c = b+a; | |
for (uint64_t i=0; i<(n-2); ++i) { | |
c = b + a; | |
b = a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60.times{|a|puts (0..240).map{|b|x=i=0;x=x*x+Complex(b/4.0-45,a-30)/30until x.abs>4||99<i+=1;i>99?'#':'.'}*''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'nokogiri' | |
require 'open-uri' | |
# Handle command line | |
account = ARGV.shift || 'jl_2' | |
num = ARGV.shift || 10 | |
if num.to_i > 200 | |
puts "Can only fetch up to 200 tweets at a time." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pyget.py | |
# Copyright (c) 2010, Jeremiah LaRocco jeremiah.larocco@gmail.com | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# select_demo.pl | |
# Copyright (c) 2010, Jeremiah LaRocco jeremiah.larocco@gmail.com | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. |
OlderNewer