This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hamming | |
//import "errors" | |
import "strings" | |
//import "fmt" | |
func Distance(a, b string) (int, error) { | |
a1 := strings.Split(a, "") | |
b1 := strings.Split(b, "") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set: $eyes to (random:1,5)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
shiny: | |
image: rocker/shiny | |
ports: | |
- "3840:3838" | |
volumes: | |
- ./schmidtke:/mnt/space | |
networks: | |
- shinynet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |