Skip to content

Instantly share code, notes, and snippets.

View kiriappeee's full-sized avatar

Adnan Issadeen kiriappeee

View GitHub Profile
from collections import defaultdict
UNICODE_BLOCKS = {
'en': range(0x0000, 0x02AF),
'si': range(0x0D80, 0x0DFF),
'ta': range(0x0B80, 0x0BFF),
'dv': range(0x0780, 0x07BF)
}
def getlang(text):
<li class="{{if isCompleted 'completed'}}">
{{#if isEditing}}
{{input type="text" class="edit" value=todo.title focus-out="acceptChanges"
insert-newline="acceptChanges"}}
{{else}}
{{input type="checkbox" checked=todo.isCompleted class="toggle"}}
<label {{action "editTodo" on="doubleClick"}}>{{title}}</label><button class="destroy"></button>
{{/if}}
</li>