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 / 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
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"
@AdrienLemaire
AdrienLemaire / docker-compose.yml
Created February 4, 2019 06:47
reverse proxy aliases
reverse-proxy:
default:
aliases:
- api.gounite.test
- xpc.gounite.test
---
version: '3.4' # docker 17.09.0+ & docker-compose 1.23.2
services:
backend: # For CMS & API
build: ../../GOunite-backend
command: python3 manage.py runserver 0.0.0.0:8000
volumes:
- ../../GOunite-backend:/code
- ../../GOunite-frontend/dist_integration:/xpc_test:ro