Skip to content

Instantly share code, notes, and snippets.

View XIO1986's full-sized avatar
๐ŸŒŽ
Work on Futurists Society

RAY HERMANN ANGOSSIO LIWA XIO1986

๐ŸŒŽ
Work on Futurists Society
View GitHub Profile
@XIO1986
XIO1986 / ScalingStaticPieChart.swift
Created December 31, 2021 11:31 — forked from monkeywithacupcake/ScalingStaticPieChart.swift
This is a scaling static pie chart - use as starter code for your project. This is based on the code in [App Coda's tutorial](https://www.appcoda.com/swiftui-pie-chart/) but it scales into whatever frame it is in rather than having hard coded center and radius. I've also changed the clockwise parameter to false to allow for logical building.
import SwiftUI
struct ScalingStaticPieChart: View {
var body: some View {
GeometryReader { geometry in
let gc = geometry.size.width * 0.5
let gcenter = CGPoint(x: gc, y: gc)
let outsize = geometry.size.width * 0.4
ZStack {
@XIO1986
XIO1986 / icons-generator.sh
Created December 31, 2021 11:30 — forked from monkeywithacupcake/icons-generator.sh
Icon sizes generator for iOS/watchOS/iMessage apps.
#!/bin/bash
# Sizes from https://developer.apple.com/library/ios/#qa/qa1686/_index.html
# Requirements: ImageMagick
function resize {
GREEN='\033[0;32m'
BLUE='\033[0;34m'
DEFAULT='\033[0m'
echo -e "Generating ${BLUE}$3${DEFAULT} at size ${GREEN}$2 ${DEFAULT}"
convert $1 -resize $2 $3
@XIO1986
XIO1986 / catchphrase.sh
Created December 31, 2021 11:30 — forked from monkeywithacupcake/catchphrase.sh
A shell script to generate an Image with text
#!/bin/zsh
# Asks a series of questions and then returns an image
# use like "bash catchphrase.sh"
echo "What is your favorite color?"
read theColor
echo "What is your catchphrase?"
read thePhrase
convert -size 1000x1000 xc:$theColor +repage \
-size 800x800 -fill white -background None \