Skip to content

Instantly share code, notes, and snippets.

@Shukuyen
Shukuyen / custom-views.patch
Created November 8, 2013 09:32
wordpress clean and simple contact form by meg nicholas custom view patch
Index: class.view.php
===================================================================
--- class.view.php (revision 800373)
+++ class.view.php (working copy)
@@ -16,9 +16,13 @@
public
function __construct($view)
{
-
- if (file_exists(CSCF_PLUGIN_DIR . "/views/" . $view . ".view.php"))
@Shukuyen
Shukuyen / Brewfile
Last active March 3, 2022 20:37
Brewfile for quick setup of new Mac computers via brew, brew cask and mas-cli
# Requirements:
# homebrew - http://brew.sh/
# brew bundle - https://github.com/Homebrew/homebrew-bundle
# cask - https://caskroom.github.io/ (installed automatically)
# mas-cli - https://github.com/argon/mas
cask_args appdir: '/Applications'
tap 'caskroom/cask'
tap 'caskroom/versions'
brew 'bat'
@Shukuyen
Shukuyen / CircleText.swift
Created May 8, 2022 05:46
SwiftUI view that writes text inside a circle. This is very specific to a project I am working on and not really customizable. It can be extended if you want to.
//
// CircleText.swift
//
// Created by Cornelius Schiffer on 07.05.22.
import SwiftUI
extension String {
func size(usingFont font: UIFont) -> CGSize {
let attributes = [NSAttributedString.Key.font: font]
@Shukuyen
Shukuyen / cleandroid
Last active September 16, 2022 15:26
Shell script to clean up Android status bar for screenshots or screen recordings
#! /bin/sh
DEVICES=$(adb devices | wc -l)
if [ $DEVICES -le 2 ]
then
echo "No devices connected via adb."
exit 1
fi