This file contains hidden or 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 time | |
import pywinauto | |
from pywinauto import application | |
import win32gui | |
import win32con | |
import win32clipboard | |
import re | |
import csv |
This file contains hidden or 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
dconf-editor | |
org -> gnome -> settings-daemon -> peripherals -> mouse | |
uncheck the 'locate pointer' option |
This file contains hidden or 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
const-string v0, "Hello" | |
const-string v1, "World!" | |
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I | |
apktool d folan.apk | |
-------------------------------------------------- | |
apktool b -o folan.apk | |
keytool -genkey -v -keystore key.keystore -alias milad -keyalg RSA -keysize 2048 -validity 10000 |
This file contains hidden or 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 copy | |
width = 6 | |
height = 5 | |
list = [ | |
[ | |
[1, 0], | |
[0, 1], | |
[1, 1], |
This file contains hidden or 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
varying mediump vec2 var_texcoord0; | |
uniform lowp sampler2D texture_sampler; | |
void main() { | |
float x = var_texcoord0.x - 0.5; | |
float y = var_texcoord0.y - 0.5; | |
int angle = 20; | |
float rad = radians(90 - angle); |
This file contains hidden or 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 { Schema, type, ArraySchema, MapSchema } from "@colyseus/schema" | |
import { Room, Client } from "colyseus" | |
class PrimitivesTest extends Schema { | |
@type("uint8") | |
_uint8: number = 255; | |
@type("uint16") | |
_uint16: number = 65535; |
This file contains hidden or 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 io.colyseus.serializer.schema.Schema; | |
import io.colyseus.serializer.schema.annotations.SchemaClass; | |
import io.colyseus.serializer.schema.annotations.SchemaField; | |
@SchemaClass | |
public class MyState extends Schema { | |
@SchemaField("0/ref") | |
public PrimitivesTest primitives = new PrimitivesTest(); | |
@SchemaField("1/array/ref") |
This file contains hidden or 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 { Schema, type, ArraySchema, MapSchema } from "@colyseus/schema" | |
import { Room, Client } from "colyseus" | |
class PrimitivesTest extends Schema { | |
@type("uint8") | |
_uint8: number = 255; | |
@type("uint16") | |
_uint16: number = 65535; |
This file contains hidden or 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
# 1. pip3 install telethon | |
# 2. Go to https://my.telegram.org/ and get api_id, api_hash | |
from telethon import TelegramClient, events, sync | |
import logging | |
logging.basicConfig(format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s',level=logging.WARNING) | |
api_id = 12345 | |
api_hash = 'PUT-YOUR-API-HASH-HERE' |
This file contains hidden or 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 com.badlogic.gdx.graphics.Texture; | |
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | |
import com.badlogic.gdx.math.Matrix4; | |
import java.lang.reflect.Field; | |
/** | |
* Created by Milad Doorbash on 8/31/2019. | |
*/ | |
public class DebugSpriteBatch extends SpriteBatch { |