Generative Model:
Predictive Model:
#!/bin/bash | |
set -e | |
while true; do | |
log="$HOME/.npm/_logs/`ls $HOME/.npm/_logs/ | tail -n 1`" | |
echo "log: $log" | |
for path in `cat "$log" | grep 'ENOTEMPTY' | grep -oE "[^']+node_modules[^']+"`; do | |
echo "removing $path" | |
rm -rf "$path" | |
done |
source ~/.zshrc.java | |
source ~/.zshrc.git |
class CommentsController < ApplicationController | |
# GET /comments | |
# GET /comments.json | |
def index | |
@comments = Comment.all | |
respond_to do |format| | |
format.html # index.html.erb | |
format.json { render json: @comments } | |
end |
#!/bin/sh | |
# Usage: | |
# ./release-items.sh last-release-tag jira_number_prefix [-v] | |
jira_prefix=$1 | |
since_tag=$2 | |
if [ -z "$3" ]; then | |
lines=$(git log --oneline --first-parent "$since_tag"..HEAD | cut -d ' ' -f 5- | sed -nE "s/.*((:?${jira_prefix})\-[0-9]{3,6}).*/\1/p") |
module AbstractBeverage | |
def cost | |
raise Exception, %Q|You should implement the cost for #{self.class}| | |
end | |
end | |
class DarkRoast | |
include AbstractBeverage | |
COST = 0.99 | |
def cost |
apiVersion: argoproj.io/v1alpha1 | |
kind: WorkflowTemplate | |
metadata: | |
name: my-app-batch | |
namespace: appns | |
spec: | |
volumes: | |
- name: all-configs | |
configMap: | |
name: my-app-batch-config |
https://drive.google.com/file/d/1yGUE5vHh1apYhjR6kjmqAwOHnE7PF1Oo/view?usp=drivesdk |
something else |
alias gs="git status" | |
function gds(){ | |
git diff --color=always --staged "$@" | less -rS | |
} | |
function gd(){ | |
git diff --color=always "$@" | less -rS | |
} |