Skip to content

Instantly share code, notes, and snippets.

View kt81's full-sized avatar
🐼

KUMAKI Toshio kt81

🐼
  • Kuma of Kuma
  • Tokyo, Japan
View GitHub Profile
@kt81
kt81 / gist:36887de8b13ea2dd7047
Created February 25, 2015 07:56
SQLでhtmlspecialchars的な事をしようとしたことの名残
CREATE OR REPLACE FUNCTION orig_htmlspecialchars(TEXT) RETURNS TEXT AS $$
SELECT
regexp_replace(
regexp_replace(
regexp_replace(
regexp_replace(
regexp_replace($1,
E'&(?!(?:#\\d+?|\\w+?);)', '&', 'g'),
E'"', '"', 'g'),
E'''', ''', 'g'),
@kt81
kt81 / .gitignore
Created September 5, 2019 06:58
All-In-One .gitignore for Unity + .NET Core Server development
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
@kt81
kt81 / .gitattributes
Last active July 15, 2020 08:47
Git attributes file for Unity3D & .NET server development
# Global Settings
* text=auto
# Language
*.php text eol=lf
*.cs text eol=lf
*.tt text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.tsx text eol=lf