Skip to content

Instantly share code, notes, and snippets.

View rdougan's full-sized avatar

Robert Dougan rdougan

View GitHub Profile
@rdougan
rdougan / config.gateway.json
Created February 28, 2020 20:37
USG ExpressVPN setup
{
"firewall": {
"modify": {
"PBR_VPN": {
"rule": {
"5000": {
"action": "modify",
"description": "traffic from VLan 50 to VPN Tunnel",
"modify": {
"table": "50"
render() {
let something = null;
if (this.props.something) {
something = (
<View />
);
}
return (
@rdougan
rdougan / ForceTouchButton.swift
Created October 9, 2015 13:47
An example of adding ForceTouch to a UIButton using a new UIControlEvent
//
// ForceTouchButton.swift
//
// Created by Robert Dougan on 09/10/15.
// Copyright © 2015 Robert Dougan. All rights reserved.
//
import UIKit
extension UIControlEvents {
@rdougan
rdougan / CollectionViewListLayout.swift
Created September 29, 2015 10:42
A basic NSCollectionViewLayout subclass which displays NSCollectionView items in a list layout.
//
// CollectionViewListLayout.swift
// money
//
// Created by Robert Dougan on 29/09/15.
// Copyright © 2015 Phyn3t. All rights reserved.
//
import Cocoa
.x-tab .x-button-icon.plane,
.x-button .x-button-icon.plane {
&:before {
text-align: center;
font-family: 'IcoMoon';
content: "t";
}
}
console.log('page changed');
$(document).ready(function() {
$('.fancybox').click(function(e) {
e.preventDefault();
e.stopPropagation();
//$.fancybox($(this));
console.log('click!?');
});
});
$(document).ready(function() {
alert('items found: ' + $('.fancybox').length);
$('.fancybox').click(function(e) {
e.preventDefault();
e.stopPropagation();
//$.fancybox($(this));
console.log('click!?');
});
});
$(document).ready(function() {
$('.fancybox').click(function(e) {
e.preventDefault();
e.stopPropagation();
//$.fancybox($(this));
console.log('click!?');
});
});
$('.fancybox').click(function(e) {
e.preventDefault();
e.stopPropagation();
$.fancybox($(this));
});