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 gradio as gr | |
import spaces | |
from diffusers import StableCascadeCombinedPipeline | |
import os | |
import torch | |
from PIL import Image | |
import random | |
# Constants | |
repo = "stabilityai/stable-cascade" |
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
# The machine library contains functions you can use control the Pico hardware. | |
# In this example program, we're using the Pin class to configure and control | |
# the GPIO pins. | |
from machine import Pin | |
# The utime library contains functions that allow us to read the current time | |
# and to delay (aka 'sleep') for seconds, milliseconds, or microseconds. | |
import utime | |
# main runs until stopped, blinking the Pico built-in LED at 1 second intervals. |
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 picodma // abitrary package name to keep Go happy | |
/** | |
* TRANSLATED FROM pico-sdk hardware/regs/dma.h which is Copyright (c) | |
* 2021 Raspberry Pi (Trading) Ltd. SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
// ============================================================================= | |
// Register block : DMA | |
// Version : 1 | |
// Bus type : apb |
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
/* | |
BlinkRGB | |
Author: Mike Ellis | |
Example code showing how use the millis() function to blink | |
3 different LED's at different rates. | |
This code is in the public domain. | |
*/ |
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 ( | |
"flag" | |
"log" | |
"time" | |
"net/http" | |
_ "net/http/pprof" |
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 ( | |
"fmt" | |
"fyne.io/fyne" | |
"fyne.io/fyne/app" | |
"fyne.io/fyne/layout" | |
"fyne.io/fyne/theme" | |
"fyne.io/fyne/widget" |
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/osascript | |
-- OS X script for "spring-loaded" app switching | |
-- Useful if you have a preferred app for jotting notes and ideas. | |
-- I use MacVim with Vimwiki, but you can use whatever by changing one line in this script. | |
-- To make this useful, you need to assign a hotkey. | |
-- OS X won't let you directly assign a hotkey to a script. | |
-- You can get around that by creating an Automator Service that runs this script. | |
-- See http://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote for how to do that. | |
-- I use Ctrl-Cmd-B because its not commonly used by other apps. You may need something else. |
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
""" | |
Python (2.x) brute force solver for fivethirtyeight.com Riddler Express problem 10/21/2016. | |
May be applied to any ascii text file containing a list of words to be considered. | |
Tested with word2.txt file from https://github.com/dwyl/english-words. | |
Usage: | |
python riddler161021.py <textfile> | |
Author: Michael F. Ellis |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PURE Test</title> | |
<script src="http://pure.github.io/pure/libs/pure.js"></script> | |
</head> | |
<body> | |
<!-- HTML template --> | |
<div data-role="page"> |