Skip to content

Instantly share code, notes, and snippets.

View jack-champagne's full-sized avatar
🎇
Having fun

Jack Champagne jack-champagne

🎇
Having fun
View GitHub Profile
import os
import shutil
import time
source = "C:\\Users\\juliu\\OneDrive\\Pictures\\Screenshots\\"
dest = "C:\\Users\\juliu\\Picture\\iCloud Photos\\Photos"
source_list = []
os.chdir(os.path(source))
@jack-champagne
jack-champagne / CIFAR-Networks.txt
Last active August 17, 2021 04:57
PyTorch Description of Convolutional Neural Networks
P4MNetC(
(conv1): P4MConvZ2()
(conv2): P4MConvP4M()
(conv3): P4MConvP4M()
(fc1): Linear(in_features=48, out_features=32, bias=True)
(fc2): Linear(in_features=32, out_features=10, bias=True)
)
P4NetC(
(conv1): P4ConvZ2()
(conv2): P4ConvP4()
@jack-champagne
jack-champagne / 370code.Rmd
Created April 26, 2021 16:35
math370-final
---
title: "370 Work"
author: "Ryan Grossman"
date: "4/20/2021"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
def rulesTrue(m, p ,s, k, b, c):
c1 = (c <= (k and m))
c2 = (not p or s) <= (b or c)
c3 = (p and c) <= (not m)
c4 = (not s) <= (p or not k)
c5 = b <= (not k and not p)
c6 = (not s or not k) <= c
return (c1 and c2 and c3 and c4 and c5 and c6)
@jack-champagne
jack-champagne / pc_to_phone.py
Last active June 26, 2020 20:07
pc to phone takes CLI input or clipboard and send it to a phone using provider sms gateway.
#! python
import smtplib
import pyperclip as clip
import sys
import os
def send_msg(message):
print("Sending %s" % (message))
message = "\r\n".join([
@jack-champagne
jack-champagne / umass-makerspace-blog-header
Created April 15, 2020 01:24
The header template for the UMass Amherst Makerspace blog. https://github.com/UMass-Makerspace/blog/
---
layout: post # Do not change
current: post # Do not change
cover: assets/path/to/cover/photo.png # Path to cover photo in assets folder
navigation: True # Do not change
title: My Title! # Title of post
date: 2099-00-00 01:00:00 # Date of post
tags: [articles] # Post tag (This will not be changed often)
class: post-template # Do not change
subclass: 'post tag-articles' # Do not change