Skip to content

Instantly share code, notes, and snippets.

@Chityanj
Chityanj / stack.py
Created Dec 7, 2021
Modified Stack: Write a program to implement a special type of stack, which apart from supporting normal stack operations: push(), isFull(), pop() and isEmpty(), supports additional operations: getMax(), getMin(), getMiddle().
View stack.py
def display(stack):
print("\n".join(stack))
def push(stack,size):
if isFull(stack,size):
print("Stack is full")
else:
stack.append(input())
def pop(stack):
if isEmpty(stack):
print("error: stack empty")
View gist:7da3336bd3c232cd0be38222a759e6e3
/**
*Submitted for verification at BscScan.com on 2021-11-19
*/
/**
*Not Yet Submitted for verification at BscScan.com
*/
/**
View forwarder.py
''' A script to send all messages from one chat to another. '''
import asyncio
import logging
from telethon.tl.patched import MessageService
from telethon.errors.rpcerrorlist import FloodWaitError
from telethon import TelegramClient
from telethon.sessions import StringSession
from settings import API_ID, API_HASH, REPLACEMENTS, forwards, get_forward, update_offset, STRING_SESSION
View structure.bash
```bash
your git repo folder
├─ .gitignore
├─ composer.json
├─ comsoder.lock
├─ Procfile
└─ web
├─ _h5ai
├─ your files
├─ and folders
View Treble documentation for LeEco le max2
*Credits:shivatejapeddi,ThE_MarD,dmd79,prajjwallaad
### What is Treble? ###
https://android-developers.googleblog.com/2017/05/here-comes-treble-modular-base-for.html?m=1
I'll keep the technical details about treble away from this thread as it has been covered by xda already.
If you want to know more about that visit here <google-link-here>
It is all treble trouble everywhere so why shouldn't x2 join it?
View gist:80cd240a7e5a34acb8b7f924097b4cb7
*Credits:shivatejapeddi,ThE_MarD,dmd79,prajjwallaad
### What is Treble?
https://android-developers.googleblog.com/2017/05/here-comes-treble-modular-base-for.html?m=1
I'll keep the technical details about treble away from this thread as it has been covered by xda already.
If you want to know more about that visit here <google-link-here>
It is all treble trouble everywhere so why shouldn't x2 join it?
I'm proud to announce that Le Max2 will now support project treble and you can flash Generic system images and even Android P. Exciting right?
View Treble documentation for LeEco le max2
*Credits:shivatejapeddi,ThE_MarD,dmd79,prajjwallaad
###What is Treble?
https://android-developers.googleblog.com/2017/05/here-comes-treble-modular-base-for.html?m=1
I'll keep the technical details about treble away from this thread as it has been covered by xda already.
If you want to know more about that visit here <google-link-here>
It is all treble trouble everywhere so why shouldn't x2 join it?
I'm proud to announce that Le Max2 will now support project treble and you can flash Generic system images and even Android P. Exciting right?
@Chityanj
Chityanj / gist:94b5b5dc40b8a03d674e798980f6ec34
Created Jul 22, 2018
Treble documentation for Leeco Le max2
View gist:94b5b5dc40b8a03d674e798980f6ec34
###Treble for Leeco Le Max2###
##It is all treble trouble everywhere so why shouldn't x2 join it? I'm proud to announce that Le Max2 will now support
project treble and you can flash Generic system images and even Android P. Exciting right? You just need to follow the
instructions mentioned and you're good to go.##