Skip to content

Instantly share code, notes, and snippets.

export const TextDayPicker = forwardRef(
({ date = '', onChange, format: displayFormat = 'Do MMMM YYYY', ...props }, ref) => {
const formatDate = newDate => (newDate ? format(newDate, displayFormat) : '');
const [isEditing, setIsEditing] = useState(false);
const [value, setValue] = useState({
raw: date,
formatted: formatDate(date),
});

[window] id = "title_screen" description = "The game's main menu."

[resolution]
	definition = "title_screen"

	{GUI_WINDOW_FULLSCREEN}

[tooltip]

//
// Implementaiton borrowed from https://dev.to/thomasaudo/get-started-with-github-grapql-api--1g8b
//
require('dotenv-safe').config();
const Axios = require('axios');
const endpt = 'https://api.github.com/graphql';
const oauth = { Authorization: `bearer ${process.env.AUTH_TOKEN}`};
@Vultraz
Vultraz / wml_action_message.lua
Last active September 16, 2015 15:40 — forked from CelticMinstrel/wml_action_message.lua
A Lua implementation of Wesnoth's [message] WML tag
local helper = wesnoth.require "lua/helper.lua"
local location_set = wesnoth.require "lua/location_set.lua"
local wml_actions = wesnoth.wml_actions
local function get_image(cfg, speaker)
local image = cfg.image
if speaker and image == nil then
image = speaker.profile
[pick_up_item]
id=regen_amulet
name= _ "Amulet of Regeneration"
image=icons/jewelry_necklace_amber.png
description= _ "This amulet will allow its wearer to heal 8 HP per turn."
effect_type="continuous"
event=regen_necklace_taken
[command]
[object]
id=regen_necklace_e1s6