Skip to content

Instantly share code, notes, and snippets.

View otengkwame's full-sized avatar
💭
Cooking some open source projects

Kwame Oteng Appiah-Nti otengkwame

💭
Cooking some open source projects
View GitHub Profile
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@otengkwame
otengkwame / index.html
Created January 25, 2024 10:50
Tailwind - Game Scoreboard Module
<div class="mx-auto my-2 max-w-md rounded overflow-hidden shadow-md text-xs">
<div class="flex bg-gray-200 px-2 py-2">
<div class="w-5/12 text-gray-700 text-left text-red-700">4:32 - 4th</div>
<div class="w-5/12 flex justify-end items-center">
<p class="w-8 px-2 text-center">1</p>
<p class="w-8 px-2 text-center">2</p>
<p class="w-8 px-2 text-center">3</p>
<p class="w-8 px-2 text-center">4</p>
</div>
@otengkwame
otengkwame / index.html
Created February 6, 2023 18:55
Services in circle slider
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<section class="iq-features">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-3 col-md-12"></div>
@otengkwame
otengkwame / nvmCommands.js
Created December 9, 2022 04:43 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@otengkwame
otengkwame / index.html
Created November 24, 2022 08:26
LinkTree Clone
<div class="container">
<div class="head__section">
<img src="https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTR8fGF2YXRhcnxlbnwwfHwwfHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="">
<p>I'm a full stack web developer</p>
</div>
<div class="social__links">
<ul id="item">
<li class="instagram"><a href="#">
<i class="fa fa-instagram"></i>
<span>
@otengkwame
otengkwame / update_refs failed.sh
Created October 6, 2022 12:34 — forked from lordlycastle/update_refs failed.sh
When you get update_ref failed for ref error in git.
# Rename from 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main.lock' to 'C:/Users/Repos/phishfoodvr/.git/refs/remotes/origin/CHA/main' failed. Should I try again? (y/n) n
# error: update_ref failed for ref 'refs/remotes/origin/CHA/main': couldn't set 'refs/remotes/origin/CHA/main'
$ cd $(git rev-parse --show-toplevel) # if necessary
$ rm -rf .git/refs/remotes/origin # remove all origin/*
$ mkdir .git/refs/remotes/origin # create empty origin/
$ git fetch origin # repopulate origin/*
$.fn.select2.amd.define('select2/data/extended-ajax',['./ajax','../utils','jquery'], function(AjaxAdapter, Utils, $){
function ExtendedAjaxAdapter ($element,options) {
//we need explicitly process minimumInputLength value
//to decide should we use AjaxAdapter or return defaultResults,
//so it is impossible to use MinimumLength decorator here
this.minimumInputLength = options.get('minimumInputLength');
this.defaultResults = options.get('defaultResults');
ExtendedAjaxAdapter.__super__.constructor.call(this,$element,options);
@otengkwame
otengkwame / arrays.php
Created February 27, 2022 03:56 — forked from recck/arrays.php
Week 3 - Day 5 - Playing with Arrays
<?php
/**
* Playing with Arrays
* List of functions: http://us2.php.net/manual/en/ref.array.php
**/
// Creating an array
$array = array('value1', 2, 'value3', 4.5);
// Remember an array starts at position 0
@otengkwame
otengkwame / confetti-button.markdown
Created December 29, 2021 13:50
Confetti Button
@otengkwame
otengkwame / markdown.php
Created January 3, 2021 15:23 — forked from daveh/markdown.php
Rich-text formatting in PHP: HTML, Markdown, rich-text editors like TinyMCE and doing it securely (code to accompany https://youtu.be/Udgi43MG0a4)
<?php
require "vendor/autoload.php";
$parser = new Parsedown;
?>
<!DOCTYPE html>
<html>
<head>