-
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 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 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 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); |
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
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/"; |
HuggingFace Page for model download: https://huggingface.co/hakurei/waifu-diffusion-v1-3
OlderNewer