Skip to content

Instantly share code, notes, and snippets.

View SebastianAigner's full-sized avatar
🥑

Sebastian Aigner SebastianAigner

🥑
View GitHub Profile
@dodyg
dodyg / gist:5823184
Last active March 29, 2024 03:59
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@jcayzac
jcayzac / widen_ascii.py
Created December 16, 2011 07:48
Python: Convert all ASCII characters to their full-width counterpart
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
WIDE_MAP = dict((i, i + 0xFEE0) for i in xrange(0x21, 0x7F))
WIDE_MAP[0x20] = 0x3000
def widen(s):
"""
Convert all ASCII characters to the full-width counterpart.