Skip to content

Instantly share code, notes, and snippets.

View jbfink's full-sized avatar
💭
we have statuses now? is this AOL?

John Fink jbfink

💭
we have statuses now? is this AOL?
View GitHub Profile
package hamming
//import "errors"
import "strings"
//import "fmt"
func Distance(a, b string) (int, error) {
a1 := strings.Split(a, "")
b1 := strings.Split(b, "")
(set: $eyes to (random:1,5))
#!/bin/bash
rm /tmp/file.txt
cat /home/jbfink/guelph/receipt-generator/texts/header.txt >> /tmp/file.txt
echo -e "\n" >> /tmp/file.txt
cat "/home/jbfink/guelph/receipt-generator/texts/"$1".txt" >> /tmp/file.txt
echo -e "\n" >> /tmp/file.txt
dadadodo -c 2 /home/jbfink/guelph/receipt-generator/embargoed/*.txt >> /tmp/file.txt
echo -e "\n" >> /tmp/file.txt
# Copy this file to /etc/systemd/system/multi-user.target.wants/docker.service (but back up docker.service first!)
# then run:
# sudo systemctl daemon-reload
# sudo service docker restart
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
version: "3"
services:
shiny:
image: rocker/shiny
ports:
- "3840:3838"
volumes:
- ./schmidtke:/mnt/space
networks:
- shinynet
<?xml version="1.0" encoding="UTF-8"?>
<module fritzingVersion="0.9.3b.04.19.5c895d327c44a3114e5fcc9d8260daf0cbb52806">
<boards>
<board moduleId="TwoLayerRectanglePCBModuleID" title="Rectangular PCB - Resizable" instance="PCB1" width="8.46667cm" height="5.64444cm"/>
</boards>
<views>
<view name="breadboardView" backgroundColor="#ffffff" gridSize="0.1in" showGrid="1" alignToGrid="1" viewFromBelow="0"/>
<view name="schematicView" backgroundColor="#ffffff" gridSize="0.1in" showGrid="1" alignToGrid="1" viewFromBelow="0"/>
<view name="pcbView" backgroundColor="#333333" gridSize="0.1in" showGrid="1" alignToGrid="1" viewFromBelow="0" autorouteTraceWidth="24"/>
</views>
#!/bin/bash
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
docker volume rm $(docker volume ls -qf dangling=true)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require 'twitter_ebooks'
# Information about a particular Twitter user we know
class UserInfo
attr_reader :username
# @return [Integer] how many times we can pester this user unprompted
attr_accessor :pesters_left
# @param username [String]
#!/bin/bash
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
docker volume rm $(docker volume ls -qf dangling=true)