Boothで対応アバターなんかを検索するときに商品IDで検索することが面倒だったので、それをするボタンを追加するUserScriptです
Tampermonkeyなどを導入してRawをクリーック!かんたん!
Boothで対応アバターなんかを検索するときに商品IDで検索することが面倒だったので、それをするボタンを追加するUserScriptです
Tampermonkeyなどを導入してRawをクリーック!かんたん!
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Windows; | |
public class MaterialTextureSwapper : EditorWindow | |
{ | |
public Material TextureSourceMaterial; |
import sys | |
def in_the_quote(s): | |
return s.split('"')[1] | |
with open(sys.argv[1]) as f: | |
lines = f.readlines() | |
titles = [in_the_quote(line) for line in lines if "TITLE" in line] | |
performers = [in_the_quote(line) for line in lines if "PERFORMER" in line] |
import subprocess | |
import webbrowser | |
artist = subprocess.run('playerctl -i firefox metadata -f "{{ artist }}"', shell=True, text=True, capture_output=True).stdout | |
title = subprocess.run('playerctl -i firefox metadata -f "{{ title }}"', shell=True, text=True, capture_output=True).stdout | |
url = subprocess.run('playerctl -i firefox metadata xesam:url', shell=True, text=True, capture_output=True).stdout | |
artist_and_title = "{0} - {1}".format(artist, title) | |
intent_url = "https://twitter.com/intent/tweet?hashtags=NowPlaying&text={0}&url={1}".format(artist_and_title, url) |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct Node { | |
int data; | |
struct Node *next; | |
} Node; | |
Node *addNode(Node *list, int data) { | |
Node* node = (Node*)malloc(sizeof(Node)); |
I hereby claim:
To claim this, I am signing this object:
call plug#begin() | |
Plug 'preservim/nerdtree' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'vim-denops/denops.vim' | |
Plug 'Shougo/pum.vim' | |
Plug 'Shougo/ddc.vim' | |
Plug 'Shougo/ddc-ui-native' |
from PIL import Image | |
path = "image.png" | |
terminal_width = 40 | |
image = Image.open(path) | |
gray = image.convert("L") | |