This file contains hidden or 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/env sbcl --script | |
| ;; Seed the random number generator | |
| (setf *random-state* (make-random-state t)) | |
| ;; The main loop | |
| (loop | |
| (let ((random-int (+ 1 (random 1000)))) | |
| (format t "~a~%" random-int) | |
| ;; Force the output to appear immediately | |
| (finish-output) |
This file contains hidden or 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/env sbcl --script | |
| ;#!/usr/bin/env sbcl --noinform --load /Users/drewgulino/quicklisp/setup.lisp | |
| ;developed on SBCL 2.5.9 | |
| ;usage | |
| ;./random_number.lisp |./ngraph.lisp | |
| ;246 ██████████████████████████████▊ | |
| ;217 ███████████████████████████▏ | |
| ;994 ██████████████████████████████████████████████████████████████▏ | |
| ;100 ██████▎ |
This file contains hidden or 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/env python3 | |
| ##!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import json | |
| import subprocess | |
This file contains hidden or 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/env gforth | |
| variable width | |
| variable height | |
| variable maxnum | |
| 100 maxnum ! | |
| variable num-digits | |
| 4 num-digits ! | |
| variable effective-width | |
| variable partial-char |
This file contains hidden or 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/env python | |
| # Copyright 2021 Drew Gulino | |
| # #This program is free software; you can redistribute it and/or modify | |
| # # it under the terms of the GNU General Public License as published by | |
| # # the Free Software Foundation; either version 2 of the License, or | |
| # # (at your option) any later version. | |
| # # | |
| # # This program is distributed in the hope that it will be useful, | |
| # # but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or 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
| { | |
| "meta": { | |
| "theme": "onepage" | |
| }, | |
| "basics": { | |
| "name": "Drew Gulino", | |
| "label": "Senior Software Developer (SRE)", | |
| "picture": "", | |
| "email": "[email protected]", | |
| "phone": "", |
This file contains hidden or 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/env ruby | |
| #osx: brew install diffuse | |
| #linux rpm: rpm install diffuse | |
| require 'optparse' | |
| require 'pp' | |
| options = {} | |
| OptionParser.new do |parser| | |
| parser.define_head "Distributed Diff" | |
| parser.on('-h', '--hosts HOSTS') do |v| |
This file contains hidden or 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
| require Logger | |
| defmodule Tgraph do | |
| def main(args) do | |
| Logger.info inspect args | |
| options = parse_args(args) | |
| f = Dict.get(options,:file,:stdio) | |
| case is_atom(f) do | |
| true -> f |
NewerOlder