This file contains 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
gulp.task('pre-build', ['metalsmith']); | |
gulp.task('post-build', ['bower-files', 'image-files']); | |
gulp.task('build', function(callback) { | |
runSequence('pre-build', 'post-build', callback); | |
}); | |
This file contains 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
//On my own homepage, I wanted to create a icon marker on Vänersborg, my hometown. | |
//According to Google Maps API, polygons should be easy to add as well. | |
//here is the implementation: http://www.reimertz.co/me/ | |
google.maps.event.addDomListener(window, 'load', init); | |
var map; | |
function init() { | |
var mapOptions = { |
This file contains 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
/* | |
1. Go to a random english wikipedia article | |
2. Paste the code below in the console | |
3. Take a WikiWalk. :D | |
*/ | |
This file contains 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
asdasdasdasd |
This file contains 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
/* | |
template_parallax.css:916 | |
Det är detta som buggar ur. Du behöver ändra denna regeln på så inte webbläsaren ignorerar klick-eventet. :) | |
* { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; |
This file contains 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
1. download cyberduck (https://update.cyberduck.io/Cyberduck-4.7.3.zip) | |
2. open cyberduck | |
3. click open connection | |
4. select SFTP | |
5. enter | |
server: remote12.chalmers.se | |
username: <CID> | |
password: <PASSWORD> | |
path: /chalmers/groups/tda501-exhib-area/www/www.idxpo.se/2015 | |
6. Connect |
This file contains 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
gistfiles.vote |
This file contains 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=iso-8859-1"> | |
<title>SlickGrid example: Multi Column Sort</title> | |
<link rel="stylesheet" href="https://rawgit.com/mleibman/SlickGrid/master/slick.grid.css" type="text/css"/> | |
<link rel="stylesheet" href="https://rawgit.com/mleibman/SlickGrid/master/css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css"/> | |
<link rel="stylesheet" href="https://rawgit.com/mleibman/SlickGrid/master/examples/examples.css" type="text/css"/> | |
</head> | |
<body> |
This file contains 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 charset="utf-8" /> | |
<title>Demos - Multiview - Recline Data Explorer and Library</title> | |
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
This file contains 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
//I created a quick suprise for you. | |
//Paste this on any homepage and you'll get a //surprise.. Also, it's less than 250 words! | |
document.body.innerHTML += '<div class="piano"></div>'; | |
document.head.innerHTML += '<style>.piano{display:flex;flex-direction:row;justify-content:center;margin:50px;position:relative}.piano:before{width:100%;text-align:center;content:\'Because I created this\';position:absolute;display:block;left:0;top:-25px}.piano>*{width:50px;height:100px;background-color:wheat;border-right:1px solid #fff;opacity:.8}.piano>[class$="#"]{background:#000;position:absolute;height:50px;margin-left:-25px;z-index:1}.piano>:hover{opacity:.9}.piano>:active{opacity:1;transform:scaleY(.9);transform-origin:top center}</style>'; | |
var p = document.querySelector('.piano'), | |
keyMap = { | |
'c': 65.41, | |
'c#': 69.30, | |
'd': 73.42, |
OlderNewer