Skip to content

Instantly share code, notes, and snippets.

View uetcis's full-sized avatar
🤔
Getting Things Right

la .uetcis. uetcis

🤔
Getting Things Right
View GitHub Profile
@ApolloZhu
ApolloZhu / agnoster.zsh-theme
Created June 28, 2018 06:13
Basically PS1
prompt_status() {
local symbols
symbols=()
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘ 🤯 "
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡ 😎 "
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙ 🤔 "
if [[ -n "$symbols" ]] ; then
prompt_segment black default "$symbols"
else
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 24, 2024 23:47
crack activate Office on mac with license file
@siemensikkema
siemensikkema / fixcodeproj.rb
Last active April 15, 2021 14:06
Post processing script for generated vapor Xcode project
#!/usr/bin/env ruby
require 'xcodeproj'
project_path = ARGV[0]
project = Xcodeproj::Project.open(project_path)
project.targets.each do |target|
# suppress warnings
if [
"Configs",
- (void)rotatePath:(UIBezierPath *)path degree:(CGFloat)degree {
CGRect bounds = CGPathGetBoundingBox(path.CGPath);
CGPoint center = CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds));
CGFloat radians = (degree / 180.0f * M_PI);
CGAffineTransform transform = CGAffineTransformIdentity;
transform = CGAffineTransformTranslate(transform, center.x, center.y);
transform = CGAffineTransformRotate(transform, radians);
transform = CGAffineTransformTranslate(transform, -center.x, -center.y);
[path applyTransform:transform];