See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| Stable Diffusion is an AI art generation model similar to DALLE-2. | |
| Here are some prompts for generating art with Stable Diffusion. | |
| Example: | |
| - A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting. | |
| - portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth | |
| - pirate, deep focus, fantasy, matte, sharp focus | |
| - red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful | |
| - a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait |
| # Place your Github Actions workflow configurations in project_dir/.github/workflows/ | |
| # | |
| # This configuration requires the following 4 repository secret variables: | |
| # PRIVATE_KEY (which will contain the content of the private key for your repository. Either reuse the one from earlier, or better, make a new one.) | |
| # KNOWN_HOSTS (contains a hash identifying the remote server as the genuine one. You will have the hash for the server in your local .ssh directory in the file known_hosts if you have connected to it before.) | |
| # TARGET_HOST (the url for server when connecting with SSH. On one.com it has the form ssh.example.com) | |
| # TARGET_USER (the SSH user for connecting to a remote server. On one.com the domain-name serves as the username, so it has the form of example.com). | |
| # | |
| # You are also required to update host_name for the SSH configuration on line 35 to match up with the host specified in your Deployer recipe. |
| { | |
| "Built Value": { | |
| "prefix": "blt", | |
| "body": [ | |
| "abstract class ${1} implements Built<${1}, ${1}Builder> {", | |
| "\t${0:// fields go here}", | |
| "", | |
| "\t${1}._();", | |
| "", | |
| "\tfactory ${1}([updates(${1}Builder b)]) = _$${1};", |
| #/bin/bash | |
| launchctl stop com.qiuyuzhou.shadowsocksX-NG.local | |
| launchctl stop com.qiuyuzhou.shadowsocksX-NG.http | |
| launchctl stop com.qiuyuzhou.shadowsocksX-NG.kcptun | |
| sudo rm -rf /Applications/ShadowsocksX-NG*.app | |
| sudo rm -rf /Library/Application\ Support/ShadowsocksX-NG | |
| sudo rm -rf ~/Library/Application\ Support/ShadowsocksX-NG | |
| sudo rm -rf ~/Library/LaunchAgents/com.qiuyuzhou.shadowsocksX-NG.* |
| const createMySocketMiddleware = (url) => { | |
| return storeAPI => { | |
| let socket = createMyWebsocket(url); | |
| socket.on("message", (message) => { | |
| storeAPI.dispatch({ | |
| type : "SOCKET_MESSAGE_RECEIVED", | |
| payload : message | |
| }); | |
| }); |
| #-*- coding: utf-8 -*- | |
| import subprocess | |
| if __name__ == '__main__': | |
| ps = subprocess.Popen(['nodejs','ps2.js'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
| out = ps.communicate(input='http://www.daum.net'.encode())[0] | |
| print(out.decode('utf-8')) |
| upstream heroku { | |
| server myapp.herokuapp.com; | |
| } | |
| server { | |
| server_name ~^(www\.)(?<domain>.+)$; | |
| return 301 $scheme://$domain$request_uri; | |
| } | |
| server { |
| (module | |
| (func $addTwo (param i32 i32) (result i32) | |
| (i32.add | |
| (get_local 0) | |
| (get_local 1))) | |
| (export "addTwo" (func $addTwo))) |