Skip to content

Instantly share code, notes, and snippets.

@wzph
wzph / output.txt
Last active August 29, 2021 05:02
Require Romcal
% node
Welcome to Node.js v16.5.0.
Type ".help" for more information.
> var Romcal = require('romcal')
Uncaught ReferenceError: window is not defined
at Object.<anonymous> (.../node_modules/romcal/dist/esm/index.js:1:194)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12)
@wzph
wzph / base.rb
Created February 8, 2012 07:51
lib/ticgit-ng/base.rb Based on the 1.0.2.12 gem (see lines 17-25)
module TicGitNG
class NoRepoFound < StandardError;end
class Base
attr_reader :git, :logger
attr_reader :tic_working, :tic_index, :tic_dir
attr_reader :last_tickets, :current_ticket # saved in state
attr_reader :config
attr_reader :state, :config_file
begin
User.transaction do
promo = user.active_promo
active_user_promo = user.active_user_promo
address = user.get_address
result = user.authorize_credit_card(address)
auth_response = result[:auth_response]
void_response = result[:void_response]
success = result[:success]
begin
User.transaction do
promo = user.active_promo
active_user_promo = user.active_user_promo
address = user.get_address
result = user.authorize_credit_card(address)
auth_response = result[:auth_response]
void_response = result[:void_response]
success = result[:success]
vv < <
2
^ v<
v1<?>3v4
^ ^
> >?> ?>5^
v v
v9<?>7v6
v v<
8
r = {"row"=>
[{"field"=>
[{"name"=>"id", "content"=>"1000000001"},
{"name"=>"name", "content"=>"Venue 1"},
{"name"=>"url", "content"=>"venue-1"},
{"name"=>"address_hint", "content"=>"MyString"},
{"name"=>"address_id", "content"=>"1000000001"},
{"name"=>"phone", "content"=>"(805) 555-1212"},
{"name"=>"capacity", "content"=>"MyString"},
{"name"=>"website", "content"=>"thewebsiteofawesome.com"},