Skip to content

Instantly share code, notes, and snippets.

@varyonic
varyonic / Dockerfile
Created June 10, 2016 14:14
Dockerfile with chromedriver
# See https://codeship.com/documentation/docker/browser-testing/
FROM myapp:base
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
RUN apt-get install -y wget xvfb unzip
# Set up the Chrome PPA
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
@zeburek
zeburek / api.md
Last active April 19, 2024 09:42
Чек-лист проверок API

Чек-лист API тестов

  • Корректность структуры данных
  • POST запросы
    • Заполнены все поля валидными данными
    • Заполнены только обязательные поля
    • Заполнены не все обязательные поля
    • Не заполнено ни одно поле
    • Валидация данных в полях (корректные и некорректные данные)
    • Пустой JSON
  • Дата создания объекта
@ScientificStephen
ScientificStephen / index.html
Created April 19, 2024 09:41
Javascript Calculator 1
<div class="container">
<div class="calculator">
<div id="display" class="readout" ></div>
<div class="keypad">
<div class="clears">
<button id="clear">C</button>
<button id="all-clear">AC</button>
<button id="back">&#8592;</button>
</div>
<div class="functions">
@mbostock
mbostock / .block
Last active April 19, 2024 09:41 — forked from mbostock/.block
Radial Cluster Dendrogram
license: gpl-3.0
height: 950
border: no
@ScientificStephen
ScientificStephen / index.html
Created April 19, 2024 09:41
Markdown Previewer
<div id="wrapper">
<div id="leftPanel">
<div class="panelTitle">Input</div>
<textarea id="editor"># H1 Heading
## H2 Sub-heading
[Link to Google](https://google.com)
Here is some `inline code`.
@mrmartineau
mrmartineau / stimulus.md
Last active April 19, 2024 09:41
Stimulus cheatsheet
@stancl
stancl / deploy.sh
Last active April 19, 2024 09:39
Deploy using GitHub actions and SSH to a VPS
#!/bin/sh
set -e
vendor/bin/phpunit
npm run prod
git add .
(git commit -m "Build frontend assets for deployment to production") || true
(git push) || true
@brianclements
brianclements / Commit Formatting.md
Last active April 19, 2024 09:38
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@igorjs
igorjs / rest-api-response-format.md
Last active April 19, 2024 09:38
REST API response format based on some of the best practices