Skip to content

Instantly share code, notes, and snippets.

@chandracarney
chandracarney / denver.md
Last active June 23, 2016 17:59
Denver: eat/drink/enjoy

Food

  • Root Down
  • The Kitchen
  • The Kitchen Next Door (order the Beet Burger)
  • City O' City (good vegan/vegetarian food)
  • Old Major

Mexican

  • El Taco De Mexico (I order the Chile Relleno Burrito smothered)
  • La Loma (order something with green chile and fresh tortillas)

##Redux How do you add Redux in a React project? It can be added via npm with the model builder or it can be added as a script tag from CDNjs.

State mutations need to be described as a pure function that take the previous state and action being dispatched and returns the next state of an application. It is important that it does not modify the given state (it must be a pure function) so it returns a new object.

###Store Binds together 3 principles of Redux:

  • Holds current app's state objects.
  • Lets you dispatch actions.
  • Updates state with actions (when it is created, we need to specify the reducer that tells how state is updated with these actions).
@chandracarney
chandracarney / AccessibleTechnology.md
Last active August 29, 2015 14:15
Lightning Talk: Technological Advances for Accessibility

##Talking Signs

  • Remote Infrared Audible Signage System (RIAS)
  • Short audio signals by infrared light to a hand-held receiver decodes the signal and delivers the voice message through the headset.
  • Navigation for landmark identification and wayfinding assistance.
  • Developed by a team of blind and sighted engineers in 1993.

##Beacons

  • San Francisco Airport, developed by http://indoo.rs/
    • Installed around the terminal for better navigation.
  • Art shows, developed by UCAN GO
@chandracarney
chandracarney / storedom-active-record-challenges.md
Last active August 29, 2015 14:15
Storedom Active Record Challenges

Active Record Solutions

  1. Find all the items that have the word "elegant" in it. Item.all.where("name LIKE ?", "%elegant%")

  2. Add three orders to a user. user = User.last
    3.times { Order.create(amount: 1000, user_id: user) }

or

@chandracarney
chandracarney / SlackEtiquette.md
Last active May 26, 2017 01:57
Slack Etiquette

Who uses Turing Slack?

Turing has a large community of people who use Slack: mentors, teachers, guests, students, and alumni. Members should be mindful of other people's involvement in the Turing Slack community. Many mentors and guests are in different time zones, and most students need their sleep when they can get it (see: night owls or early birds). Please be aware of your local time and other users' local time when you are sending a message that will notify other members of the message. Most users have phone and/or email notifications (@channel (see below) and direct message) turned on.

When Should I @channel?

Almost never. Especially in the community channel. Here are things to ask yourself before you send out a message using @channel:

  • Is this message important to everyone in this channel?
  • Does this message directly impact everyone in this channel?
  • Will this message wake anyone up
@chandracarney
chandracarney / gist:ab74e5b7b262d2f8bdbc
Created January 22, 2015 06:10
Lightning Talk - Art and Technology
How does technology influence art?
Historically signifiacant architecture and artworks influenced by technology:
-Woman from Willendorf - From Austria. c. 24,000 BCE. Limestone
-Wall Painting with Horses, Rhinoceroses, and Aurochs - Chauvet Cave. Vallon-Pont-d'Arc, Ardèche, France. c. 32,000-30,000 BCE
-Stonehenge, Salisbury Plain, Wiltshire, England. c. 2900-1500
-Funerary Mask of Tutankhamun - Eighteenth Dynasty (Tutankhamun, r. c. 1332-1322 BCE), c. 1327
-Great Sphinx, Funerary Complex of Khafre, Giza. Old Kingdom, c. 2520-2494 BCE
-Colossal Head, San Lorenzo, Mexico. Olmec culture, c. 1200-900 BCE
-North Acropolis, Tikal, Guatemala. Maya culture. 4th century BCE-5th century CE.
@chandracarney
chandracarney / sessions-cookies
Last active August 29, 2015 14:10
Carts: Sessions and Cookies
1. What's the difference between a cookie and a session?
Session is a concept, cookie is a tool
A cookie is part of the response from the server to the client, it is a string of data. Client receives the encrypted cookie from the server, performs no action, they just store it. When client makes their next request from the server, it sends the encrypted cookie and the server can verify that it created it. If you have tampered with the cookie, the server will not recognize it and it will say something like "your session has expired". Want to store as little information as possible in the cookie. Can use a "replay attack" to generate a new cookie.
CSRF token helps block some bad requests. In the session, data will persist across all requests. We are getting back. The session method uses the cookie to store its data. You can store a little or a lot of data in the cookie. You have to have a cookie in order to have sessions. Could create a policy in the client-side that expires cookies in one week. Most p
@chandracarney
chandracarney / atomcheatsheet.md
Last active April 23, 2017 13:41
Atom Cheatsheet

##Useful packages:

  • Trailing Spaces (shows if you have extra whitespace anywhere in your project. I recommend changing the highlight color from blue)
  • Highlight Selected (upon double-click- shows multiples of words in file: useful when trying to see where a variable is coming from)
  • Seeing is Believing (most of us have this, though)

##Useful commands in general on an Apple (these also apply in Atom):

  • command + tab: switches between applications
  • command + ~: switches between windows of the same application
  • command + number: changes to specific tabs if you have multiples open (may not work in Safari)
  • command + W: closes window/tab
@chandracarney
chandracarney / LightningTalkAccessibility
Last active August 29, 2015 14:09
Lightning Talk - Accessbility
How to program with accessibility in mind.
What is web accessibility?
-Accessibility on the web includes those with visual, auditory, physical, speech, cognitive, and neurological impairments
Focus on accessibility for individuals with visual impairments
-people who are completely blind
-people who are color blind
How does someone who is completely blind use the web?
@chandracarney
chandracarney / restful
Last active August 30, 2015 10:56
REST
Posts Posts Controller
POST -> CREATE index
PUT -> READ create
PUT -> UPDATE show
DELETE -> DESTROY edit
PATCH -> UPDATE update
head destroy
update