⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>One Graph</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<script type="text/javascript" src="simple-graph.js"></script> | |
<style type="text/css"> | |
body { font: 13px sans-serif; } | |
rect { fill: #fff; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ratio{ | |
display: block; | |
height: 0; /* we have padding-bottom instead height (content+padding-bottom)*/ | |
padding-bottom: 56.25%; /*16:9 ratio -> (9 ÷ 16) × 100 = 56.25 */ | |
overflow: hidden; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Differents levels */ | |
color: hsl(330, 100%, 50%); | |
text-shadow: 0 2px 0 0px hsl(330, 100%, 25%), | |
0 3px 2px 0px hsla(330, 100%, 15%, 0.5), | |
/* next */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @use: @include font-face('Roboto', '../fonts/Roboto/Roboto-Regular', 400, 'serif'); | |
@mixin font-face($font-family, $file-path, $font-weight, $font-style) { | |
@font-face { | |
font-family: $font-family; | |
src: url('#{$file-path}.eot'); | |
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'), | |
url('#{$file-path}.woff') format('woff'), | |
url('#{$file-path}.ttf') format('truetype'), | |
url('#{$file-path}.svg##{$font-family}') format('svg'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="blup active"></button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.Promise) { | |
console.log('Promise found'); | |
var promise = new Promise(function(resolve, reject) { | |
var request = new XMLHttpRequest(); | |
request.open('GET', 'http://api.icndb.com/jokes/random'); | |
request.onload = function() { | |
if (request.status == 200) { | |
resolve(request.response); // we got data here, so resolve the Promise |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# CREAR UN REPOSITORIO EN GITHUB DESDE LA TERMINAL ############################ | |
############################################################################### | |
############################################################################### | |
# Crear el repositorio en Github (Github API v3) | |
curl -u '<user>' https://api.github.com/user/repos -d '{ "name": "<repository>" }' | |
# Añadir el repositorio remoto de Github a nuestro repositorio local | |
git remote add origin [email protected]:<user>/<repository>.git | |
# Añadimos todos los cambios |