Это временный гист. Я его грохну по окончании операции. Сможешь форкнуть себе на память.
Если какая-то из команд ниже выдаёт ошибку - напиши в комменте - какая и что говорит.
Идём в папку локальной копии форка.
- Синхронизируемся с апстримом
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ | |
$ git add . | |
$ git status // to see what changes are going to be commited | |
$ git commit -m 'Some descriptive commit message' | |
$ git push origin master | |
$ git checkout gh-pages // go to the gh-pages branch | |
$ git rebase master // bring gh-pages up to date with master | |
$ git push origin gh-pages // commit the changes |
Arr.sort((a, b)=> { | |
a = new Date(a.sent).getTime(); | |
b = new Date(b.sent).getTime(); | |
return a > b ? 1 : a < b ? -1 : 0; | |
}) | |
.reverse(); | |
var data = []; | |
var oldestMessageId = null; | |
function fetchAllMessages(oldestMessageId) { | |
fetch(getAllMessages(100, oldestMessageId)) | |
.then(function(response) { | |
return response.json(); | |
}) | |
.then( function(response) { | |
Array.prototype.push.apply(data, response); | |
var oldestMessageId = response[0].id; |
.child { | |
position: absolute; | |
top: 50%; /* position the top edge of the element at the middle of the parent */ | |
left: 50%; /* position the left edge of the element at the middle of the parent */ | |
transform: translate(-50%, -50%); /* This is a shorthand of | |
translateX(-50%) and translateY(-50%) */ | |
} |
WeasyPrint converts HTML including images to PDF, it's cross platform but Windows requires a decent amount of massaging to persuade it to work.
To install Pango and Cairo download the [all in one bundle][GTK] of the GTK+ stack and extract the archive to C:\GTK.
You'll need to add the GTK bin folder to your system path so the various
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |