Makes change for configured currencies.
# Initialize your changemaker| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| actions: { | |
| delete () { | |
| this.delete(); | |
| } | |
| } | |
| }); |
| import Ember from 'ember'; | |
| import { copy } from '@ember/object/internals'; | |
| import { later } from '@ember/runloop'; | |
| import { set } from '@ember/object'; | |
| export default Ember.Component.extend({ | |
| didReceiveAttrs () { | |
| this._super(...arguments); | |
| if (!this.recordsProxy) { | |
| this.recordsProxy = copy(this.records); |
| #!/bin/bash | |
| curl -fs "https://api.duckduckgo.com/?q=ip&format=json" | jq -r '.Answer' | awk '{print $5}' |
| 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 |
| 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)) |
| 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 |
| 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... |