Skip to content

Instantly share code, notes, and snippets.

View edwinestrada's full-sized avatar
🗽
freeing oppressed teams

Edwin Estrada edwinestrada

🗽
freeing oppressed teams
View GitHub Profile
@edwinestrada
edwinestrada / from-assessed.spec.coffee
Created January 12, 2018 15:15
Example Protractor Tests
do ->
'use strict'
### globals describe,it,browser,expect ###
describe 'On arriving to a conflicted snap that was previously assessed', ->
describe 'should have correct elements, title, and URL', ->
unassessedSnapPage = null
assessedSnapPage = null
@edwinestrada
edwinestrada / linkSwitcher.js
Last active September 15, 2017 06:43
Link switcher
var firstOldLink = 'http://www.frontlinesol.com/ideas/childrens-defense-fund-new-york';
var firstNewLink = 'http://www.frontlinesol.com/portfolio-item/strategy-and-planning-process';
var secondOldLink = 'http://www.frontlinesol.com/ideas/under-construction';
var secondNewLink = 'http://www.frontlinesol.com/portfolio-item/under-construction';
var thirdOldLink = 'http://www.frontlinesol.com/ideas/school-discipline-reform';
var thirdNewLink = 'http://www.frontlinesol.com/portfolio-item/michigan-racial-equity';
[
{
"name": "backlog",
"color": "235380"
},
{
"name": "bug",
"color": "fc2929"
},
{
@edwinestrada
edwinestrada / Gulpfile.js
Created December 18, 2015 19:09
WIP gulp file for snapsnip api
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var shell = require('gulp-shell');
var coffee = require('gulp-coffee');
var runSequence = require('run-sequence');
gulp.task('monitor-coffee-files', function() {
return gulp.watch(['lib/api/**/*.coffee'], ['clear-terminal', 'run-tests']);
});
@edwinestrada
edwinestrada / lightbox.css
Created October 30, 2015 12:24 — forked from Shiti/lightbox.css
AngularJS Lightbox directive
.modal {
width: 800px;
left: 40%;
}
.lightbox-content {
width: 100%;
}
.lightbox-image {
@edwinestrada
edwinestrada / .gitconfig
Last active January 23, 2016 01:52
Edwin's .gitconfig
[core]
excludesfile = /Users/edwin/.gitignore_global
editor = vim
[alias]
d = diff
ha = log --all --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
hs = log --all --format='%s%C(red)%d%Creset' --graph --date=short
rmrepair = status --porcelain | awk '/^.D .*$/ {print $2}' | xargs git rm
last = log --name-status HEAD^..HEAD
a = add .
@edwinestrada
edwinestrada / gist:6f5cc8add949d5974ded
Created July 19, 2015 22:04
Express - Static File Server
var express = require('express'),
app = express();
app.use(express.static('./'));
app.listen(1337);
console.log('Listening on port ' + 1337 + '...');

.tmux.config

# Mouse support - set to on if you want to use the mouse
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on

set -g default-terminal "xterm-256color"

# ----------------------
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Preloading Images In AngularJS With Promises
</title>
</head>
<body ng-controller="AppController">

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname