Skip to content

Instantly share code, notes, and snippets.

View Borgaard's full-sized avatar

Nicole Borgaard Borgaard

  • General Assembly
  • San Francisco, CA
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<title>jQuery Practice</title>
</head>
<body>
<div id="content">
<div class="entry">
<h1>You Won't Believe What Happens When You Click This Link</h1>
<a href="#">Click me!</a>
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
### Keybase proof
I hereby claim:
* I am Borgaard on github.
* I am whygaard (https://keybase.io/whygaard) on keybase.
* I have a public key whose fingerprint is 1700 907E BF38 6DB1 330E 1040 EC0E 8912 E09F 6854
To claim this, I am signing this object:
@Borgaard
Borgaard / README.md
Last active August 29, 2015 14:27 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@Borgaard
Borgaard / introrx.md
Created December 31, 2015 08:12 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@Borgaard
Borgaard / sochatty.html
Created January 3, 2016 05:57
All the chats
<html>
<body>
<div id="chat-window"></div>
<div id="chat-form">
<form id="formy">
<textarea name="chat-entry" id="chat-entry" cols="30" rows="2"></textarea>
<input type="submit" value="ChatzOr"></input>
</form>
</div>
<html>
<style>
.timeColor {
color: gray;
margin-right: 5px;
}
.userColor {
color: orange;
margin-right: 5px;
}
@Borgaard
Borgaard / installbookmarklet.html
Last active January 14, 2016 05:14
bookmarklet
dropbox alternative

Installing PostgreSQL

Go to the postgres documentation:
http://postgresapp.com/documentation/cli-tools.html
cd ~
open .bash_profile (if you're using zshell, use open .zshrc instead.)

Add this to the last line of your .bash_profile or .zshrc file:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

rails new postgres_app --database=postgresql

@Borgaard
Borgaard / 05_hubot_instructions.md
Created August 25, 2016 03:15
Hubot Instructions for JSD3

Unit Project #1: Slackbot

Overview

We've been using Slack to communicate with each other for the first couple weeks of the class. Now it is time to build our very own Slackbot to add a fun interactive component to the chat room. A Slackbot is an integration into slack that can either respond to specific phrases that are mentioned in Slack or they can post things from outside of slack into a channel or private conversation. There are now entire startups built on top of Slackbots. For example, people have built Slackbots that let you hail an Uber from them or schedule meetings with different members of your team (where it searches your Google Calendar). One of the most popular Slackbots lets people post random gifs based on phrases into a channel from Giphy.

For our first project, we are going to keep things simple. We will build a Slackbot on top of the popular Github bot called [Hubot](https://github.com