Skip to content

Instantly share code, notes, and snippets.

View DevLucem's full-sized avatar
💭
We learn everyday

Lucem DevLucem

💭
We learn everyday
View GitHub Profile
@DevLucem
DevLucem / platform.js
Created March 10, 2022 07:01
TradingView To Anywhere Platform Creation Format
class Platform {
// receive and validate the data
constructor(data) {
this.command = {valid: true};
if (typeof data === 'string') this.command.data = data
else if (typeof data === 'object') {
} else this.command.valid = false;
}
// execute the activation automation process
process(activations = [{}]){
@DevLucem
DevLucem / Readme.md
Created March 16, 2018 06:48 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example: