This file contains 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
import torch | |
import numpy as np | |
import k_diffusion as K | |
from PIL import Image | |
from torch import autocast | |
from einops import rearrange, repeat | |
def pil_img_to_torch(pil_img, half=False): | |
image = np.array(pil_img).astype(np.float32) / 255.0 |
This file contains 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
-7 | |
+16 | |
+5 | |
+11 | |
+18 | |
-14 | |
+11 | |
+14 | |
-2 | |
+13 |
This file contains 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
; Some of this comes from DrVax Monoprice M10 Start Code with some modifications by volker48 | |
G21 ;(metric values) | |
G90 ;(absolute positioning) | |
M82 ;(set extruder to absolute mode) | |
M107 ;(start with the fan off) | |
M104 S[first_layer_temperature] ; set extruder temp | |
M140 S[first_layer_bed_temperature] ; set bed temp | |
M190 S[first_layer_bed_temperature] ; wait for bed temp | |
M109 S[first_layer_temperature] ; wait for extruder temp | |
G28 ;(Home all axes) |
This file contains 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
import time | |
from fastapi import FastAPI | |
app = FastAPI() | |
@app.get("/fast") | |
async def fast(): | |
return {"message": "i was fast"} |
This file contains 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
# coding: utf-8 | |
# In[ ]: | |
import numpy as np | |
import pandas as pd | |
import xgboost as xgb | |
from scipy.sparse import csr_matrix |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXPav9z1wI47r7c6LY9bbwZM2Y7YexdiQ+NVPYaz25QX2MWohCeJNiev+svnd2o0WfBxqoWvjC9vtjU8ho8glcTQSsQs7B8npNsO8POpY9kMMR9ds2ypdtQUvrqpAQfZrW+xUKbgjzhZxhjG9h4RTkX0t/Mv8Heht44yn/1RK7oCDzs2pb1NaeOItY4d2VfgrrCIonVFhUf2l8t5OYZDOCm9R9Yu4whmmpLFh6mFmNLMPPV2/SmUOrw7iMO5CFsZz1Np1FjMEFYWnWOjlZQYAAVEzcSnPA6j/Hhp2sER/P8WVOnt/+WkQctvuUMNIN+Kjn9oLx492xsqCuyWXvbD03 marcus@squatobot |
This file contains 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 main | |
import ( | |
"log" | |
"time" | |
) | |
func main() { | |
// anonymous function | |
go func() { |
This file contains 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/sh | |
# script for optimizing images in a directory (recursive) | |
# pngcrush & jpegtran settings from: | |
# http://developer.yahoo.com/performance/rules.html#opt_images | |
# pngcrush | |
for file in `find -E . -regex '.*\.(jpg|png)'`; do | |
if [ ${file: -4} == ".png" ] | |
then |
This file contains 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
#! /usr/bin/env python | |
''' | |
Copyright (c) 2012 Marcus McCurdy | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, | |
publish, distribute, sublicense, and/or sell copies of the Software, | |
and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
This file contains 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
Host: app.plusplus.com | |
User-Agent: Skee-Ball-HD-Free/2.5 PlusPlus/2.5.0.7 iPhone OS/5.1.1 | |
Accept: application/binary-plist, application/json | |
Accept-Encoding: gzip | |
If-None-Match: | |
Authoriza |
NewerOlder