Skip to content

Instantly share code, notes, and snippets.

View machour's full-sized avatar

Mehdi Achour machour

View GitHub Profile
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
@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==
if ($query) {
$values = array_filter($values, function($var) use($query) {
return stripos($var, $query) !== false;
});
}
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",
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/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>')

1.4.1 (2017-12-15)

Bug Fixes

  • Fix application version number (dd56652)

1.4.0 (2017-12-12)

<VirtualHost *:80>
    Define SITE_BASE ${SERVER_BASE}/customer/example.com
    ServerName  example.com

    ProxyRequests Off
    ProxyPass / http://example.com/
    ProxyPassReverse / http://example.com/

 LogLevel warn
@machour
machour / yii3.md
Last active April 5, 2019 03:20
This is a draft of my draft at https://www.yiiframework.com/wiki/2547/draft-understanding-yii-3. Stay drafty!

Understanding Yii 3

Introduction

This document is intended for an audience already familiar with Yii2

Yii 3 is the second major rewrite of the Yii framework.

Originally started in the 2.1 branch, it was later decided to switch to the 3.X series because of all the backward compatibility breakage. Starting with 3.0, Yii will follow the Sementic Versionning.