Skip to content

Instantly share code, notes, and snippets.

View martinlemahieu's full-sized avatar

Martin Lemahieu martinlemahieu

View GitHub Profile
@martinlemahieu
martinlemahieu / randomColor.js
Last active September 17, 2015 13:43
random #color generator
function randomColor() {
return '#' + Math.floor(Math.random()*16777215).toString(16);
}
@martinlemahieu
martinlemahieu / .gitconfig
Last active September 14, 2023 10:46
git config
[alias]
# shortcuts
a = add
s = status -s
st = status
cm = commit -m
co = checkout
cob = checkout -b
br = branch
brm = branch --merged
@martinlemahieu
martinlemahieu / youtube-embed-responsive.html
Created February 22, 2017 15:22
Responsive Youtube Embed Video
<!-- WITHOUT MAX WIDTH -->
<div class="youtube-container">
<iframe src="//www.youtube.com/embed/n-7zo6CXcp8" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div>
<style>
.youtube-container {
position: relative;
height: 0;
sudo update-alternatives --config php