Skip to content

Instantly share code, notes, and snippets.

@jnf
jnf / index.css
Created September 16, 2016 22:15
html {
font: normal normal 32px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
background: #111;
}
#shapes {
background: rgb(255, 0, 255);
class Dragon
def initialize(name)
@name = name
@stuff_in_belly = 10 # full tummy
@stuff_in_intestine = 0 # empty diaper
puts "#{ @name } is born!"
end
def feed
@jnf
jnf / example.css
Last active November 7, 2016 04:55
CSS Animation Example
@import url(https://fonts.googleapis.com/css?family=VT323);
html { font: normal normal 16px/1.2 VT323, courier, monospace; }
* { margin: 0; padding: 0; }
body {
background-color: #000;
color: rgb(253, 254, 0);
padding: 10vh;
}

VideoStoreAPI Extended Requirements

These requirements are in addition to all the requirements included in the initial project documentation.

API Documentation

  • Add a new endpoint to your application at /api/docs the serves HTML (rendered from a view). This view must contain...
    • a list of all endpoints your application responds to
      • include the URI and verb for your endpoint (i.e., GET /movies)
    • the optional and required parameters
    • a description of the intended use of the endpoint
  • a breakdown of the data returned by the endpoint for all possible cases
@jnf
jnf / mergesort.rb
Last active August 29, 2015 14:25 — forked from sudocrystal/mergesort.rb
Starting ground for mergesort in ruby -- with recursive and iterative solutions.
def mergesort(a)
# if the array size is 0|1 then the list is considered sorted, return sorted
return a if a.length <= 1
# split the list in half
left, right = split_array a
# merge sort each half
sorted_left = mergesort left
sorted_right = mergesort right
@jnf
jnf / osd-request-for-quote-visual-design.md
Last active August 29, 2015 14:18
OS&F: Request for Quote, Visual Design

Hello!

Open Source & Feelings (OS&F) is a new technology conference focused on providing tools and support for people seeking to implement and improve technology %w(access tools education).sample in their communities.

We're early in the planning process, but some language describes our mission as:

Open Source & Feelings is a two-day event exploring the Humanities & Arts through the lens of open source technology, those tools and products we use to richly experience & interact with each other, our communities, and the world.

One of our most immediate needs is visual identity for the project. The goal of this document is to describe our need well enough to jump-start conversation. Given that this is the first year, we have no existing brand materials for you to reference.

Deliverables

Venue Considerations Checklist

  • Facility
    • Security/Maintenence
      • Will venue provide staff person(s) day of event for coordination?
      • Who is contact in case of problems?
    • Room(s)
      • Number of individual meeting spaces
      • Capacity of each
      • Relative arrangement of rooms (are they close to each other)
  • Outdoor/shared space to facilitate hallway track

Keybase proof

I hereby claim:

  • I am jnf on github.
  • I am jnf (https://keybase.io/jnf) on keybase.
  • I have a public key whose fingerprint is 8913 A2F3 8073 86C9 F367 3752 148A E504 F827 DA56

To claim this, I am signing this object:

@jnf
jnf / wat.haml
Last active August 29, 2015 14:05
- x = 7
.div1
.div2
.div4
- if x == 4
Totes a four.
- else
Prolly not a four.
.div3
A third div, nested in div2.
@jnf
jnf / level_2.rb
Created July 27, 2014 05:54
Ruby Warrior, Intermediate
class Player
def play_turn(warrior)
@warrior = warrior
@preferred_direction = @warrior.direction_of_stairs
wat_do?
end
protected