Skip to content

Instantly share code, notes, and snippets.

Avatar

Silvere Letellier silveur

View GitHub Profile
View Mobile hooking
const Navbar = (props) => {
const isMobile = useIsMobile();
if(isMobile) return <Mobile />
else return <DesktopNav />
}
const DesktopNav = (props) => {
return <navbar className="desktop" />
}
@silveur
silveur / deploy.sh
Created Dec 7, 2017
Deploy script from post-receive with nvm
View deploy.sh
#!/bin/bash
set -u
set -e
export NVM_DIR="$HOME/.nvm"
. "$NVM_DIR/nvm.sh"
target_branch="master"
working_tree=""
View gist:aa9f21bf0d68e7155eba903266ec7228
<script src="http://widget.mixcloud.com/media/js/widgetApi.js" type="text/javascript"></script>
<iframe id="mixcloudPlayer" width="100%" height="120" frameborder="0" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Fspartacus%2Fparty-time%2F&hide_cover=1&light=1"></iframe>
<script type="text/javascript">
var widget = Mixcloud.PlayerWidget(document.getElementById('mixcloudPlayer'));
widget.getPosition().then(function(position) {
});
</script>
You can’t perform that action at this time.