Skip to content

Instantly share code, notes, and snippets.

View crabcrabcam's full-sized avatar

MxCraven crabcrabcam

View GitHub Profile
@crabcrabcam
crabcrabcam / CamDarkGeany.conf
Last active August 14, 2017 11:09
Dark theme for Geany
#Copyright 2017 Cameron Reid <cameron[at]camreid[dot]co[dot]uk>
#
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
#1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
#2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
#3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
@marcosbitetti
marcosbitetti / godot.gitignore
Created October 16, 2016 00:22
gitignore for Godot
*~
*.swp
*.swo
.fscache
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
@asarode
asarode / generateRandomColor.swift
Last active March 12, 2024 13:48
Generating random UIColor in Swift
func generateRandomColor() -> UIColor {
let hue : CGFloat = CGFloat(arc4random() % 256) / 256 // use 256 to get full range from 0.0 to 1.0
let saturation : CGFloat = CGFloat(arc4random() % 128) / 256 + 0.5 // from 0.5 to 1.0 to stay away from white
let brightness : CGFloat = CGFloat(arc4random() % 128) / 256 + 0.5 // from 0.5 to 1.0 to stay away from black
return UIColor(hue: hue, saturation: saturation, brightness: brightness, alpha: 1)
}