Skip to content

Instantly share code, notes, and snippets.

View kevin-hirsch's full-sized avatar

Kevin Hirsch kevin-hirsch

View GitHub Profile
@a-voronov
a-voronov / mr-reminder.rb
Last active May 14, 2020 13:09
Gitlab Merge Requests Reminder
require 'getoptlong'
require 'gitlab'
opts = GetoptLong.new(
['--help', '-h', GetoptLong::NO_ARGUMENT],
['--endpoint', '-e', GetoptLong::REQUIRED_ARGUMENT],
['--token', '-t', GetoptLong::REQUIRED_ARGUMENT],
['--group', '-g', GetoptLong::REQUIRED_ARGUMENT],
['--webhook', '-w', GetoptLong::REQUIRED_ARGUMENT]
)
@niw
niw / ios11_uinavigationbar_behavior.md
Last active January 3, 2024 11:35
A note of my observation about iOS 11 UINavigationBar behavior.

UINavigationBar on iOS 11

NOTE This note is written based on Xcode version 9.0 beta 6 (9M214v) and its simulator binary.

iOS 11 changes UINavigationBar a lot, not just only for its large title, but also the internal view hierarchy and lay outing views are changed. This is a small note about UINavigationBar behavior on iOS 11, mainly focusing on migrating the application to iOS 11.

Lay outing views

UINavigationBar has been using manual lay outing until iOS 10, so all its content views like titleView has been directly child view of the UINavigationBar. However, since iOS 11, it is using auto layout with bunch of layout guides to lay out its content views in its own internal container view, _UINavigationBarContentView.

@DejanEnspyra
DejanEnspyra / Obfuscator.swift
Created May 31, 2017 17:51
Obfuscation of hard-coded security-sensitive strings.
//
// Obfuscator.swift
//
// Created by Dejan Atanasov on 2017-05-31.
//
import Foundation
class Obfuscator: AnyObject {
@imartinez
imartinez / Google Play Reviews Widget for Dashing.md
Last active February 28, 2017 09:02
Google Play Reviews Widget for Dashing
@imartinez
imartinez / Google Play Rating Widget for Dashing.md
Last active February 22, 2017 05:38
Google Play Rating Widget for Dashing
@georgeyord
georgeyord / README.md
Last active April 5, 2022 04:41
Dashing Shoutbox widget

Dashing Shoutbox widget

A widget to send a message/announcement/quote etc to a Shoutbox widget.

About

The given scenario is that you want to share a message with the the dashboard viewers using a simple curl request.

Installation

@digitalronin
digitalronin / gist:9a0258d6b182f647e5d7
Created August 1, 2015 11:25
Bash script to reload the current Chrome (or Safari) browser window
#!/bin/bash
/usr/bin/osascript <<EOF
tell application "Google Chrome"
set docUrl to URL of (active tab of window 1)
set URL of (active tab of window 1) to docUrl
end tell
EOF
# /usr/bin/osascript <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "4"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
@joepadmiraal
joepadmiraal / LICENSE.md
Last active December 21, 2020 16:41
Jenkins build status widget for Dashing

The MIT License (MIT)

Copyright (c) 2014 David Underwood

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: