Skip to content

Instantly share code, notes, and snippets.

View reimertz's full-sized avatar
🌈
😍😂😃😀🙂🤔😐🙁😟🥺😣😖😭

Piérre Reimertz reimertz

🌈
😍😂😃😀🙂🤔😐🙁😟🥺😣😖😭
View GitHub Profile
//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 = {
/*
1. Go to a random english wikipedia article
2. Paste the code below in the console
3. Take a WikiWalk. :D
*/
/*
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;
@reimertz
reimertz / gist:a6ac5d8a97eec398b5bc
Last active October 25, 2015 20:15
how to connect to chalmers idxpo.se
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
gistfiles.vote
@reimertz
reimertz / gist:85589e69781f9d6d5a4a
Last active March 24, 2016 16:20
gulp + metalsmith
gulp.task('pre-build', ['metalsmith']);
gulp.task('post-build', ['bower-files', 'image-files']);
gulp.task('build', function(callback) {
runSequence('pre-build', 'post-build', callback);
});
<!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]-->
//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,
@reimertz
reimertz / keybase.md
Created July 18, 2016 22:08
keybase.md

Keybase proof

I hereby claim:

  • I am reimertz on github.
  • I am reimertz (https://keybase.io/reimertz) on keybase.
  • I have a public key whose fingerprint is F985 3B1A 71FF 1017 C143 F19D 4F60 01DC E1C5 5510

To claim this, I am signing this object: