Skip to content

Instantly share code, notes, and snippets.

View barreeeiroo's full-sized avatar
:octocat:
Working at Kodular...

Diego Barreiro Perez barreeeiroo

:octocat:
Working at Kodular...
View GitHub Profile
@barreeeiroo
barreeeiroo / rito_worlds_drawer.py
Created September 10, 2022 21:25
Rito pls fix Worlds 2022 pools
import collections
import itertools
MAIN_STAGE = [
['LPL', 'LCK', 'LEC', 'LCS', ],
['LPL', 'LCK', 'LEC', 'PCS', ],
['LPL', 'LCK', 'VN', 'LCS', ],
]
@barreeeiroo
barreeeiroo / Form.java
Created August 9, 2021 14:36
Kodular Creator - Available Form Methods
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import com.google.appinventor.components.annotations.SimpleObject;
@SimpleObject
public class Form
extends AppCompatActivity
implements Component, ComponentContainer, HandlesEventDispatching, OnGlobalLayoutListener
{
@barreeeiroo
barreeeiroo / instagram.js
Last active January 11, 2021 23:48
Instagram Story Viewers Searcher
// HOW TO
// The first comment in this Gist (below, just right after ending the code block) contains the required instructions to use it.
let createModal = (viewers) => {
let modal = document.createElement("div");
modal.style.cssText = "display: block; position: fixed; z-index: 1; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.4);";
document.body.appendChild(modal);
let modalContent = document.createElement("div");
@barreeeiroo
barreeeiroo / out.txt
Created September 11, 2019 16:10
App Inventor Source Code
4811 text files.
4711 unique files.
948 files ignored.
github.com/AlDanial/cloc v 1.82 T=159.00 s (28.4 files/s, 7590.3 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
JavaScript 2079 98545 216675 545762
Java 940 21816 49592 113717
@barreeeiroo
barreeeiroo / stats.txt
Created November 24, 2018 14:30
Kodular Code
┌─<diego @ barreiro in ~/G/M/Makeroid>
└─< (master)>──» cloc . 0 < 15:29:32
4526 text files.
4480 unique files.
266 files ignored.
github.com/AlDanial/cloc v 1.70 T=13.49 s (316.5 files/s, 87239.2 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
FROM ubuntu:16.04
LABEL maintainer caffe-maint@googlegroups.com
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
wget \
libatlas-base-dev \
libboost-all-dev \
@barreeeiroo
barreeeiroo / script.php
Created September 10, 2017 23:15
PHP Script to integrate UpTimeRobot with Cachet
<?php
ini_set('error_reporting', true);
error_reporting(E_ALL);
$CACHET_URL = "";
$CACHET_KEY = "";
$METRIC_ID = "";
$UPTIMEROBOT_KEY = "";
@barreeeiroo
barreeeiroo / api.md
Last active September 23, 2020 10:26
ImageEditor API Usage