Skip to content

Instantly share code, notes, and snippets.

https://proof.im/jshawl/on-github
BEGIN MESSAGE.
R2OFwXpj6r14KZU rFAdoDJbSOtDbOV v1E8HCr2m0jJHkH 0FKeg15ik38kOI1
QJlxKXuM1Bqjb4c esJ27OqB5DjTCKq 6Xr2MZHgg4ZqmOy c03H6OpdbZLxx80
Xx0HXkoZbOW8nCN Fk5pSJww72nNXyi tTCBChaNqscchy7 cZVBdQGOWsIb9ne
jCn1b12rjmYr67A YTfL0vDGtxe0i2w L5QHq21.
END MESSAGE.
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@jshawl
jshawl / docker-compose.yml
Last active December 2, 2018 16:13
Simplest possible Wordpress + MySql + phpMyAdmin docker-compose.yml
version: '3.3'
services:
db:
container_name: db
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@jshawl
jshawl / app.rb
Last active August 14, 2023 22:19
Combine Two CSVs side-by-side
require 'csv'
# note: << in ruby is the same as .push
# [1,2] << 15 #=> [1,2,15]
new_csv = []
CSV.foreach('csv1.csv') do |csv1|
new_csv << csv1
end

Keybase proof

I hereby claim:

  • I am jshawl on github.
  • I am jshawl (https://keybase.io/jshawl) on keybase.
  • I have a public key whose fingerprint is A7D6 9D8E 4890 780A 6598 7BF0 0060 9B50 41C8 7746

To claim this, I am signing this object:

<style media="screen">
.container div{
width:25%;
height:100px;
float:left;
transition: all .2s ease;
}
</style>
<div class='container'>
<div style='background:red;'></div>
import java.util.Scanner;
public class OnTheMoney {
public static void main(String[] args) {
String n;
String lastName;
int denom;
//"denom" will be the variable used for either the $1, $10, or $100
Scanner sc = new Scanner (System.in);
@jshawl
jshawl / app.rb
Created September 27, 2016 19:38
while true
while true
puts "press enter"
input = gets.chomp
break if input != ""
end
puts "you lose"
puts "do you want to play again?"
input = gets.chomp
if input == "no"
import React from 'react'
import ReactDOM from 'react-dom'
class NewItem extends React.Component {
constructor(props){
super()
this.state = props
}
render(){
return <form onSubmit={ e => this.create(e) }>