- Save puma.rb file locally (eg. to ~/bin/puma.rb)
- Create alias
alias p='~/bin/puma.rb
in bash.rc
Start server
# Extend the official Matomo Docker image | |
FROM matomo:3.13.0 | |
# Install unzip | |
RUN apt update && apt install -y unzip | |
# Download, unzip and install the EnvironmentVariables plugin | |
RUN curl -o EnvironmentVariables.zip \ | |
https://plugins.matomo.org/api/2.0/plugins/EnvironmentVariables/download/latest \ | |
&& unzip EnvironmentVariables.zip \ |
document.querySelector('.piano-paywall').remove(); | |
[].forEach.call(document.querySelectorAll('.content'), div => div.style.filter = 'none'); |
(function() { | |
const getLastName = guest => { | |
const title = guest.querySelector('.title-nom-prenom'); | |
const names = title.textContent.split(' '); | |
return names[names.length - 1]; | |
} | |
const isotope = document.querySelector('#isotope-list-invites'); | |
const guests = Array.prototype.slice.call(isotope.querySelectorAll('a')); | |
guests.sort((a, b) => { | |
const aLastName = getLastName(a); |
[ | |
{ | |
"key": "cmd+0", | |
"command": "workbench.action.openLastEditorInGroup" | |
}, | |
{ | |
"key": "cmd+1", | |
"command": "workbench.action.openEditorAtIndex1" | |
}, | |
{ |
const redux = require('redux'); | |
const createStore = redux.createStore; | |
const initialState = { | |
counter: 0, | |
}; | |
// Reducer |
# Remove single quote and space in file names | |
for f in *\'*; do mv "$f" "${f//\'/_}"; done | |
for f in *\ *; do mv "$f" "${f//\ /_}"; done | |
# Convert to PDF | |
echo *.eps | xargs -n1 pstopdf | |
# Move files to pdf folder | |
cd ../pdf/ | |
mv $(echo ../eps/*.pdf) . |
#!/bin/bash | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
if [ "$STAGED_FILES" = "" ]; then | |
exit 0 | |
fi | |
PASS=true |
/** | |
* Smooth scroll animation | |
* @param {int} endX: destination x coordinate | |
* @param {int) endY: destination y coordinate | |
* @param {int} duration: animation duration in ms | |
*/ | |
window.smoothScrollTo = function(endX, endY, duration) { | |
var startX = window.scrollX || window.pageXOffset, | |
startY = window.scrollY || window.pageYOffset, | |
distanceX = endX - startX, |