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
##Plugin | |
Plugin.define "butzopower@gmail.com" do | |
author '"Brian Butz" <butzopower@gmail.com>' | |
bar_applet("weather", 900) do |wmii, bar| | |
weather_proc = Proc.new do | |
weather_array = `weather --id=#{wmii.plugin_config["butzopower@gmail.com:weather"]["id"]}`.split("\n") | |
temp = weather_array[-2].match(/-*\d{1,3}\.*\d* F/).to_s.gsub(/ /, "°") | |
humid = weather_array[-1].match(/\d+\.*\d*%\Z/).to_s | |
temp + '(' + humid + ')' |
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
# escape ^]] | |
# don't use the hardstatus line for system messages, use reverse video instead | |
# (we'll be using it for the list of tab windows - see hardstatus alwayslastline | |
# below) | |
hardstatus off | |
# | |
# use the caption line for the computer name, load, hstatus (as set by zsh), & time | |
# the caption line gets repeated for each window being displayed (using :split), | |
# so we'll use color cues to differentiate the caption of the current, active |
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
" Vim color file | |
" Maintainer: Henry So, Jr. <henryso@panix.com> | |
" These are the colors of the "desert" theme by Hans Fugal with a few small | |
" modifications (namely that I lowered the intensity of the normal white and | |
" made the normal and nontext backgrounds black), modified to work with 88- | |
" and 256-color xterms. | |
" | |
" The original "desert" theme is available as part of the vim distribution or | |
" at http://hans.fugal.net/vim/colors/. |
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
# What is worse? | |
<%= f.table "Bill Dates", @bill_dates do |t| | |
t.date | |
t.billed? | |
end %> | |
# Or | |
<% f.table "Bill Dates", @bill_dates do |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
(rdb:24) params[:animal_pad_group] | |
{"user"=>"", "location_building"=>"988265101", "account_id"=>"Accounts will populate after a PI is selected", "effective_start_date"=>"", "quantity"=>"", "location_room"=>"988265151", "effective_end_date"=>""} | |
(rdb:24) pg = Animal::PadGroup.new(params[:animal_pad_group]) | |
#<Animal::PadGroup id: nil, account_id: 0, location_id: nil, quantity: nil, effective_start_date: nil, effective_end_date: nil, created_at: nil, updated_at: nil> | |
(rdb:24) pg.instance_variables | |
["@changed_attributes", "@attributes", "@new_record", "@attributes_cache"] | |
(rdb:24) pg.location_building = params[:animal_pad_group][:location_building] | |
"988265101" | |
(rdb:24) pg.instance_variables | |
["@changed_attributes", "@attributes", "@new_record", "@attributes_cache", "@location_building"] |
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
=== Note | |
=== This never revists a node | |
=== Would like to have it so it can loop around square groups | |
longestPaths(grid:Grid, goalNodes:Nodes, types:NodeTypes): | |
paths:Paths = [] | |
for each type in types: | |
goals:Nodes = nodesForType(goalNodes, type) | |
while goals != []: |
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
#Detailed version | |
Given I am logged in | |
And I have the operations_front_staff role | |
And the following animal accounts exist: | |
| User Name | Login | AP Number | Account Number | | |
| John Arbuckle | jarbuckle | 0905123 | 3256 | | |
And the following animal species exist: | |
| Accounting Code | Common Name | Tagged? | USDA? | Caged? | Tank? | | |
| MSE | Mouse | False | False | True | False | | |
| SHP | Sheep | True | True | False | False | |
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
// example application.properties | |
// spring.cloud.stream.bindings.input.destination=unenriched | |
// spring.cloud.stream.bindings.input.group=default | |
// spring.cloud.stream.bindings.output.destination=enriched | |
// spring.cloud.stream.bindings.output.group=default | |
// spring.cloud.stream.bindings.output.content-type=application/json | |