How to use:
./wordle.sh
Or try the unlimit mode:
pragma solidity 0.6.6; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";contract | |
AdvancedCollectible is ERC721, VRFConsumerBase { | |
uint256 public tokenCounter; | |
enum Breed{PUG, SHIBA_INU, BRENARD} | |
// add other things | |
mapping(bytes32 => address) public requestIdToSender; | |
mapping(bytes32 => string) public requestIdToTokenURI; | |
mapping(uint256 => Breed) public tokenIdToBreed; |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
#!/bin/bash | |
# TODO: skip tiny files (so small they couldn't be photos) | |
# TODO: make sure sym links and other file system oddities are handled | |
# TODO: look at paralellization for perf boost | |
# | |
# Constants | |
# | |
CHAR_COUNT=12 | |
BLOCK_COUNT=6 |
Updated: Just use qutebrowser (and disable javascript). The web is done for.
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
This document contains a common database updates in Drupal 7 projects.
Let's suppose we want to change field_article_summary
from text to textarea, but we do not care
about loosing its current data.
Start by removing the field through the Admin Interface in your local environment. Then, add the field with the new configuration and recreate the feature where it was exported. Finally, add the following database update:
/** | |
* Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
* | |
* This function was born in http://stackoverflow.com/a/6832721. | |
* | |
* @param {string} v1 The first version to be compared. | |
* @param {string} v2 The second version to be compared. | |
* @param {object} [options] Optional flags that affect comparison behavior: | |
* <ul> | |
* <li> |
<?php | |
$file = '/path/to/file.png'; | |
$filename = basename($file); | |
$upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
if (!$upload_file['error']) { | |
$wp_filetype = wp_check_filetype($filename, null ); | |
$attachment = array( | |
'post_mime_type' => $wp_filetype['type'], | |
'post_parent' => $parent_post_id, |