Skip to content

Instantly share code, notes, and snippets.

View Khodl's full-sized avatar
💡

Nathanaël Khodl Khodl

💡
View GitHub Profile
@Khodl
Khodl / hide-when-not-relevant.js
Last active January 2, 2017 08:26
Whatsapp share button
// Hide if not Android or iOS (and not iPod or iPad)
(function(){
var isIos = ((navigator.userAgent.match(/Android|iPhone/i) && !navigator.userAgent.match(/iPod|iPad/i)) ? true : false);
if(! isIos){
var v = document.getElementsByClassName('.share-whatsapp') ;
for(var j in v){
if(v[j].style)
v[j].style.display = 'none';
}
}
@Khodl
Khodl / location.html
Created January 13, 2016 20:42
Show your NomadTrips location on your website
<div id="location">
<!-- Your location will be displayed there -->
</div>
<script>
/*
* Hey dear Digital Nomad!
* Feel free to copy that code ;-)
*
@Khodl
Khodl / PopulateCommand.php
Last active October 4, 2016 23:36
Populate or update your data with one Symfony command
<?php
/*
* By Khodl.me
* Gist: https://gist.github.com/Khodl/5cf8fad1735ad963133a62cc71ce777d
*/
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
@Khodl
Khodl / .htaccess
Last active July 24, 2017 23:47
Generic way to force https and redirect to naked domain
RewriteEngine On
# Remove www (do it first in case https is not supported by subdomain)
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Force https...
# ... if not local
RewriteCond %{SERVER_NAME} !=127.0.0.1
RewriteCond %{SERVER_NAME} !=localhost
@Khodl
Khodl / cool-meta-tags.html
Last active June 4, 2020 09:39
Meta tags to make it mobile friendly
<!-- Color on mobile-->
<meta name="theme-color" content="#000000"/>
<!-- Make app compatible -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="{{ APP_TITLE }}">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="mobile-web-app-capable" content="yes">
@Khodl
Khodl / list.md
Last active April 18, 2017 15:33
Minimal resources for https://links.khodl.me

Ressources as a minimal-list

If I had to keep only few resources that were really helpful for my own knowledge/self-development, here is what I would keep. Also, for questions and suggestions, please tweet me: @NathanaelKhodl.

Read and learn

Books and websites that tell you a lot, without (so much) bullshit, and give specific tools.

@Khodl
Khodl / cv.md
Last active September 20, 2019 10:18
Curriculum vitae

Nathanaël Khodl

Web developer

Skills

Chatbots, Web Development, Entrepreneurship, Python, Web Design, APIs, JavaScript, Node.js, Community Management, Symfony4, Scraping, Data Mining, MongoDB, UML, Payment Systems, PHP, MySQL, HTML, CSS.

Education