You want connect to server.com
via SSH using key authentication? Follow this guide.
cd ~/.ssh
ssh-keygen -t ed25519 -C your@email.com
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true | |
}, | |
"profiles": [ | |
{ | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, |
http://tdd-workshop.uikonf.com
Twitter hashtag #tddberlin
Mobile Central Europe Conference in Warsaw in Feb 2015
display dialog "Desktop icons visible or hidden?" buttons {"Visible", "Hidden"} with icon 2 with title "Switch to presentation mode" default button 1 | |
set switch to button returned of result | |
if switch is "Hidden" then | |
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder" | |
else | |
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder" | |
end if |
#import <Foundation/Foundation.h> | |
@interface HRSTDIOReadWriter : NSObject | |
@end | |
@implementation HRSTDIOReadWriter | |
+(NSString*) readFromSTDIN | |
{ | |
NSFileHandle *kbd = [NSFileHandle fileHandleWithStandardInput]; |
import Foundation | |
extension Array where Element: FloatingPoint { | |
func average() -> Element { | |
// one addition and one division per array item | |
return reduce(0) { result, value in result + value / Element(count) } | |
} | |
tl;dr: Write things down. Communicate with purpose. Minimize meetings.
ts;rm: watch Peter's talk, get the book REMOTE: Office Not Required
What you need to know about transitioning to remote work (Tools, tips, and surprising techniques from 8+ teams that know how it’s done, like Automattic, Buffer, Ada, and InVision)
{ | |
"profiles": [ | |
{ | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 1957, |
IMP titleImp = imp_implementationWithBlock(^NSString *(__unsafe_unretained id foo){ | |
return @"🐠"; | |
}); | |
SEL titleSelector = NSSelectorFromString(@"title"); | |
Method existingTitle = class_getInstanceMethod([UIViewController class], | |
titleSelector); | |
method_setImplementation(existingTitle, | |
titleImp); |
// MissingInteger | |
// Find the smallest positive integer that does not occur in a given sequence. | |
//This is a demo task. | |
// | |
//Write a function: | |
// | |
//public func solution(_ A : inout [Int]) -> Int | |
// | |
//that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. |