This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from datetime import date, datetime, timedelta | |
from typing import Dict, List, TextIO | |
import matplotlib.pyplot as plt | |
from persiantools.jdatetime import JalaliDate | |
from pytz import timezone | |
class Like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
STAT_GENDER = 0x07 | |
STAT_FICTION = 0x08 | |
STAT_NOTIFY_BIRTH = 0x10 | |
STAT_INACTIVE = 0x80 | |
BODY_SKIN_COLOUR = 0x00000007, 0, 'skin_colour' | |
BODY_HAIR_COLOUR = 0x00000007 << 3, 3, 'hair_colour' | |
BODY_EYE_COLOUR = 0x00000007 << 6, 6, 'eye_colour' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
from typing import Dict, List | |
path = 'D:\\Gallery\\ZOEY' | |
cache = 'toolbox\\zoey_gallery.json' | |
deviantArt: Dict[str, List[str]] = {} | |
daCount = 0 | |
others = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package <COM.MY.APP>; | |
import android.app.ActionBar; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.content.res.TypedArray; | |
import android.graphics.drawable.Drawable; | |
import android.util.Log; | |
import android.view.MenuItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mimetypes | |
import os | |
out_dir = 'Playlists' | |
if not os.path.isdir(out_dir): os.mkdir(out_dir) | |
def analyse_dir(root: str): | |
dir_name = os.path.basename(root) | |
m3u8_path = os.path.join(out_dir, dir_name + '.m3u8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
def uz(s: str, maxim: int) -> str: | |
while len(s) < maxim: | |
s = '0' + s | |
return s | |
def ucToChar(unicode: str): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from calendar import monthrange | |
from datetime import date | |
from typing import Dict, List, Optional | |
import matplotlib.pyplot as plt | |
class Luna: | |
diebus: List[Optional[float]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package <COM.MY.APPLICATION> | |
import android.icu.util.Calendar | |
import android.icu.util.TimeZone | |
import android.icu.util.ULocale | |
import java.util.Date | |
import java.util.Locale | |
/** | |
* Humanist Iranian Calendar is an implementation of the Iranian calendar whose numbering system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from datetime import datetime | |
from typing import Optional | |
from bs4 import BeautifulSoup | |
from persiantools.digits import fa_to_en | |
from persiantools.jdatetime import JalaliDateTime | |
from pytz import timezone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from calendar import monthrange | |
from datetime import date | |
from typing import Dict, List, Optional, Tuple | |
from persiantools.jdatetime import JalaliDate | |
class Luna: | |
diebus: List[Optional[float]] |
NewerOlder