Skip to content

Instantly share code, notes, and snippets.

View foundrium's full-sized avatar

Eric LaForce foundrium

View GitHub Profile
@foundrium
foundrium / blah.json
Created November 12, 2021 17:00
blah
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.0",
"info": {
"title": "Barpay",
"version": "1.0",
"description": "Barpay API",
"contact": {
"name": "Eric LaForce",
"url": "https://www.barpay.com",
"email": "eric@barpay.com"
@foundrium
foundrium / keybase.md
Created August 16, 2021 13:29
keybase.md

Keybase proof

I hereby claim:

  • I am foundrium on github.
  • I am elaforc (https://keybase.io/elaforc) on keybase.
  • I have a public key ASDx3oIaDwm0rmG2Fu6f5VGMe0FwvG98qBMp8s3dt93GjAo

To claim this, I am signing this object:

@foundrium
foundrium / keybase.md
Created April 26, 2018 00:35
keybase.md

Keybase proof

I hereby claim:

  • I am elaforc on github.
  • I am elaforc (https://keybase.io/elaforc) on keybase.
  • I have a public key ASBrcpB_nNsR-3pT3GHRaYHqfMANhikUb1gysqAoD_XN3wo

To claim this, I am signing this object:

diff --git a/lib/wicked_pdf.rb b/lib/wicked_pdf.rb
index 7c6486f..58904b2 100644
--- a/lib/wicked_pdf.rb
+++ b/lib/wicked_pdf.rb
@@ -80,7 +80,7 @@ class WickedPdf
rescue Exception => e
raise "Failed to execute:\n#{command}\nError: #{e}"
ensure
- generated_pdf_file.close! if generated_pdf_file && !return_file
+ generated_pdf_file.close if generated_pdf_file && !return_file
diff --git a/package.json b/package.json
index eb92c7e..e4d9be6 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
"bootstrap-loader": "0.0.5",
"bootstrap-sass": "^3.3.6",
"classnames": "^2.2.0",
+ "dotenv": "^1.2.0",
"es6-promise": "^3.0.2",
@foundrium
foundrium / ApplicationTest.java
Last active August 21, 2021 05:50
Play Framework Unit Testing Examples
import static org.fest.assertions.Assertions.assertThat;
import static play.mvc.Http.Status.CREATED;
import static play.test.Helpers.contentAsString;
import static play.test.Helpers.contentType;
import static play.test.Helpers.fakeApplication;
import static play.test.Helpers.route;
import static play.test.Helpers.running;
import static play.test.Helpers.status;
import java.io.IOException;
@foundrium
foundrium / readingrockstars.md
Last active December 15, 2015 15:29
readingrockstars.md

Dear friends,

Welcome to Ms. McNeil’s 5th annual Real World Reading Rockstar Challenge! If this is your first time joining the challenge, we are so excited to have you on board; if you are a returning Rockstar, we’re glad to have you back (you know the drill, so you can just read the highlights)!

I am writing to you again from KIPP STRIVE Academy in Atlanta’s West End neighborhood where I teach ninety fantastic 6th graders. As a reading teacher, I want to show my students that reading can open up a million doors in the world if they are truly exploring; that reading is not a book report, a homework assignment, the antithesis to summer vacation, or just a “school thing,” but a life skill. We need the leaders of tomorrow (who sit in classrooms today) to believe with conviction that there is incredible value in reading…in picking up a newspaper to know the world view, in exploring a good book about anything from “space” to “finding your inner happiness,” in reading a poem or novel by their favorite writer,

@foundrium
foundrium / swagger-to-markdown script
Created August 22, 2012 21:29
swagger-to-markdown run script
./swagger-to-markdown.rb -r resources.json -p parameters.json -n Demo -o test.md -s pet.json
@foundrium
foundrium / swagger-specification.js
Created August 22, 2012 21:17
Swagger Specification Example
{
"apiVersion":"0.2",
"swaggerVersion":"1.1-SNAPSHOT",
"basePath":"http://petstore.swagger.wordnik.com/api",
"resourcePath":"/store",
"apis":[
{
"path":"/store.{format}/order/{orderId}",
"description":"Operations about store",
"operations":[