Skip to content

Instantly share code, notes, and snippets.

View wuletawwonte's full-sized avatar
🏠
working from home

Wuletaw Wonte wuletawwonte

🏠
working from home
View GitHub Profile
@wuletawwonte
wuletawwonte / increment_verse.vb
Created December 6, 2024 12:31
A Visual Basic Code that automates verse number incrementing on a big excel database file.
Sub IncrementVersesWithProgress()
Dim ws As Worksheet
Dim lastVerse As String
Dim lastBook As String
Dim lastNumber As Long
Dim cell As Range
Dim parts() As String
Dim totalRows As Long
Dim processedCount As Long
@wuletawwonte
wuletawwonte / private_fork.md
Created April 16, 2024 15:15 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@wuletawwonte
wuletawwonte / example-one.js
Last active March 28, 2022 11:19
Microverse DRY excercise
const pets = ['Cat', 'Dog', 'Bird', 'Fish', 'Frog', 'Hamster', 'Pig', 'Horse', 'Lion', 'Dragon'];
// Print all pets
pets.forEach(pet => console.log(pet));
.greetings {
font-family: Arial, sans-serif;
font-size: 1.5rem;
}
.greetings.english {
background-color: #000;
@wuletawwonte
wuletawwonte / addInFunctions.php
Created November 24, 2021 17:33
A php function to be added to functions.php to enable Wordpress json api give featured image source url
function post_featured_image_json( $data, $post, $context ) {
$featured_image_id = $data->data['featured_media']; // get featured image id
$featured_image_url = wp_get_attachment_image_src( $featured_image_id, 'origi>
if( $featured_image_url ) {
$data->data['featured_image_url'] = $featured_image_url[0];
}
return $data;
}