Skip to content

Instantly share code, notes, and snippets.

View Kaoschuks's full-sized avatar

Favour Chukwuemeka Kaoschuks

View GitHub Profile
@Kaoschuks
Kaoschuks / wfc-simple-tiled.ts
Created September 28, 2023 20:02 — forked from joshuamorony/wfc-simple-tiled.ts
A TypeScript implementation based on Robert Heaton's "Even Simpler Tiled Model" of the Wave Function Collapse algorithm
type Tile = number;
type TileOrientation = 0 | 90 | 180 | 270;
export type TileMapping = Record<number, number>;
type Coordinates = [number, number];
enum DirectionKeys {
UP = 'UP',
DOWN = 'DOWN',
LEFT = 'LEFT',
@Kaoschuks
Kaoschuks / index.html
Created September 3, 2021 14:09
Skateboard Video Platform
<div class="container">
<div class="sidebar">
<span class="logo">S</span>
<a class="logo-expand" href="#">skateboard</a>
<div class="side-wrapper">
<div class="side-title">MENU</div>
<div class="side-menu">
<a class="sidebar-link discover is-active" href="#">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M9.135 20.773v-3.057c0-.78.637-1.414 1.423-1.414h2.875c.377 0 .74.15 1.006.414.267.265.417.625.417 1v3.057c-.002.325.126.637.356.867.23.23.544.36.87.36h1.962a3.46 3.46 0 002.443-1 3.41 3.41 0 001.013-2.422V9.867c0-.735-.328-1.431-.895-1.902l-6.671-5.29a3.097 3.097 0 00-3.949.072L3.467 7.965A2.474 2.474 0 002.5 9.867v8.702C2.5 20.464 4.047 22 5.956 22h1.916c.68 0 1.231-.544 1.236-1.218l.027-.009z" />

Easy steps to implement social login with linkedin in Angular 7 (Angular 2+)

Note: The entire login process cannot be handled from client side, backend integration required for some steps (Explained at Step-3).

Step-1: Create your app in linkedin developer console

In order to start with linkedin login, we need to first create out app in linkedin.

Note: If you have already created your app, click on Go to My apps, select your app and then follow from step no 1.2

@Kaoschuks
Kaoschuks / index.haml
Created August 20, 2021 17:15
Warp Drive! A pure CSS 3D Radial Menu
.grain
.intro
.center
.core
.outer_one
-(1..36).each do
.outer_one__piece
.outer_two
-(1..36).each do
.outer_two__piece
@Kaoschuks
Kaoschuks / index.html
Created August 20, 2021 17:14
Rings Navigation Concept
<nav class="top-right open">
<a class="disc l1">
<div>Messages</div>
</a>
<a class="disc l2">
<div>Photos</div>
</a>
<a class="disc l3">
<div>Profile</div>
</a>
@Kaoschuks
Kaoschuks / cloudinary_upload.ts
Created March 13, 2021 18:41
cloudinary api upolad
let cloudinary = {
upload_preset: '',
url: ''
}
async upload(file: Blob) {
return await new Promise((resolve, reject) => {
try {
const myFormData = new FormData();
myFormData.append("file", file);
myFormData.append("upload_preset", cloudinary.upload_preset);
@Kaoschuks
Kaoschuks / app.component.ts
Created March 13, 2021 18:24
Ionic capacitor push notification using capacitor plugin and angular fire
import { Component } from '@angular/core';
import { FcmProvider } from './providers/core/fcm';
import { GlobalsProvider } from './providers/core/globals';
import { environment } from 'src/environments/environment.prod';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss']