Skip to content

Instantly share code, notes, and snippets.

View flexbox's full-sized avatar

David Leuliette flexbox

View GitHub Profile
@flexbox
flexbox / cloudSettings
Last active September 10, 2019 15:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-10T15:40:17.871Z","extensionVersion":"v3.4.2"}
@flexbox
flexbox / ios.sh
Last active October 20, 2018 12:21
React Native with expo SDK release script for iOS
#!/bin/sh
read -p "=> Starting the standalone build for iOS: when ready, press [ENTER]"
echo ''
echo '===================='
echo 'Install dependencies'
echo '===================='
echo ''
yarn
@flexbox
flexbox / android.sh
Created July 2, 2018 13:54
React Native with expo SDK release script for android
#!/bin/sh
echo ''
echo '================'
echo 'Dependency check '
echo '================'
echo ''
yarn
echo ''
#!/bin/sh
buildnumber=$(jq '.expo.ios.buildNumber' app.json)
echo ''
echo 'Build number: ' $buildnumber
echo ''
read -p "Continue the build? " -n 1 -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
.card {
width: 300px;
height: 225px;
position: relative;
overflow: hidden;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
display: grid;
grid-template-rows: 1fr 1fr;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@flexbox
flexbox / test.md
Last active October 25, 2020 13:39

🤸‍♀️ Exercise 1

  • Create a Stack Navigator in src/exercice/02/PublicNavigator.tsx that shows the LoginScreen and the TermsScreen. You can read the official documentation https://reactnavigation.org/docs/stack-navigator/

  • Use LOGIN_SCREEN and TOC_SCREEN as route names to maintain consistency when navigating

  • Update the entry point of your application. Wrap your PublicStack with NavigationContainer using the Stack Navigator from src/final/02/PublicNavigator.tsx.

Hint: If you are lost you can debug the changes on the NavigationContainer with onStateChange={state => console.log('New state is', state)}

<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: https://kitt.lewagon.com/db/825 -->
<sql>
<datatypes db="postgresql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
<type label="Small Integer" length="0" sql="SMALLINT" quote=""/>
<type label="Big Integer" length="0" sql="BIGINT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="numeric" quote=""/>
{
id: 1,
type: 'locked',
title: 'Inspired',
description_locked: '',
description_achieved: '',
congratulation: '',
illustration: 'inspired'
},
{
@flexbox
flexbox / 1-api.js
Last active January 30, 2020 15:57
Async / await cheatsheet
async customerUpdate(fields) {
try {
const { status, data } = await this.$axios…
return { status, data }
} catch (e) {
throw new Error(e)
}
}