- Rename variable
- Extract variable
- Extract constant
- Extract field (Java)
- Type migration
- Extract Component (React)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_NAME := $(shell basename $(shell pwd)) | |
BUILD_DIR := build | |
SRC_DIR := src | |
SRCS := $(shell find $(SRC_DIR) -name '*.java') | |
CLSS := $(SRCS:$(SRC_DIR)/%.java=$(BUILD_DIR)/%.class) | |
.PHONY: run | |
run: $(BUILD_DIR)/$(APP_NAME).jar | |
java -jar $(BUILD_DIR)/$(APP_NAME).jar $(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bspaulding-dev-clojure-deployment | |
labels: | |
app: bspaulding-dev-clojure | |
spec: | |
selector: | |
matchLabels: | |
app: bspaulding-dev-clojure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk add subversion make bison g++ flex | |
WORKDIR /spim-src | |
RUN svn checkout svn://svn.code.sf.net/p/spimsimulator/code/ spimsimulator-code | |
RUN cd spimsimulator-code/spim && make install | |
RUN rm -rf /spim-src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "xterm" | |
setw -g mode-keys vi | |
set -sg escape-time 10 | |
bind j select-pane -D | |
bind k select-pane -U | |
bind h select-pane -L | |
bind l select-pane -R | |
bind | split-window -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveGeneric, OverloadedStrings, OverloadedLabels #-} | |
module Main where | |
import Database.Selda | |
import Database.Selda.SQLite | |
import Database.Selda.Backend | |
data Pet = Dog | Horse | Dragon | |
deriving (Show, Read, Bounded, Enum) | |
instance SqlType Pet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Levenshtein Distance | |
// https://en.wikipedia.org/wiki/Levenshtein_distance | |
function distance(a, b) { | |
if (!a.length || !b.length) { | |
return 0; | |
} | |
const cost = a[a.length - 1] === b[b.length - 1] ? 0 : 1; | |
const atrim = a.slice(0, a.length - 1); | |
const btrim = b.slice(0, b.length - 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const prettier = require('prettier'); | |
const package = JSON.parse(fs.readFileSync('package.json', 'UTF-8')); | |
function updateDeps(deps) { | |
let newDeps = {}; | |
for (let name in deps) { | |
const version = deps[name]; | |
if(!version.match(/^([0-9]|file:|git)/)) { | |
const localPackage = JSON.parse(fs.readFileSync(`./node_modules/${name}/package.json`)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# The FreeType rasterizer needs to know the device DPI for best results | |
# (changes require restart) | |
dpi: | |
x: 96.0 | |
y: 96.0 | |
# Display tabs using this many cells (changes require restart) | |
tabspaces: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
alert("hello, shortcuts"); | |
</script> | |
</html> |
NewerOlder