Skip to content

Instantly share code, notes, and snippets.

Avatar
🔏
git push -f

Jesse Shawl jshawl

🔏
git push -f
View GitHub Profile
View proofim.txt
https://proof.im/jshawl/on-github
View keys.pub
BEGIN MESSAGE.
R2OFwXpj6r14KZU rFAdoDJbSOtDbOV v1E8HCr2m0jJHkH 0FKeg15ik38kOI1
QJlxKXuM1Bqjb4c esJ27OqB5DjTCKq 6Xr2MZHgg4ZqmOy c03H6OpdbZLxx80
Xx0HXkoZbOW8nCN Fk5pSJww72nNXyi tTCBChaNqscchy7 cZVBdQGOWsIb9ne
jCn1b12rjmYr67A YTfL0vDGtxe0i2w L5QHq21.
END MESSAGE.
View docker-compose.yml
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 Dec 2, 2018
Simplest possible Wordpress + MySql + phpMyAdmin docker-compose.yml
View 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 Apr 12, 2018
Combine Two CSVs side-by-side
View app.rb
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
View keybase.md

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:

View index.html
<style media="screen">
.container div{
width:25%;
height:100px;
float:left;
transition: all .2s ease;
}
</style>
<div class='container'>
<div style='background:red;'></div>
View OnTheMoney.java
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);
View app.rb
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"
View index.js
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) }>