Skip to content

Instantly share code, notes, and snippets.

View adegbengaagoro's full-sized avatar

Agoro, Adegbenga. B adegbengaagoro

View GitHub Profile
@adegbengaagoro
adegbengaagoro / v1-ubuntu-docker-node-apt-get.sh
Created June 14, 2018 23:26 — forked from garystafford/v1-ubuntu-docker-node-apt-get.sh
Install the latest versions of Node.js and npm into a Docker Ubuntu container, with or without need for root access. Easily update both applications to the latest versions. Creates a new user account ('testuser') and installs common npm packages.
###############################################################################
# Version 1: using ‘apt-get install’
# Installs using apt-get
# Requires update to npm afterwards
# Harder to get latest copy of node
# Requires sudo to use npm
###############################################################################
# create new docker ubuntu container
sudo docker run -i -t ubuntu /bin/bash # drops you into container as root
@adegbengaagoro
adegbengaagoro / emulator-install-using-avdmanager.md
Created October 23, 2019 02:15 — 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

@adegbengaagoro
adegbengaagoro / json_animation_test.json
Created November 25, 2019 09:29
Shape.so Animated JSON
{"v":"5.2.1","fr":30,"ip":0,"op":180,"w":1155,"h":700,"nm":"Online Buy Products black","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[571.86,165.803,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":40,"s":[0,0,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":45,"s":[100,100,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":50,"s":[100,100,100],"e":[0,0,100]},{"i":{"x":[0
@adegbengaagoro
adegbengaagoro / infinite_loader.json
Created November 25, 2019 13:34
Lottie Infinite Loader
{"assets":[],"layers":[{"ddd":0,"ind":0,"ty":4,"nm":"Shape Layer 1","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[300,300,0]},"a":{"k":[0,0,0]},"s":{"k":[244,244,100]}},"ao":0,"shapes":[{"d":1,"ty":"el","s":{"k":[100,100]},"p":{"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"tm","s":{"k":[{"i":{"x":[0.439],"y":[1.016]},"o":{"x":[0.561],"y":[0.015]},"n":["0p439_1p016_0p561_0p015"],"t":5,"s":[100],"e":[0]},{"t":33.0000013441176}],"ix":1},"e":{"k":[{"i":{"x":[0.439],"y":[1.017]},"o":{"x":[0.561],"y":[0.016]},"n":["0p439_1p017_0p561_0p016"],"t":0,"s":[100],"e":[0]},{"t":30.0000012219251}],"ix":2},"o":{"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim"},{"ty":"st","fillEnabled":true,"c":{"k":[1,1,1,1]},"o":{"k":100},"w":{"k":16},"lc":2,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"}],"ip":0,"op":900.000036657751,"st":0,"bm":0,"sr":1}],"v":"4.5.3","ddd":0,"ip":1.00000004073083,"op":33.0000013441175,"fr":29.9700012207031,"w":600,"h":600}
@adegbengaagoro
adegbengaagoro / animated_search.json
Last active November 25, 2019 15:16
Animated Simple Search
{"v":"5.2.1","fr":30,"ip":0,"op":180,"w":1920,"h":1080,"nm":"Guy and girl working together black","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[84.912,153.778,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-13.06,8.63],[-2.4,7.69],[6.12,-0.24],[8.62,-1.69]],"o":[[0,0],[12.77,3.48],[3.86,-2.54],[2.13,-6.81],[-15.98,0.62],[-13.15,7.99]],"v":[[-26.422,-10.175],[-31.102,13.005],[10.788,13.005],[30.648,-3.885],[20.898,-11.685],[-12.532,-17.505]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.721569001675,0.466666996479,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,1
@adegbengaagoro
adegbengaagoro / custom.css
Last active January 12, 2020 11:40
While using Brizy (WordPress Version), you will find that the Form generates a Success Notification, you can utilize the custom CSS snippet below to automatically hide it
.brz-form__alert.brz-form__alert--success {
-moz-animation: cssAnimation 0s ease-in 7s forwards;
/* Firefox */
-webkit-animation: cssAnimation 0s ease-in 7s forwards;
/* Safari and Chrome */
-o-animation: cssAnimation 0s ease-in 5s forwards;
/* Opera */
animation: cssAnimation 0s ease-in 5s forwards;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
@adegbengaagoro
adegbengaagoro / .dockerignore
Created May 12, 2021 22:48 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@adegbengaagoro
adegbengaagoro / LoginController.js
Created January 7, 2022 11:49 — forked from rogerforner/LoginController.js
AdonisJS Login (JWT): Autenticar usuario/ria por nombre de usuario, email, etc.
'use strict'
const User = use('App/Models/User')
class LoginController {
/**
* INICIAR SESIÓN
* -> formData: Obtener datos introducidos por el usuario (request).
* -> regexEmail: Regex que nos permite validar un email.
* -> user: Obtener el objeto user asociado al uid (email, nombre de usuario, etc.).
@adegbengaagoro
adegbengaagoro / routes.ts
Created February 10, 2022 01:40
Content Negotiation Example - Implementation with Functions
import Route from '@ioc:Adonis/Core/Route'
import payloadGeneratorForViewAndApi from 'App/Helpers/payloadGeneratorForViewAndApi'
import viewAndApiOutputHelper from 'App/Helpers/viewAndApiOutputHelper'
Route.get('posts', async ({ request }) => {
const posts = [
{
title: 'Adonis 101',
},
{