Skip to content

Instantly share code, notes, and snippets.

View DominikDoom's full-sized avatar
💯
100% JIT

DominikDoom

💯
100% JIT
  • Germany
  • 17:41 (UTC +02:00)
View GitHub Profile
@liamcain
liamcain / obsidian-pagebreaks.css
Created November 8, 2020 01:04
Obsidian Pagebreaks
/**
Create pagebreaks in exported Obsidian PDFs.
Example:
# Heading 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
@whc2001
whc2001 / hiragana2katakana
Created August 9, 2016 13:37
C# Convert Hiragana To Katakana By Unicode
public string HiraganaToKatakana(string input)
{
byte[] unicodes = Encoding.GetEncoding("Unicode").GetBytes(input);
int i;
for (i = 0; i < unicodes.Length; i += 2) //Each 16 bits.
{
int _word = (unicodes[i + 1] << 8) | (unicodes[i] & 0xFF); //Two byte make a word.
if (_word >= 0x3041 && _word <= 0x30A0) //In hiragana area?
{
_word += 0x60; //Add difference.