Skip to content

Instantly share code, notes, and snippets.

View MartinsOnuoha's full-sized avatar
🔧
Tooling.

Martins Onuoha MartinsOnuoha

🔧
Tooling.
View GitHub Profile
@MartinsOnuoha
MartinsOnuoha / gist:de47c25eb8e7a84697080e054df8fe87
Created June 28, 2023 22:59 — forked from Prezens/gist:f99fd28124b5557eb16816229391afee
Apache .htaccess settings for Vue, vue-router
View gist:de47c25eb8e7a84697080e054df8fe87
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
View 📊 Weekly development breakdown
Vue.js 15 hrs 3 mins ██████████░░░░░░░░░░░ 47.7%
TypeScript 9 hrs 7 mins ██████░░░░░░░░░░░░░░░ 28.9%
SCSS 5 hrs 16 mins ███▌░░░░░░░░░░░░░░░░░ 16.7%
GraphQL 46 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.4%
XML 36 mins ▍░░░░░░░░░░░░░░░░░░░░ 1.9%
@MartinsOnuoha
MartinsOnuoha / LycanthropeLog.js
Last active August 2, 2020 11:17
A reusable solution to the lycanthrope log task
View LycanthropeLog.js
const journal = []
function requestEventData() {
let day = prompt('what day is it?')
let activities = prompt('what activities did you do today?')
let didJacTurn = confirm('Did you turn today?')
/**
* where activities variable above, is a string in this format: 'eat, sleep, pizza, sleep'
@MartinsOnuoha
MartinsOnuoha / TransactionBlocks.js
Last active April 27, 2020 18:03
Solution to Encoded Blocks of transactions problem.
View TransactionBlocks.js
/**
* Get previous transactions from last transaction
* @param last { Object }
*/
const getPrevTransactions = (last) => {
let all = []
all.push(last);
if (last.previousBlock) {
let hasPrev = true;
View gist:be9cab0b083fb835ea2be77d62b9c82a
{
"countries": [
{
"country": "Afghanistan",
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"]
},
{
"country": "Albania",
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"]
},
@MartinsOnuoha
MartinsOnuoha / main.dart
Created December 4, 2018 07:33 — forked from collinjackson/main.dart
PageView example with dots indicator
View main.dart
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
@MartinsOnuoha
MartinsOnuoha / webdev_online_resources.md
Created July 16, 2018 16:02 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md