Skip to content

Instantly share code, notes, and snippets.

njoyard njoyard

  • Berlin
Block or report user

Report or block njoyard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@njoyard
njoyard / tlp-ac.log
Created Feb 28, 2019
Test results on Arch on a Thinkpad x270, with possibly some config remaining from 1.1.
View tlp-ac.log
--- TLP 1.1.907 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
@njoyard
njoyard / controllers.application.js
Last active Feb 12, 2019
Double component render test
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@njoyard
njoyard / controllers.application.js
Last active Feb 12, 2019
Double component render test
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View Thu, 21 Jan 2016 23:05:38 GMT.json
{"api_root_url": "http://www.nosdeputes.fr/api/document/Amendement/", "id_step": "02_1èrelecture_assemblee_hemicycle", "sujets": {"Article 1er ter": {"titre": "Article 1er ter", "details": "article 1er ter", "amendements": [{"sort": "adopté", "groupe": "ECOLO", "id_api": "120697", "numero": "23", "aut": "M. Coronado, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "NI", "id_api": "120699", "numero": "304", "aut": "M. Fromantin", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "NI", "id_api": "120695", "numero": "357", "aut": "M. Fromantin", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120700", "numero": "649", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120901", "numero": "652", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120696", "numero": "653", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120698", "numero": "65
View Thu, 21 Jan 2016 23:03:37 GMT.json
{"api_root_url": "http://www.nosdeputes.fr/api/document/Amendement/", "id_step": "02_1èrelecture_assemblee_hemicycle", "sujets": {"Article 1er ter": {"titre": "Article 1er ter", "details": "article 1er ter", "amendements": [{"sort": "adopté", "groupe": "ECOLO", "id_api": "120697", "numero": "23", "aut": "M. Coronado, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "NI", "id_api": "120699", "numero": "304", "aut": "M. Fromantin", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "NI", "id_api": "120695", "numero": "357", "aut": "M. Fromantin", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120700", "numero": "649", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120901", "numero": "652", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120696", "numero": "653", "aut": "M. Krabal, …", "date": "2016-01-18"}, {"sort": "non-voté", "groupe": "RRDP", "id_api": "120698", "numero": "65
@njoyard
njoyard / deputes.md
Last active Jan 15, 2016
Permanences des députés depuis nosdeputes.fr
View deputes.md

Pour regénérer:

	var deputes = JSON.parse(document.body.firstChild.innerHTML).deputes;
	document.body.innerHTML = '<pre>'
	+ deputes.sort(function(a, b) {
		return a.depute.nom_de_famille.localeCompare(b.depute.nom_de_famille);
	}).map(function(dep) {
@njoyard
njoyard / gist:11304191
Created Apr 25, 2014
fluent-ffmpeg size/padding attempt 1
View gist:11304191
function getScalePadFilters(width, height, aspect, color) {
/*
let a be the input aspect ratio, A be the requested aspect ratio
if a > A, padding is done on top and bottom
if a < A, padding is done on left and right
*/
return [
/*
You can’t perform that action at this time.