Skip to content

Instantly share code, notes, and snippets.

@Phoscur
Phoscur / aws-glacier-write-only-archiver.ts
Last active May 29, 2022 13:41
Small wrapper with singleton pattern
import {
GlacierClient,
CreateVaultCommand,
UploadArchiveCommand,
UploadArchiveCommandOutput,
CreateVaultCommandOutput,
} from '@aws-sdk/client-glacier'
export const GLACIER_ENABLED = process.env.GLACIER_ENABLED === 'true'
@Phoscur
Phoscur / ResourcesView.js
Created January 31, 2012 18:03
Creating Views with Plates
var View = require("./View");
function ResourcesView(language) {
View.call(this, this.getTemplate("#resourcesTemplate"), language);
}
ResourcesView.prototype = Object.create(View.prototype);
ResourcesView.prototype.render = function(resources) {
C:\Users\Me>jspec init myproject
C:/ruby/lib/ruby/gems/1.9.1/gems/visionmedia-jspec-2.11.2/bin/jspec:14:in `<top
(required)>': undefined method `program' for main:Object (NoMethodError)
from C:/ruby/bin/jspec:19:in `load'
from C:/ruby/bin/jspec:19:in `<main>'
C:/ruby/lib/ruby/gems/1.9.1/gems/visionmedia-jspec-2.11.2/bin/jspec:14:in `<top
(required)>': undefined method `program' for main:Object (NoMethodError)
from C:/ruby/bin/jspec:19:in `load'
from C:/ruby/bin/jspec:19:in `<main>'
@Phoscur
Phoscur / gist:297105
Created February 7, 2010 01:16 — forked from tj/gist:268592
#jspec run --trace
/usr/local/lib/ruby/gems/1.9.1/gems/visionmedia-commander-3.2.9/lib/
commander/blank.rb:5: warning: undefining `object_id' may cause
serious problem
/usr/local/lib/ruby/gems/1.9.1/gems/visionmedia-jspec-2.11.2/bin/jspec:
150:in `call': wrong number of arguments (1 for 0) (ArgumentError)
from /usr/local/lib/ruby/gems/1.9.1/gems/visionmedia-
jspec-2.11.2/bin/jspec:150:in `block (2 levels) in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/visionmedia-
commander-3.2.9/lib/commander/command.rb:177:in `call'