Work with engineers from another discipline to build a polished application for sharing links
As a user, I want to be able to
- save links that seem interesting
- see links that I've saved in the past
Element = Struct.new :datum, :next do | |
def tail? | |
!self.next | |
end | |
end | |
class SimpleLinkedList | |
attr_reader :size, :head | |
def self.from_a values |
http://requestb.in/1bhrpsc1
)method
and action
to your form: <form method="POST" action="http://requestb.in/1bhrpsc1">
function tickingPromise(seconds, value) { | |
return new Promise((resolve, reject) => { | |
let i = 0; | |
let timer = setInterval(() => { | |
i += 1 | |
console.log("Tick", i) | |
if (i == seconds) { | |
resolve(value) | |
clearInterval(timer) | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Counter</title> | |
<style type="text/css"> | |
h1 { | |
font-size: 80px; | |
color: rgb(0, 128, 0); | |
} |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main where |
## In `.zshrc` | |
# The autocomplete function should set `reply` to an array of possibilities | |
function tmux_sessions() { reply=( $(ta --available) ) } | |
compctl -K tmux_sessions ta | |
## In `/path/to/ta` - which should be executable and on your path | |
#!/usr/bin/env ruby |
rm -rf / |
#!/usr/bin/env ruby | |
word = ARGV.shift || "FIXME|TODO" | |
name = ARGV.shift || "James" | |
lines = `git grep -n -E '#{word}'` | |
lines.scan /(.*):(\d+)/ do |file, line| | |
up, down = line.to_i - 2, line.to_i + 5 | |
blame = `git blame -w -L#{up},#{down} #{file}` | |
if blame =~ /#{name}.*(#{word})/ |
set -g prefix C-b | |
# remap prefix to Control + a | |
# unbind C-b | |
# set -g prefix C-a | |
bind-key r source-file ~/.tmux.conf \; display-message " Config reloaded ... " | |
set -g history-limit 50000 |