Skip to content

Instantly share code, notes, and snippets.

View kauffmanes's full-sized avatar

Emily Kauffman kauffmanes

View GitHub Profile
@kauffmanes
kauffmanes / GetStarted.md
Last active April 20, 2018 00:04
Getting Started File

Getting Started

Codearena is a tool to aid in accessibility in the classroom.

Download the project from courseweb. It is a zip file consisting of two folders: codearena-api and codearena-client. Codearena-api is the Erlang server and codearena-client is the web interface.

Database Setup

This application uses CouchDB to store the code arenas. To set this up, create a database called arenas.

Dependencies:

  • couchdb (installed and running)
%% @author kauff
%% @doc @todo Add description to serv1.
-module(serv1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([start/0, start/1, stop/1]).
%% @author kauff
%% @doc @todo Add description to client1.
-module(client1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([connect/0, connect/1, send/2]).
-define(TCP_OPTIONS, [binary, {packet, 0}, {active, false}, {reuseaddr, true}]).
@kauffmanes
kauffmanes / serv1.erl
Last active March 31, 2018 14:38
The Server module for my Erlang homework 6
%% @author kauff
%% @doc @todo Add description to serv1.
-module(serv1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([start/0, start/1, stop/1]).
@kauffmanes
kauffmanes / client1.erl
Last active March 31, 2018 14:37
The Client application for my Erlang chat server
%% @author kauff
%% @doc @todo Add description to client1.
-module(client1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([connect/0, connect/1, message/2]).
@kauffmanes
kauffmanes / frontend-commands.md
Last active March 14, 2018 14:34
A growing list of my most used commands in front end development (with some hacks to make stupid things work)

Emily's List of Most Used Frontend Developer Command Line Commands

This is a growing list of the (mostly) Unix-like commands that I use the most while working on frontend projects. When I use the word "print" below, I probably mean log something to the terminal. Some commands are prefix by $ to show it's a command line command - don't actually type the $.

The Basics

Command Description Note
$ pwd Print current directory
$ ls -a Lists everything in the current directory, including hidden files (-a). This lets you makes sure you can see your .gitignore, .bashrc, etc
$ mkdir example && cd $_ Makes a new directory and immediately goes into it.
$ mkdir -p example Makes a new directory IF one of the same name doesn't already exist.
@kauffmanes
kauffmanes / showdots.sh
Created December 11, 2017 16:01
Show dot files on Mac
#!/bin/bash
#show .
defaults write com.apple.finder AppleShowAllFiles YES
#hide .
defaults write com.apple.finder AppleShowAllFiles NO
#hold option/alt, right-click Finder and relaunch
@kauffmanes
kauffmanes / clear-git-cache.sh
Created December 1, 2017 16:02
Clear git cache
git rm -r --cached .
git add .
git commit -am 'cleared git cache'
git push
@kauffmanes
kauffmanes / wp-permissions.sh
Last active December 11, 2017 12:41
Setting folder and file permissions for a Wordpress site
#!/bin/bash
#folders
sudo find <dir> -type d -exec chmod 755 {} \;
#files
sudo find <dir> -type f -exec chmod 644 {} \;
#wp-config
sudo chmod 600 wp-config.php
@kauffmanes
kauffmanes / GIF-Screencast-OSX.md
Created November 14, 2017 13:41 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: