https://bit.ly/informationsecurityfornomads
How to protect your gear and data (aka your livelihood) while travelling the world?
- Use strong passwords. Here is why
- Use a password manager
- Dashlane: Never forget another password | Dashlane
https://bit.ly/informationsecurityfornomads
How to protect your gear and data (aka your livelihood) while travelling the world?
import Eureka | |
open class _SearchSelectorViewController<Row: SelectableRowType, OptionsRow: OptionsProviderRow>: SelectorViewController<OptionsRow>, UISearchResultsUpdating where Row.Cell.Value: SearchItem { | |
let searchController = UISearchController(searchResultsController: nil) | |
var originalOptions = [ListCheckRow<Row.Cell.Value>]() | |
var currentOptions = [ListCheckRow<Row.Cell.Value>]() | |
open override func viewDidLoad() { |
import CoreLocation | |
extension CLLocationCoordinate2D { | |
/** | |
Calculates a bbox around this CLLocationCoordinat2D by describing a distance that is roughly analagous to | |
the radius of a circle with a center at this coordinate and the radius is the distance and inscribes the circle | |
to the bbox created. | |
This tangential point method of calculating the box is described in Handbook of Mathematics By I.N. Bronshtein, | |
K.A. Semendyayev, Gerhard Musiol, Heiner Mühlig |
getEventsPromise= function (myFilter, count, timeOut) { | |
timeOut = timeOut ? timeOut : 30000; | |
var promise = new Promise(function (resolve, reject) { | |
count = (typeof count !== "undefined") ? count : 1; | |
var results = []; | |
var toClear = setTimeout(function () { | |
reject("Timed out"); | |
}, timeOut); | |
myFilter.watch(function (error, result) { | |
if (error) { |
"use strict"; | |
/** | |
* @param {!Function.<!Promise>} action. | |
* @param {!Number | !string | !BigNumber} gasToUse. | |
* @returns {!Promise} which throws unless it hit a valid error. | |
*/ | |
module.exports = function expectedExceptionPromise(action, gasToUse) { | |
return new Promise(function (resolve, reject) { | |
try { |
const Promise = require("bluebird"); | |
const sequentialPromise = require("./sequentialPromise.js"); | |
/** | |
* @param {!string | !Array.<!string>} txHash, a transaction hash or an array of transaction hashes. | |
* @param {Number} interval, in seconds. | |
* @returns {!Promise.<!object> | !Promise.<!Array.<!object>>} the receipt or an array of receipts. | |
*/ | |
module.exports = function getTransactionReceiptMined(txHash, interval) { | |
const self = this; |
extension UIImage { | |
func fixedOrientation() -> UIImage { | |
if imageOrientation == UIImageOrientation.Up { | |
return self | |
} | |
var transform: CGAffineTransform = CGAffineTransformIdentity | |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |