Skip to content

Instantly share code, notes, and snippets.

View Danetag's full-sized avatar
🕺
Entertaining

Arnaud Tanielian Danetag

🕺
Entertaining
View GitHub Profile
@Danetag
Danetag / app.js
Last active April 29, 2017 03:00
Actions on Google - App setup
'use strict';
// enable debugging if desired
process.env.DEBUG = 'actions-on-google:*';
// SDK
const Assistant = require('actions-on-google').ApiAiAssistant;
// Express App
const app = express();
@Danetag
Danetag / lemonde-free.js
Created January 31, 2017 16:29
remove adblock popin on lemonde.fr
// ==UserScript==
// @name Free articles on Lemonde.fr
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Danetag
// @match http://www.lemonde.fr/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Ad free l'equipe.fr
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove adblock's popin on l'equipe.fr
// @author Danetag
// @match http://www.lequipe.fr/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Ad free lequipe.fr
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove adblock popin on lequipe.fr
// @author Danetag
// @match http://www.lequipe.fr/*
// @grant none
// ==/UserScript==
Js2JsCompiler.prototype.compileCode = function(code) {
return code; // as we need to compile javascript to javascript, we do nothing here :)
};
@Danetag
Danetag / helper.value_of.handlebars
Last active December 30, 2015 23:59
Handlebars helper : get the value of an object with a given key.
/*
USAGE : {{#value_of obj "key" }} {{this}} {{/value_of}}
/*
Handlebars.registerHelper('value_of', function(context, key, options) {
return options.fn(context[key]);
});