Skip to content

Instantly share code, notes, and snippets.

View AdrienLemaire's full-sized avatar

Adrien Lemaire AdrienLemaire

View GitHub Profile
#features/environment.py
from behave import fixture
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from splinter.browser import Browser
@fixture(name="fixture.browser.chrome")
def splinter_browser(context):
context.browser = Browser(
driver_name="remote",
# features/contact.feature
@fixture.browser.chrome
Feature: Contact form
Make sure that the contact form on XPC works as expected
Scenario: Company sending an email
Given a company member going to the contact form
When he fills the form
| name | value |
| lastName | Snow |
@AdrienLemaire
AdrienLemaire / contact.feature
Last active February 4, 2019 03:27
BDD scenario
Feature: Contact form
Make sure that the contact form on XPC works as expected
Scenario: Company sending an email
Given a company member going to the contact form
When he fills the form
| name | value |
| lastName | Snow |
| firstName | John |
| email | king@example.com |
@AdrienLemaire
AdrienLemaire / sortFeed.js
Created January 16, 2019 01:55
BackstopJS script to sort random feeds
/* backstop_data/engine_scripts/puppet/sortFeed.js */
/* eslint-disable */
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
module.exports = async (page, scenario, vp) => {
await require("./onReady")(page, scenario, vp);
@AdrienLemaire
AdrienLemaire / .textexpandrc
Created October 14, 2018 00:54
multi application text expander for linux
# ~/.textexpandrc
→よろしく← よろしくお願いします。
→お疲れ← お疲れさまでします。
→提案← 提案があります。
して下さい。
なぜならば、
→リクエスト← リクエストがあります。
して下さい。

Keybase proof

I hereby claim:

  • I am fandekasp on github.
  • I am fandekasp (https://keybase.io/fandekasp) on keybase.
  • I have a public key ASALl7djsy9mkz6kYBxIKHAqUm4Psfq_Cs6uzea_RfXk0Ao

To claim this, I am signing this object:

@AdrienLemaire
AdrienLemaire / .block
Created September 20, 2017 09:02
Zoomable Circle Packing
license: gpl-3.0
height: 960
@AdrienLemaire
AdrienLemaire / .block
Created September 20, 2017 08:12
Circle Packing
license: gpl-3.0
height: 960
border: no
@AdrienLemaire
AdrienLemaire / .block
Created September 14, 2017 06:43
Force Layout - Directed Graph with Customized Node and Link
license: mit
@AdrienLemaire
AdrienLemaire / tixit_part1.html
Last active April 12, 2017 13:08
Tixit coding primer
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>tixit</title>
<style type="text/css" media="screen">
table, input {width: 100%}
td {width: 50%}
</style>
</head>
<body>