Skip to content

Instantly share code, notes, and snippets.

View MitchellMalleo's full-sized avatar

Mitch MitchellMalleo

View GitHub Profile
extension ImageConvertible where Self: RawRepresentable, Self.RawValue == String {
var image: UIImage? {
return UIImage(named: self.rawValue)
}
}
extension UIImage {
convenience init?<T: RawRepresentable>(image: T) where T.RawValue == String {
self.init(named: image.rawValue)
@MitchellMalleo
MitchellMalleo / README.md
Last active March 22, 2019 14:05
slack black css

Paste at the bottom of Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js for a cool dark theme

document.addEventListener('DOMContentLoaded', function() {
  $.ajax({
    url: 'https://gist.githubusercontent.com/MitchellMalleo/7c29de8681fb8e058554dfd5c00d1715/raw/3388d93d9fad321360d56f67104fd4df4cd7bc23/black.css',
    success: function(css) {
      $("<style></style>").appendTo('head').html(css);
    }
 });
@MitchellMalleo
MitchellMalleo / ReadmeTemplate.md
Created July 20, 2015 14:49
README iOS Template

Project Name

![](https://github.com/linkToYourImage.png)
![](https://github.com/linkToYourGif.gif)

Description

Overview of the project, uses of the project, etc

Requirements