create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| // Core assets | |
| let coreAssets = []; | |
| // On install, cache core assets | |
| self.addEventListener('install', function (event) { | |
| // Cache core assets | |
| event.waitUntil(caches.open(coreID).then(function (cache) { | |
| for (let asset of coreAssets) { | |
| cache.add(new Request(asset)); |
| /* | |
| * Extends native promises with deferred objects. | |
| * Deferreds return an object that has a <promise>, which could be resolved via | |
| * the included <resolve> and <reject> calls. | |
| */ | |
| if (Promise && !("deferred" in Promise)) Promise.deferred = function() { | |
| var fResolve, | |
| fReject, | |
| P = new Promise(function(resolve, reject) { | |
| fResolve = resolve; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # Custom Social Sharing Buttons | |
| Custom social sharing buttons for Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, and Pinterest. | |
| TODO: ADD MORE http://petragregorova.com/articles/social-share-buttons-with-custom-icons/ | |
| ```html | |
| <a class="icon-twitter" rel="nofollow" | |
| href="http://twitter.com/" | |
| onclick="popUp=window.open( |
| #mostrar la ruta en el título de la ventana del finder. | |
| //activarlo | |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | |
| //desactivarlo | |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO | |
| #configurar menu contextual para copiar la ruta | |
| 1) Abrimos automator y seleccionamos servicios | |
| 2) Arriba en la parte derecha marcamos en "El servicio recibe la seleccion de" la opción "archivos o carpetas" y en "finder" |
| /* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */ | |
| :root { | |
| -webkit-text-size-adjust: none; | |
| -moz-text-size-adjust: none; | |
| -ms-text-size-adjust: none; | |
| -o-text-size-adjust: none; | |
| text-size-adjust: none; | |
| } |
| # En symfony2 por defecto debemos configurar el document_root del dominio para que responda el directorio "web", el problema viene cuando no podemos cambiar donde apunta por defecto el dominio (no tenemos acceso a la configuración del apache), esta solución no es ideal pero funciona. | |
| #1 Nuestro dominio apunta a una carpeta raiz en el servidor web, suelen ser generalmente httpdocs, public_html, www pero podrían ser cualquier otra, en esta carpeta raiz subimos todo el contenido de symfony2 | |
| #2 En la carpeta raiz nos creamos un fichero .htaccess, similar al que tenemos dentro de la carpeta web con la siguiente configuración: | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /symfony/web/app.php [QSA,L] |
| /** | |
| * play a bit with nth-child and nth-last-child | |
| */ | |
| div { | |
| width: 40px; | |
| height: 40px; | |
| margin: 2px; | |
| border: solid 2px #444 | |
| } |
| /* Image interpolation demo | |
| WebKit-only at the time (April 2012) | |
| */ | |
| @keyframes browsers { | |
| 20% { background-image: url('http://lea.verou.me/css-4d/img/chrome-logo.png'); } | |
| 40% { background-image: url('http://lea.verou.me/css-4d/img/safari-logo.png'); } | |
| 60% { background-image: url('http://lea.verou.me/css-4d/img/opera-logo.png'); } | |
| 80% { background-image: url('http://lea.verou.me/css-4d/img/ie-logo.png'); } | |
| } |