Skip to content

Instantly share code, notes, and snippets.

Avatar
👻

Ryan Cook cookrn

👻
View GitHub Profile
@cookrn
cookrn / a.rb
Last active Aug 29, 2015 — forked from ahoward/a.rb
View a.rb
# fork it
#
# make it print all true with only ONE LINE OF CODE
class A
def A.foo
@foo ||= (
if self == A
'42.0'
else
@cookrn
cookrn / a.rb
Last active Aug 29, 2015 — forked from ahoward/a.rb
View a.rb
# make this script run, update your gist with the running script, and it's
# output in a separate gist. the entire quzi should take 1-3 minutes, but you
# get 5.
#
# the meat - take < 5 minutes to do this
#
assert :hash do
x = Hash.new
View action.rb
# it's not critical for understanding
# but here is the associated server-side action
#
def version
@program = load_program!
@version = @program.versions.find(params[:version_id])
if stale?(:last_modified => @version.updated_at, :etag => @version.cache_key)
render
@cookrn
cookrn / quiz-1.md
Created Sep 27, 2012 — forked from ahoward/quiz-1.md
quiz-1.md
View quiz-1.md
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

@cookrn
cookrn / terms_of_service.markdown
Created Mar 12, 2012 — forked from devver/terms_of_service.markdown
Antiqua, Ltd. Terms of Service
View terms_of_service.markdown

Terms of Service

Last revised on 03-12-2012

The Gist

Antiqua, Ltd. operates the Antiqua.IO service, which we hope you use. If you use it, please use it responsibly. If you don't, we'll have to terminate your account.

For paid accounts, you'll be charged on a monthly basis. You can cancel anytime, but there are no refunds.

@cookrn
cookrn / privacy_policy.markdown
Created Mar 12, 2012 — forked from devver/privacy_policy.markdown
Antiqua, Ltd. Privacy Policy
View privacy_policy.markdown

Privacy Policy

Last revised on 03-12-2012

The Gist

Antiqua, Ltd. will collect certain non-personally identify information about you as you use our sites. We may use this data to better understand our users. We can also publish this data, but the data will be about a large group of users, not individuals.

The only personal information required to use the service is your email. This will never be sold, disclosed, or otherwise transferred without explicit advance notification (a minimum of 30 days) and the ability to opt out. The only likely scenario where this would be the case is an acquisition of Antiqua, Ltd..