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
/* | |
* Graph.h | |
*/ | |
#ifndef GRAPH_H_ | |
#define GRAPH_H_ | |
#include <vector> | |
#include <list> | |
#include <queue> | |
using namespace std; |
var myNamespace = (function () { | |
var myPrivateVar, myPrivateMethod; | |
// A private counter variable | |
myPrivateVar = 0; | |
// A private function which logs any arguments | |
myPrivateMethod = function( foo ) { | |
console.log( foo ); |
<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> |
<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; border: 1px solid black; display: inline-block; } | |
div:nth-child(2n) { | |
border: 1px dashed black; | |
} | |
div:nth-child(3) { | |
border: 1px dotted black; | |
} |
<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: 50px; | |
width: 100px; | |
border: 1px dashed black; | |
margin-bottom: 10px; | |
} | |
div:nth-child(2n) { | |
position: relative; |
<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; | |
} |