Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| #import <Foundation/Foundation.h> | |
| void method1(NSArray *numbers) | |
| { | |
| NSArray *sorted = [numbers sortedArrayUsingSelector:@selector(compare:)]; | |
| } | |
| void method2(NSArray *numbers) | |
| { | |
| NSNumber *max=[numbers valueForKeyPath:@"@max.doubleValue"]; |
| <style> | |
| div { | |
| border: 1px solid black; | |
| width: 100px; | |
| height: 50px; | |
| margin: 0 auto; | |
| margin-bottom: 10px; | |
| position: relative; | |
| } |
| <style> | |
| div { | |
| border: 1px solid black; | |
| width: 100px; | |
| height: 50px; | |
| margin: 0 auto; | |
| margin-bottom: 10px; | |
| position: relative; | |
| } |
| <style> | |
| div { | |
| height: 50px; | |
| width: 100px; | |
| border: 1px dashed black; | |
| margin-bottom: 10px; | |
| } | |
| div:nth-child(2n) { | |
| position: relative; |
| <style> | |
| .row > div { height: 100px; width: 100px; border: 1px solid black; } | |
| div:not(.row) { display: inline-block; } | |
| .row > div:before { | |
| content: ""; | |
| display: block; | |
| height: 50px; | |
| width: 50px; |
| <style> | |
| div { height: 100px; width: 100px; border: 1px solid black; display: inline-block; } | |
| div:nth-child(2n) { | |
| border: 1px dashed black; | |
| } | |
| div:nth-child(3) { | |
| border: 1px dotted black; | |
| } |
| <style> | |
| div { height: 100px; width: 100px; margin-bottom: 10px; } | |
| #one { border: 2px solid black; } | |
| #two { border: 2px dashed black; display: none; } | |
| #three { border: 2px dotted black; } | |
| /* o que acontece ao acrescentar a seguinte regra? */ | |
| /* #two { display: block; visibility: hidden; } */ | |
| </style> |
| <style> | |
| div { height: 100px; width: 100px; display: inline-block; } | |
| #one { border: 2px solid black; } | |
| #two { position: relative; border: 2px dashed black; top: 20px; left: 20px; } | |
| #three { border: 2px dotted black; } | |
| /* o que acontece ao acrescentar a seguinte regra? */ | |
| /* #two { position: absolute; } */ | |
| </style> |