start new:
tmux
start new with session name:
tmux new -s myname
import React from 'react' | |
import PropTypes from 'prop-types' | |
import { graphql } from 'gatsby' | |
import styled from '@emotion/styled' | |
import { Layout, Listing, Wrapper, Title, SEO, Header } from '../components' | |
import website from '../../config/website' | |
const Hero = styled.header` | |
padding-top: 1rem; | |
padding-bottom: 4rem; |
public class OptionTest { | |
private List<Option<String>> names = null; | |
@Before | |
public void setup() { | |
names = new ArrayList<Option<String>>(); | |
names.add(new Some<String>("Dean")); | |
names.add(new None<String>()); | |
names.add(new Some<String>("Wampler")); | |
} | |
@Test |
public final class None<T> extends Option<T> { | |
public static class NoneHasNoValue extends RuntimeException {} | |
public None() {} | |
public boolean hasValue() { return false; } | |
public T get() { throw new NoneHasNoValue(); } | |
public final class Some<T> extends Option<T> { | |
private final T value; | |
public Some(T value) { this.value = value; } | |
public boolean hasValue() { return true; } | |
public T get() { return value; } | |
public class ListModule { | |
public static interface List<T> { | |
public abstract T head(); | |
public abstract List<T> tail(); | |
public abstract boolean isEmpty(); | |
public List<T> filter(Function1<T, Boolean> f); |
//Anotation for fields need to check | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.FIELD) | |
public @interface ModifiableField { | |
} | |
public abstract class PersistedObject { | |
public static final long UNSET_PRIMARY_KEY = 0L; |
{"lastUpload":"2019-09-22T20:45:43.031Z","extensionVersion":"v3.2.9"} |
/** | |
* @return a lazily populated stream of customers. Note the stream returned must be closed to | |
* free all the acquired resources. The stream keeps an open connection to the database till | |
* it is complete or is closed manually. | |
*/ | |
@Override | |
public Stream<Customer> getAll() throws Exception { | |
Connection connection; | |
try { |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# switch panes using Alt-arrow without prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D |