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
body { | |
display: flex; | |
height: 100%; | |
margin: 0; | |
} | |
nav { | |
background-color: #aaa; | |
flex: 25%; | |
height: 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
zethus begins casting walk (1 seconds) | |
ryjo begins casting eat (5 seconds) | |
zethus walks forward. (cooldown 1 seconds) | |
zethus moves from (0, 0) to (0, 1) | |
zethus cooled down 1 seconds after performing walk and will now decide what to do next... | |
zethus begins casting breath (1 seconds) | |
zethus breaths. (cooldown 1 seconds) | |
zethus's hp is currently 95/100 | |
zethus's hp goes up by 3! | |
zethus cooled down 1 seconds after performing breath and will now decide what to do next... |
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
Character zethus begins casting walk (1 seconds) | |
Character zach begins casting breath (1 seconds) | |
Character ryjo begins casting breath (1 seconds) | |
Character ryjo breaths. (cooldown 1 seconds) | |
Character ryjo's hp is currently 85/100 | |
Character ryjo's hp goes up by 3! | |
Character zach breaths. (cooldown 1 seconds) | |
Character zach's hp is currently 90/100 | |
Character zach's hp goes up by 3! | |
Character zethus walks forward. (cooldown 1 seconds) |
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
Character zethus begins casting breath (1 seconds) | |
Character zach begins casting breath (1 seconds) | |
Character ryjo begins casting breath (1 seconds) | |
Character ryjo breaths. (cooldown 1 seconds) | |
Character ryjo's hp is currently 80/100 | |
Character ryjo's hp goes up by 3! | |
Character zach breaths. (cooldown 1 seconds) | |
Character zach's hp is currently 90/100 | |
Character zach's hp goes up by 3! | |
Character zethus breaths. (cooldown 1 seconds) |
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
Character ryjo begins casting breath (1 seconds) | |
Character ryjo breaths. (cooldown 1 seconds) | |
Character ryjo's hp is currently 80/100 | |
Character ryjo's hp goes up by 3! | |
Character ryjo cooled down 1 seconds after performing breath and will now decide what to do next... | |
Character ryjo begins casting breath (1 seconds) | |
Character ryjo breaths. (cooldown 1 seconds) | |
Character ryjo's hp is currently 83/100 | |
Character ryjo's hp goes up by 3! | |
Character ryjo cooled down 1 seconds after performing breath and will now decide what to do next... |
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 "bundler/gem_tasks" | |
require "rake/testtask" | |
require "rake/extensiontask" | |
Rake::TestTask.new(:test) do |t| | |
t.libs << "test" | |
t.libs << "lib" | |
t.test_files = FileList["test/**/*_test.rb"] | |
end |
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
module Clips | |
extend FFI::Library | |
ffi_lib 'clips/libclips.so' | |
attach_function :create_environment, :CreateEnvironment, [], :pointer | |
attach_function :reroute_stdin, :RerouteStdin, [:pointer, :int, :pointer], :pointer | |
attach_function :command_loop, :CommandLoop, [:pointer], :void | |
end | |
the_env = Clips.create_environment | |
Clips.reroute_stdin(the_env, 0, FFI::MemoryPointer.new(:pointer)) |
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 'durable' | |
Durable.ruleset :circle do | |
when_all( | |
c.point = (+m.x) & (+m.y), | |
c.circle = m.radius_squared == ( point.x * point.x ) + ( point.y * point.y ) | |
) do | |
puts "point (#{point.x}, #{point.y}) " \ | |
"is on the edge of circle #{circle.name}" | |
end |
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
#!/bin/bash | |
curl -fs "https://api.duckduckgo.com/?q=ip&format=json" | jq -r '.Answer' | awk '{print $5}' |