Skip to content

Instantly share code, notes, and snippets.

View andrewcar's full-sized avatar

Andrew Carvajal andrewcar

View GitHub Profile
@mrhead
mrhead / wordle.json
Last active June 11, 2024 08:04
All Wordle words. Line number = wordle number.
[
"cigar", "rebut", "sissy",
"humph",
"awake",
"blush",
"focal",
"evade",
"naval",
"serve",
"heath",
@Kilo-Loco
Kilo-Loco / Kilo Loco Xcode Theme.txt
Created October 11, 2017 04:28
This is the Kilo Loco Xcode theme that you can see by watching any of the videos on youtube.com/kiloloco
*SOURCE EDITOR*
Plain - #FFFFFF - SF Mono Regular 14.0
Comments - #7F7F7F - SF Mono Regular Italic 14.0
Strings - #F9EC12 - SF Mono Regular 14.0
Characters / Numbers - #786DFF - SF Mono Regular 14.0
Keywords - #F100FF - SF Mono Regular 14.0
Processor Statements - #E47C48 - SF Mono Regular 14.0
URLs - #4164FF - SF Mono Regular 14.0
Attributes - #2D449B - SF Mono Regular 14.0
Project - #2CFF33 - SF Mono Regular 14.0
@klein-artur
klein-artur / complementaryColor.swift
Last active May 29, 2022 21:10
get complementary color to UIColor in Swift
// get a complementary color to this color:
func getComplementaryForColor(color: UIColor) -> UIColor {
let ciColor = CIColor(color: color)
// get the current values and make the difference from white:
let compRed: CGFloat = 1.0 - ciColor.red
let compGreen: CGFloat = 1.0 - ciColor.green
let compBlue: CGFloat = 1.0 - ciColor.blue
@licvido
licvido / App.swift
Last active December 31, 2019 00:37
SWIFT: Get application version and build
let version : AnyObject! = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString")
let build : AnyObject! = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleVersion")
println("Version: \(version)")
println("Build: \(build)")