Skip to content

Instantly share code, notes, and snippets.

View arturgrigor's full-sized avatar
🤓

Artur Grigor arturgrigor

🤓
View GitHub Profile
@arturgrigor
arturgrigor / Monkey User Comic.js
Created September 23, 2018 13:36
Shows the latest Monkey User comic in Siri using Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: magic;
// Loads the latest Monkey User comic and shows it.
let rssTag = "rss"
let channelTag = "channel"
let itemTag = "item"
let titleTag = "title"
let descriptionTag = "description"
@arturgrigor
arturgrigor / Podfile
Created September 10, 2018 09:55
Sample Podfile for silencing warnings for CocoaPods dependencies
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '%TargetName%' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for %TargetName%
# pod 'FBSDKCoreKit'
end
@arturgrigor
arturgrigor / Instabug.json
Created March 21, 2017 11:56 — forked from klaaspieter/Instabug.json
Instabug Carthage Binary Project Specification
{
"7.0.5": "https://github.com/Instabug/Instabug-iOS/releases/download/7.0.5/Instabug.zip"
}
// .h
@interface AMPNavigationBar : UINavigationBar
@property (nonatomic, assign) CGFloat extraColorLayerOpacity UI_APPEARANCE_SELECTOR;
@end
// .m
#ifndef __signals_h__
#define __signals_h__
#include <list>
#include <memory>
#include <iostream>
#include <functional>
namespace signals {
template<typename... Values> class Signal {
#import <UIKit/UIKit.h>
@interface UIView (SMFrameAdditions)
@property (nonatomic, assign) CGPoint $origin;
@property (nonatomic, assign) CGSize $size;
@property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties
@property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect
@end