Skip to content

Instantly share code, notes, and snippets.

View tamouse's full-sized avatar
🏠
Retired from Work

Tamara Temple tamouse

🏠
Retired from Work
View GitHub Profile
@tamouse
tamouse / logseq-Gruvbox.css
Created January 17, 2024 17:33 — forked from tallguyjenks/logseq-Gruvbox.css
Logseq Gruvbox
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282828;
--light-background: #3c3836;
--lighter-background: #504945;
--dark-background: #3c3836;
--darker-background: #1d2021;
--foreground: #ebdbb2;
--current-line: #504954;
# in spec_helper.rb
RSpec.configure do |config|
records = []
config.before :suite do
Cequel::Record.descendants.each do |klass|
klass.after_create {|r| records << r }
end
end
@tamouse
tamouse / kestell_tables.js
Last active August 29, 2015 14:07 — forked from kkestell/gist:ade30f868bd122707628
a javascript table formatter on the cheap
/*
Basic Usage
===========
Assuming your markup looks like this:
<table id="table" class="table"></table>
<div id="pagination" class="text-center"></div>
@tamouse
tamouse / Property.rb
Last active August 29, 2015 13:55 — forked from anonymous/Property.rb
class Property < ActiveRecord::Base
belongs_to :detail
end
@tamouse
tamouse / pipes.rb
Created January 22, 2014 22:28 — forked from rklemme/pipes.rb
#!/usr/bin/ruby -w
if ENV['DEBUG']
def debug(message)
$stderr.puts message
end
else
def debug(message)
# nop
end
@tamouse
tamouse / blocks.rb
Last active January 3, 2016 05:09 — forked from jaw6/blocks.rb
require 'minitest/autorun'
class List
include Enumerable
def initialize()
@notes = []
yield @notes if block_given?
end
# _plugins/haml_converter.rb
module Jekyll
class HamlConverter < Converter
safe true
def setup
return if @setup
require 'haml'
@setup = true
[21] pry(main)> kill_subprocess('yes',2,2)
Timed Out!
Tries: 1
Timed Out!
Tries: 2
=> "yes completed"
[22] pry(main)>
def object_changed?(instance, params)
instance.attributes != instance.attributes.merge(params)
end
current_account.
report_groups.
where(:id => params[:report_group_id]).
first.
reports.
where(:id => params[:id]).
first