Skip to content

Instantly share code, notes, and snippets.

@RazielSun
RazielSun / telegram_parser.py
Created May 30, 2023 08:35
parse some data from telegram chats
import configparser
import json
import asyncio
from datetime import date, datetime, timedelta, timezone
from telethon import TelegramClient
from telethon.errors import SessionPasswordNeededError
from telethon.tl.functions.messages import (GetHistoryRequest)
from telethon.tl.types import (PeerChannel)
@RazielSun
RazielSun / mingw64-python-numpy.md
Created September 16, 2019 17:37 — forked from caiofcm/mingw64-python-numpy.md
Mingw64: install python with numpy scipy pip

Mingw64: install python with numpy scipy pip

$ pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime
$ pacman -Su
$ pacman -Sy base-devel msys2-devel
$ pacman -Sy mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-numpy mingw-w64-x86_64-python3-scipy mingw-w64-x86_64-python3-matplotlib mingw-w64-x86_64-python3-pandas mingw-w64-x86_64-python3-Pillow

reference

@RazielSun
RazielSun / object_uv_rename.py
Created June 21, 2019 12:46
Blender simple operator addon - for rename active uvmap layer and remove other
bl_info = {
"name" : "UV Map Renamer",
"author" : "razielsun",
"description" : "Just rename first uv map and delete other maps",
"blender" : (2, 80, 0),
"version" : (0, 0, 1),
"category" : "Object"
}
@RazielSun
RazielSun / exportSelectedObjects.py
Created February 4, 2018 19:26
Maya script for export OBJ separate
import maya.cmds as cmd
def AsOBJ():
selection = cmd.ls(sl=True)
for name in selection:
cmd.select(name, r=True)
x = cmd.getAttr(".translateX")
y = cmd.getAttr(".translateY")
z = cmd.getAttr(".translateZ")
cmd.move( 0, 0, 0 )
@RazielSun
RazielSun / gist:2e8f8422203503cfe08cdb064b7266dc
Created December 22, 2017 19:53
UE4 - GetPlayer Control on Level
// Take control of the default player
AutoPossessPlayer = EAutoReceiveInput::Player0;
@RazielSun
RazielSun / magrabx.php
Created July 24, 2016 09:00 — forked from ProgerXP/magrabx.php
Map grabber :: Yandex.Maps + jQuery + PHP/DOMDocument/XPathby Proger_XP :: http://proger.meOriginal article (Russian): http://habrahabr.ru/post/184334/
<?php
// Map grabber :: Yandex.Maps + jQuery + PHP/DOMDocument/XPath
// by Proger_XP :: http://proger.me
// Original article (Russian): http://habrahabr.ru/post/184334/
// In public domain. I appreciate backlinks.
function dl($url) {
require_once 'sqobot/lib/downwind.php';
return new Downwind($url, array(