Skip to content

Instantly share code, notes, and snippets.

View mambisi's full-sized avatar
🔨
crafting

Mambisi Zempare mambisi

🔨
crafting
View GitHub Profile
@mambisi
mambisi / README.md
Created October 29, 2024 11:55 — forked from paolocarrasco/README.md
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@mambisi
mambisi / pi3_browser-only.md
Created October 17, 2019 10:19 — forked from bheisig/pi3_browser-only.md
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen
@mambisi
mambisi / UIImage+Tinting.swift
Created February 18, 2018 14:28 — forked from iamjason/UIImage+Tinting.swift
Swift UIImage extension for tinting images
/**
Usage:
let originalImage = UIImage(named: "cat")
let tintedImage = originalImage.tintWithColor(UIColor(red: 0.9, green: 0.7, blue: 0.4, alpha: 1.0))
*/
extension UIImage {
func tintWithColor(color:UIColor)->UIImage {
#Question 1
elements = ["Hello", "World", "People", "Place"]
print(elements[0])
print(elements[1])
print(elements[2])
print(elements[3])
#Question 2
evenCount = 0
oddCount = 0