Say I want to check if a value v is either null or undefined in
JavaScript. I might use this conditional:
if (!v) { ... } // 🙅♀️ wrong!| @book{CW, | |
| title = {{nēhiýawēwin} : {itwēwina} / {Cree} : Words}, | |
| editor = {Arok Wolvengrey}, | |
| year = 2001, | |
| publisher = {Canadian Plains Research Center}, | |
| address = {Regina, Saskatchewan} | |
| } | |
| @book{MD, | |
| title = {{Maskwacîs} Dictionary of {Cree} Words / Nehiyaw Pîkiskweninisa}, |
| class Sliceable: | |
| def __init__(self, iterable): | |
| self.it = iterable | |
| def __getitem__(self, index): | |
| if isinstance(index, int): | |
| return self.it[int] | |
| start = 0 if index.start is None else index.start | |
| stop = inf if index.stop is None else index.stop |
| export const enum WordBreakProperty { | |
| /* 0 */ Other, | |
| /* 1 */ LF, | |
| /* 2 */ Newline, | |
| /* 3 */ CR, | |
| /* 4 */ WSegSpace, | |
| /* 5 */ Double_Quote, | |
| /* 6 */ Single_Quote, | |
| /* 7 */ MidNum, | |
| /* 8 */ MidNumLet, |
| /*! | |
| * Copyright (c) 2020 Eddie Antonio Santos | |
| * | |
| * This Source Code Form is subject to the terms of the Mozilla Public License, | |
| * v. 2.0. If a copy of the MPL was not distributed with this file, You can | |
| * obtain one at http://mozilla.org/MPL/2.0/. | |
| */ | |
| /** | |
| * Simplifies interaction with <template> tags: |
| #!/usr/bin/env python3 | |
| # -*- coding: UTF-8 -*- | |
| from cree_sro_syllabics import sro2syllabics | |
| consonants = 'ptkcmnsy' | |
| finals = ('h', 'hk', 'r', 'l', 'w') | |
| vowels_circumflex = 'êioaîôâ' | |
| vowels_macron = 'ēioaīōā' |
| #!/usr/bin/env python3 | |
| # -*- coding: UTF-8 -*- | |
| """ | |
| Creates (dumb) rainfall data. | |
| Usage: | |
| python3 create-data.py > rainfall.txt | |
| """ |
| #!/usr/bin/env python3 | |
| # -*- coding: UTF-8 -*- | |
| from dataclasses import dataclass | |
| from random import randint | |
| import re | |
| dn = re.compile(r'd([123456789][0123456789]*)') | |
| __all__ = ['Die'] |
| %% Huffman Code for nêhiyawêwin %% | |
| %% Note: Cree strings must be written in "askiy": | |
| %% - short vowels and consonants: written in ASCII | |
| %% - long vowels: ê is written as e; "âîô" written as "AIO" respectively. | |
| %% - it's a very grounded character encoding 😉 | |
| %% | |
| %% I haven't done extensive testing, but this usually uses half the bits to | |
| %% represent Cree word forms. Maybe just gzip it instead? | |
| -module(huff). | |
| -export([encode/1, decode/1, tryit/1]). |