Skip to content

Instantly share code, notes, and snippets.

Jesse Shawl jshawl

Block or report user

Report or block jshawl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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) }>
View index.js
import React from 'react'
import ReactDOM from 'react-dom'
class GrandParent extends React.Component {
listen(sound){
console.log(sound)
}
render(){
return <div>
<Parent listen={sound => this.listen(sound) }/>
View fb.py
# regular
for i in range(1,101):
if i % 15 == 0:
print "fizzbuzz"
elif i % 3 == 0:
print "fizz"
elif i % 5 == 0:
print "buzz"
else:
View precess-input-1466110362.scss
$x: 10px;
.cli{
height:$x;
width:$x;
background:#000;
margin:1em;
box-shadow:
$x 0 0 #fff
,2 * $x 0 0 #fff
,3 * $x 0 0 #fff
You can’t perform that action at this time.