Skip to content

Instantly share code, notes, and snippets.

View allilevine's full-sized avatar

Allison Levine allilevine

View GitHub Profile
  1. Open the spreadsheet where your Google Form responses are collected.

  2. Go to "Tools" -> "Script Editor"

  3. Copy and paste the script below.

  4. For SlackName, fill in your Slack's address/slug (e.g. from https://your-slack-name-is-here.slack.com).

  5. For SlackToken, create a new app at https://api.slack.com/ and give it 'Admin' Permissions Scope. Click "Install" to add the app to your Slack. Copy the app token that shows up (should include xox and a dash).

@allilevine
allilevine / Anchor Links and Smooth Scrolling with React Router
Created September 20, 2017 17:38
Anchor / Hash Links and Smooth Scrolling with React Router
@allilevine
allilevine / Notes from Hack Oregon Jan 24 2017 Front-End Workflow Meeting.md
Last active August 29, 2020 22:52
Notes from Hack Oregon Jan 24 2017 Front-End Workflow Meeting

Meeting Purpose: David Daniel, Housing tech-lead and Data Visualization instructor, has developed a front-end workflow and a set of tools that all project teams will be using. He'll be discussing how we can contribute and utilize the Hack Oregon reusable react.js component library, dealing with routing issues and state, and utilizing React Storybook as UI style guide and development environment.


Connecting the Projects Through Redux & Routes

David is developing boilerplate but don't feel constrained to stick to it. So far each project has been self-contained, to add front-end to API, but this time...new platform. How will they all work together? End goal is site where people can look at different story cards for all the projects, URLs like civic.hackoregon.org/housing. Answer: React Redux and React Router. Also we may stick to Webpack 1 or Webpack 2 beta to avoid major changes / re-learning.

Using Storybook & Components

Storybook is a dev environment for making components, t

@allilevine
allilevine / 000000gitfold
Last active December 22, 2015 10:44
the story continues
This is the beginning of a story about a dumpling. The dumpling was working on a hackday project when...
// I wanted to use this method (http://codepen.io/jcasabona/pen/fKgCA) of displaying random background images with Sass, but I didn't want to type out each image file name, so instead I used a loop:
$random_images_path: "../../../uploads/";
$imagesarray: ('');
@for $i from 1 through 40 {
$value: $random_images_path + "/sitename" + $i + ".jpg";
$imagesarray: append($imagesarray, $value);
}
$img: nth($imagesarray, random(length($imagesarray) -1));