Skip to content

Instantly share code, notes, and snippets.

View alexlecco's full-sized avatar
💭
working on combo-social

Alex Villecco alexlecco

💭
working on combo-social
View GitHub Profile
@alexlecco
alexlecco / index.js
Created September 10, 2021 23:25 — forked from eliseodm/index.js
onst puppeteer = require('puppeteer');
const username = '58050';
const password = 'toro';
(async () => {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
/* page.setViewport({
width: 1280,
@alexlecco
alexlecco / tailwind.md
Created October 22, 2020 10:50 — forked from sandren/tailwind.md
Tailwind CSS best practices

Tailwind CSS best practices

Utility classes

  1. When writing a string of multiple utility classes, always do so in an order with meaning. The "Concentric CSS" approach works well with utility classes (i.e,. 1. positioning/visibility 2. box model 3. borders 4. backgrounds 5. typography 6. other visual adjustments). Once you establish a familiar pattern of ordering, parsing through long strings of utility classes will become much, much faster so a little more effort up front goes a long way!

  2. Always use fewer utility classes when possible. For example, use mx-2 instead of ml-2 mr-2 and don't be afraid to use the simpler p-4 lg:pt-8 instead of the longer, more complicated pt-4 lg:pt-8 pr-4 pb-4 pl-4.

  3. Prefix all utility classes that will only apply at a certain breakpoint with that breakpoint's prefix. For example, use block lg:flex lg:flex-col lg:justify-center instead of block lg:flex flex-col justify-center to make it very clear that the flexbox utilities are only applicable at the

@alexlecco
alexlecco / elementaryos.md
Created May 6, 2020 18:23 — forked from Surendrajat/elementaryos.md
elementaryOS | Things To Do After Installing elementary OS Hera(5.1)

First Things First

  • Enable PPA

     sudo apt update
     sudo apt install software-properties-common apt-transport-https curl
  • Install apt-fast

@alexlecco
alexlecco / emulator-install-using-avdmanager.md
Created July 7, 2019 15:58 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

About

  • The goal of this gist is to quickly pre-install a range of system images to provide our project teams the ability to run emulators on a range of API levels, from API 19 to API 28.
    • These can be run locally or on the base build agent.
  • Note: X86 is the fastest architecture for emulators, though x86_64 would probably be better to test against because most phones are 64 bit now.
  • We create two sets of emulators here, one set with pixel hardware emulation and one set with default oem emulation.

See: Google Documentation on Start the emulator from the command line for more info

@alexlecco
alexlecco / README.md
Created March 27, 2018 16:15 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@alexlecco
alexlecco / eos-loki-post-install.sh
Created October 14, 2017 13:31 — forked from diniremix/eos-loki-post-install.sh
elementary OS Loki post install
# elementary OS post install
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common --no-install-recommends
sudo apt install ubuntu-restricted-extras libavcodec-extra ffmpeg
sudo apt install firefox vlc
sudo apt install audacious audacious-plugins
sudo apt install screenfetch
@alexlecco
alexlecco / react-native-setup-linux.md
Created September 30, 2017 14:22 — forked from andrei-cacio/react-native-setup-linux.md
React native setup on Ubuntu/Linux

Guide for installing React Native on Linux (ubuntu 14.04)

Step 1: Install JDK 7

sudo apt-get install openjdk-7-jdk

Step 2: Download the Android SDK

@alexlecco
alexlecco / webpack.config.js
Created March 9, 2017 18:51 — forked from jerolan/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@alexlecco
alexlecco / gist:9a5bb7ef2c007361cf210f1db3f1fa20
Created October 4, 2016 13:03 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
@alexlecco
alexlecco / deploying_rails_to_heroku.md
Created February 14, 2016 23:56 — forked from thebucknerlife/deploying_rails_to_heroku.md
A Beginners Guide to Deploying a Rails App on Heroku

Deploying to Heroku

This guide is for a first-time Rails developer to deploy their app to Heroku, a popular web-hosting service with strong Rails support. This guide assumes you already have a Heroku account and have installed the Heroku Toolbelt.

Create Your App and Setup Heroku with Git

  1. Make sure you've setup an SSH key for Heroku. Follow this simple guide to create an SSH key and send it to Heroku if needed: Heroku: Managing Your SSH Keys
  2. Navigate into the folder for your Rails app.