This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tool | |
class_name EditorIconTexture | |
extends AtlasTexture | |
var icon :String: | |
set(val): | |
icon = val | |
_update_icon.call_deferred() | |
func _init(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from json import dumps, loads | |
from msgpack import packb, unpackb | |
data = {'say': 'hello, world!'} | |
headers_msgpack = {'Content-Type': 'application/msgpack'} | |
headers_json = {'Content-Type': 'application/json'} | |
r = requests.post('http://localhost:8000/', data=packb(data), headers=headers_msgpack) | |
print(unpackb(r.content)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This script is designed to be used with TextPieces | |
# Argument 1: Base (K/M/B/T) | |
# Argument 2: Base Format ({n} = number; {b} = base) | |
import sys, re | |
from decimal import Decimal | |
diff_pattern = re.compile(r'[\+\-−][0-9\.]+%') | |
date_pattern = re.compile(r'[0-9]{4}|(TTM)|(Current)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select row_number() over () sid, start, end as stop, 0 as rating, note as comment | |
from diary | |
where act_id == 9 and _deleted == 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Precondition: Git for Windows 2.9.0 + Windows 7, other version of Git for Windows & Windows XP and Windows 10 should also be supported | |
# In /etc/ssh/sshd_config, set UsePrivilegeSeparation to no | |
# You can also change other settings of SSHD like port in this file | |
# Generate key pairs | |
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -q -N "" | |
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -q -N "" | |
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -q -N "" | |
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -q -N "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zenity | |
xclip | |
aria2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*The MIT License (MIT) | |
Copyright (c) 2016 Edward Rowe (@edwardlrowe) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL_DIR = ${HOME}/.local/bin | |
INSTALL_TARGETS = $(patsubst %,${INSTALL_DIR}/unity-%,guid projdir cache deps owns globals) | |
install: ${INSTALL_TARGETS} | |
${INSTALL_DIR}/%: ./% | |
install -Dm 764 $< $@ | |
uninstall: | |
rm ${INSTALL_TARGETS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your name? define(`_name_', esyscmd(`head -n1 /dev/stdin | tr -d "\n"'))dnl | |
Hello, _name_! |
NewerOlder