Skip to content

Instantly share code, notes, and snippets.

View ScottLNorvell's full-sized avatar
🦍
maybe doing this?

Scott Norvell ScottLNorvell

🦍
maybe doing this?
View GitHub Profile

The Scene Suggestions

Structuring app for animations

We'd like to add animations between routes, possibly from one watch page to another (like when the user clicks on a video). Do we need to restructure in order to do this with liquid fire?

Performance of auto-scroll

  • user doesn't lose position on back navigate?
  • better about offloading data?

Initial render performance

@ScottLNorvell
ScottLNorvell / times.txt
Created December 14, 2013 19:52
recipe times
LASAGNA
Time: 2 hrs
TACOS
time: 20 mins
Oatmeal Cookies
@ScottLNorvell
ScottLNorvell / Food.txt
Created December 14, 2013 18:56
REcipe data for student hackathon
LASAGNA
Time: 2 hrs
image: http://images.media-allrecipes.com/userphotos/250x250/00/03/24/32427.jpg
Ingredients:
For sauce:
3 onions, chopped
@ScottLNorvell
ScottLNorvell / bounce_exchange_challenge.js
Created December 12, 2013 15:53
Bounce Exchange Code Challenge
(function() {
var back_div, light_box, light_box_content, light_box_title, price_span;
// store cart_qty and cart_total in a global object
window.bounce = {};
// ===================================
// *** Centered overlay with ***
// *** semi-transparent background ***
// ===================================
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
(function() {
var d = new Date();
if (d.getMonth() == 9 && d.getDate() == 31) {
var img = new Image();
img.onload = function() {
var ms = 2000//Math.random() * 1000 + 500;
img.style.maxWidth = window.innerHeight;
setTimeout(function(img) {
showScaryPic(img)
@ScottLNorvell
ScottLNorvell / Soundcloud API Demo Homework.md
Last active December 26, 2015 11:28
Your Homework for %w[D F S].shuffle Soundcloud Demo!

Soundcloud API Demo

  1. Register at the soundcloud developer site.
  • You don't need to fill in the website box or redirect URI...
  • You will need your Client ID for the demo in class.
  1. Browse soundcloud or swim in the sound ocean.
  • Find a song that you REALLY like.
  • Copy the SOUNDCLOUD URL and keep it with your Client ID!
@ScottLNorvell
ScottLNorvell / to_money function
Created September 13, 2013 18:05
takes in a number and spits out a money (USD) version of that number including comma separations...
def to_money(num)
money_string = (num * 100).round.to_s
dollars = money_string[0...-2]
cents = money_string[-2..-1]
i = -4
comma_separated_dollars = dollars
while i.abs < dollars.length + 1
comma_separated_dollars.insert(i,',')
i -= 4