Skip to content

Instantly share code, notes, and snippets.

View AdrienLemaire's full-sized avatar

Adrien Lemaire AdrienLemaire

View GitHub Profile
@AdrienLemaire
AdrienLemaire / home_screen.dart
Created April 30, 2023 10:28
Andrea Flutter Firebase course - 24. Pagination and the FirestoreQueryBuilder widget
import 'package:faker/faker.dart' hide Job;
import 'package:faker_app_flutter_firebase/src/data/firestore_repository.dart';
import 'package:faker_app_flutter_firebase/src/data/job.dart';
import 'package:faker_app_flutter_firebase/src/routing/app_router.dart';
import 'package:firebase_ui_firestore/firebase_ui_firestore.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
class HomeScreen extends ConsumerWidget {
@AdrienLemaire
AdrienLemaire / RotatingBunny.tsx
Created November 12, 2020 09:52
CodePen Home React PIXI - Sprite - Rotating Bunny - hooks style
// https://codepen.io/inlet/pen/aYLvrZ rewritten with hooks
import React, { useState } from "react";
import { Container, Sprite, Stage, useTick } from "@inlet/react-pixi";
const img = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/693612/IaUrttj.png";
const RotatingBunny: React.FC = () => {
const [rotation, setRotation] = useState(0);
useTick((delta) => delta && setRotation(rotation + 0.1 * delta));
@AdrienLemaire
AdrienLemaire / fabric.plugin.zsh
Created December 27, 2011 05:50
zsh-completion for Fabric in Oh-my-zsh
#compdef fab
_targets() {
_describe -t commands "fabric targets" target_list
}
output_levels=(
'status: Status messages, i.e. noting when Fabric is done running, if the user used a keyboard interrupt, or when servers are disconnected from. These messages are almost always relevant and rarely verbose.'
'aborts: Abort messages. Like status messages, these should really only be turned off when using Fabric as a library, and possibly not even then. Note that even if this output group is turned off, aborts will still occur – there just won’t be any output about why Fabric aborted!'
'warnings: Warning messages. These are often turned off when one expects a given operation to fail, such as when using grep to test existence of text in a file. If paired with setting env.warn_only to True, this can result in fully silent warnings when remote programs fail. As with aborts, this setting does not control actual warning behavior, only whether warning messages are printed or hidden.'
@AdrienLemaire
AdrienLemaire / keybase.md
Created October 11, 2019 12:41
keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
# features/authentication.feature
@fixture.browser.chrome
Feature: Authentication
A user can create an account and login with his credentials
Scenario: Registration
Given a visitor goes to "/"
And he clicks on "アカウント作成" # Create account
And he clicks on "emailで登録" # via email/password
When he fills the form
# 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 |
before_deploy:
- |
cd $HOME/build/miraidenshi/gounite/
cp -R Backend/screenshots artifacts/ # Behave
cp -R Frontend/backstop_data artifacts/ # Backstop
deploy:
provider: gcs
access_key_id: GAORFALERRDDAL3T
secret_access_key:
@AdrienLemaire
AdrienLemaire / css-exec.sh
Last active February 4, 2019 09:12
backstopjs docker
#!/bin/sh
command=$1
shift
yarn css:config
cd ../GOunite/infrastructure/
docker-compose run --no-deps backstop $command --config=backstop.json $@
cd -
# Frontend/scripts/ci.sh
#!/bin/bash
yarn ci:fast
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
USER=miraidenshi
REPO=GOunite
CHECK_TITLE="Slow Tests"