Skip to content

Instantly share code, notes, and snippets.

View machour's full-sized avatar

Mehdi Achour machour

View GitHub Profile

1.4.1 (2017-12-15)

Bug Fixes

  • Fix application version number (dd56652)

1.4.0 (2017-12-12)

diff --git a/src/components/github-htmlview.component.js b/src/components/github-htmlview.component.js
index 7d68ffb..2dc3eee 100644
--- a/src/components/github-htmlview.component.js
+++ b/src/components/github-htmlview.component.js
@@ -197,6 +197,8 @@ export class GithubHtmlView extends Component {
/<span class="email-hidden-toggle"><a href="#">…<\/a><\/span>/g,
''
)
+ .replace(/<\/summary>/g, '</summary><hidden>')
+ .replace(/<\/details>/g, '</hidden></details>')
const fs = require('fs');
const fetch = require('node-fetch');
fetch('https://api.github.com/repos/gitpoint/git-point/contributors?per_page=100').then(response => {
response.json().then(json => {
const realContributors = json.map(el => el.login);
const knownContributors = JSON.parse(fs.readFileSync('.all-contributorsrc')).contributors.map(el => el.login);
const diff = realContributors.filter(el => knownContributors.indexOf(el) === -1);
process.stdout.write(`Contributors length from GH: ${realContributors.length}\n`);
diff --git a/package.json b/package.json
index 658cc8c..cb6aed8 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,9 @@
},
"dependencies": {
"fuzzy-search": "^1.4.0",
+ "lingui-cli": "^1.3.2",
+ "lingui-i18n": "^1.3.0",
if ($query) {
$values = array_filter($values, function($var) use($query) {
return stripos($var, $query) !== false;
});
}
@machour
machour / gist:7fcadc888b47be06353337634be6dcd3
Created August 7, 2017 13:30
my TamperMonkey for twitter
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/
// @grant none
// ==/UserScript==
Version anglaise :
- Section 3.4: il y a "voilá" au lieu de "voilà".
Version française :
- J'ai changé "spec" assez souvent en "spécification"
- Section 3.4: il y a beaucoup d'utilisation du mot "host", nottament dans "nom de host".
je pense qu'il faudrait changer pour adopter le mot hôte partout dans cette
section, mot qu'on retrouve plus tard dans le document
- Section 3.4: pas compris la parenthèse (cf ante)
- Section 6.5: le mot "exploitation" est une mauvaise traduction de "exploit" (= hack) en anglais