Skip to content

Instantly share code, notes, and snippets.

View lil-armstrong's full-sized avatar
💭
I may be slow to respond.

Ebong, Okposong lil-armstrong

💭
I may be slow to respond.
View GitHub Profile
@lil-armstrong
lil-armstrong / meta-tags.md
Created July 22, 2023 09:32 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@lil-armstrong
lil-armstrong / test_add_integers.txt
Last active February 18, 2023 22:32
Output of failed test of test_add_integers.txt
└─$ python3 -m doctest ./tests/0-add_integer.txt
**********************************************************************
File "./tests/0-add_integer.txt", line 15, in 0-add_integer.txt
Failed example:
add_integer(2, 5)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.10/doctest.py", line 1350, in __run
exec(compile(example.source, filename, "single",
File "<doctest 0-add_integer.txt[0]>", line 1, in <module>
@lil-armstrong
lil-armstrong / add_integers.txt
Last active February 18, 2023 22:44
Python doct-test file
The ``add_integer`` module
========================
Usage:
----------------------
``add_integer(...)``` returns the addition of its two arguments. For numbers,
that value is equivalent to using the ``+`` operator.
>>> add_integer = __import__('0-add_integer').add_integer
@lil-armstrong
lil-armstrong / add_integers.py
Last active February 18, 2023 17:40
The add_integers python module
#!/usr/bin/python3
"""Defines an integer addition function."""
def add_integer(a, b=98):
"""Return the integer addition of a and b.
Float arguments are typecasted to ints before addition is performed
Args:
@lil-armstrong
lil-armstrong / payment-form.jsx
Created September 14, 2022 06:50
React native payment form
import * as yup from "yup"
function OnlinePaymentMethod({ order }) {
const formik = useFormik({
initialValues: {
cc_number: "",
cc_exp: "",
cc_cvv: "",
cc_name: "",
},
@lil-armstrong
lil-armstrong / fix-snapd.sh
Created December 10, 2021 08:51
Fix snapd error - snap-confine has elevated permissions on Kali Linux
sudo apparmor_parser -r /etc/apparmor.d/*snap-confine*
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap-confine*
@lil-armstrong
lil-armstrong / index.js
Created December 8, 2021 12:20 — forked from WietseWind/index.js
Create Ripple XRPL transaction with memo, and sign+send locally
// Before running the code:
// npm install rippled-ws-client rippled-ws-client-sign websocket
const RippledWsClient = require('rippled-ws-client')
const RippledWsClientSign = require('rippled-ws-client-sign')
// Your secret
const SeedOrKeypair = 'sXXXXXXXXXXX'
// Your wallet (sending the funds)
const SendingWallet = 'rSENDINGWALLETXXXXXX'
@lil-armstrong
lil-armstrong / BaseButton.vue
Created January 7, 2021 14:36 — forked from jcjuspin/BaseButton.vue
Vue BaseButton component
<template>
<component
:is="tag"
:class="buttonClasses"
:type="nativeType"
v-bind="$attrs"
@click="$emit('click', $event)"
>
<span class="v-btn__slot"><slot /></span>
</component>
@lil-armstrong
lil-armstrong / required.php
Last active December 8, 2017 20:04
This file contains ensures that all required files are specified
<?php
/**
* Created by PhpStorm.
* User: root
* Date: 11/6/17
* Time: 3:28 AM
*/
/*Composer autoload*/
/*Functions*/
require_once 'functions.php';