HuggingFace Page for model download: https://huggingface.co/hakurei/waifu-diffusion-v1-3
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
| using System.Net; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| namespace fastRequests | |
| { | |
| internal static class Program | |
| { | |
| private const string Host = "example.com"; | |
| private const string Url = "https://example.com/"; |
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
| /** | |
| * An example of the method for the specific case of finding patterns of mushroom islands. Some things, | |
| * like the layerseed will be hardcoded which should eventually be computed dynamically | |
| * depending on which layer and nextInt call the user wishes to target. | |
| */ | |
| public class MushroomCondition { | |
| final static long SHROOM_LAYER_SEED = -7479281634960481323L; //must be computed for each layer, maybe a LUT? | |
| final static long EPSILON = (1L << 32); |
-
java.util.Random, An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.)
-
This class has 6 nifty functions:
- nextBoolean()
- nextDouble()
-
nextFloat()
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
| library(geniusR) | |
| library(tidyverse) | |
| library(tidytext) | |
| album_texty <- genius_album(artist = "The Doors", album = "The Doors") | |
| tidy_album <- album_texty %>% | |
| unnest_tokens(word,lyric) %>% | |
| anti_join(stop_words) |
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
| import pickle | |
| class Rick: | |
| def __str__(self): | |
| return "i'm pickle rick!!!!" | |
| pickle_rick = pickle.dumps(Rick()) | |
| regular_rick = pickle.loads(pickle_rick) | |
| print(regular_rick) | |
| # >>> i'm pickle rick!!!! |
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
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
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
| license: mit |
This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.
To use the script, follow the instructions given in the script's docstring.
For further details, read this blogpost.
The procedure outlined here is inspired by this answer on Stack Overflow.
NewerOlder