Skip to content

Instantly share code, notes, and snippets.

View cpp-johnny's full-sized avatar
:shipit:
:(

Johnson cpp-johnny

:shipit:
:(
View GitHub Profile
# Function to replace spaces with hyphens
def replace_spaces_with_hyphens(input_string):
return input_string.replace(' ', '-')
# Accepting user input
user_input = input("Enter a string: ")
# Processing the input
output_string = replace_spaces_with_hyphens(user_input)
@journey-ad
journey-ad / oh-my-diana.user.js
Last active July 17, 2025 08:06
在哔站右下角添加嘉然小姐的live2d模型
// ==UserScript==
// @name #相亲相爱一嘉人#
// @description 在哔站右下角添加嘉然小姐的live2d模型
// @version 1.0.1
// @namespace https://github.com/journey-ad
// @author journey-ad
// @include /^https:\/\/(www|live|space|t)\.bilibili\.com\/.*$/
// @icon https://www.google.com/s2/favicons?domain=bilibili.com
// @license GPL v2
// @run-at document-end