Skip to content

Instantly share code, notes, and snippets.

View clawfire's full-sized avatar
🐻
Being cool

Thibault Milan clawfire

🐻
Being cool
View GitHub Profile
@clawfire
clawfire / hello_world.js
Created January 31, 2019 18:51
Google Cloud function hello world for Smile's innovation article about FaaS
exports.helloHttp = (req, res) => {
res.send("Hello world !");
};
@clawfire
clawfire / generate_author_file.sh
Created December 18, 2018 15:57
Générer un fichier autheur à partir des logs SVN en assumant que nos utilisateurs sont des adresses emails
authors=$(svn log -q svn://[url] | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
echo "${author} = ${author%@*} <${author}>";
done
@clawfire
clawfire / Bouton popup.html
Created November 14, 2018 17:45
WR Drag Against Aids Vote code
<a class="typeform-share button" href="https://thibault.typeform.com/to/o573eC" data-mode="drawer_left" style="display:inline-block;text-decoration:none;background-color:#9A2AD2;color:white;cursor:pointer;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:50px;text-align:center;margin:0;height:50px;padding:0px 33px;border-radius:25px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;" data-submit-close-delay="5" target="_blank">Vote for your favourite </a> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm_share", b="https://embed.typeform.com/"; if(!gi.call(d,id)){ js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() </script>
@clawfire
clawfire / Frais de déplacement forfaitaires depuis 2013.csv
Created February 12, 2018 15:21
Frais de déplacement forfaitaires depuis 2013
origin destination units
Beaufort Bech 10
Beaufort Berdorf 4
Beaufort Bettendorf 7
Beaufort Betzdorf 17
Beaufort Bissen 17
Beaufort Biwer 15
Beaufort Boevange/Attert 21
Beaufort Bourscheid 18
Beaufort Colmar-Berg 15
{% assign eventList = site.events | where_exp: 'item', 'item.date >= site.time' | sort: 'date' %}
{% for event in eventList %}
<!-- Do your stuff here -->
{% endfor %}
#my-page {
/* This is a specific selector for this ID.It must be unique by document <whatever id="my-page"/> */
color: #43B581;
background: transparent;
}
article{
/* Those following styles will apply to all <article></article> elements */
background: white;
color: #747F8D;
const config = {
color: '#225159',
range: 10
};
class Script {
/**
* @params {object} request
*/
prepare_outgoing_request({ request }) {
,
*#.
,/(/*((%#/(##(*
.../(#%%##%%%###/#/%%*/%%%%%%(/.
.*%%&&%%%&&&%%%&%%%%#%%&&&&&%%%%&(.
.(%%&&%%&&&%%%#####%%%%%%&%%%%#%&%%&&(/*.
.,(%&&&&%%%%%&&%%###(##%%%%%%&%%%
#!/bin/sh
if [ -d "/Volumes/HYPERION" ]
then
echo "🖥 ---> 💾"
rsync -ru ~/1Password.agilekeychain /Volumes/HYPERION/1Password/
echo "🖥 <--- 💾"
rsync -ru /Volumes/HYPERION/1Password/1Password.agilekeychain ~/
echo "✅"
else