Skip to content

Instantly share code, notes, and snippets.

View gkueny's full-sized avatar
😎
cool

Gaëtan Kueny gkueny

😎
cool
View GitHub Profile
@gkueny
gkueny / generateLaunchScreen.sh
Created November 22, 2021 09:55 — forked from roblabs/generateLaunchScreen.sh
Generate iOS Launch or splash screen from a single image
#!/bin/bash -e
# --------------------------------------------------------
# Generate iOS Launch items from a single image
# (c) 2017 ePi Rational, Inc.
#
# Modified from original script which generated app icons for iOS,
# originally written by
# Ben Clayton, Calvium Ltd.
# https://gist.github.com/benvium/2be6d673aa9ac284bb8a
//...
import Logout from './logout';
//...
class App extends Component {
constructor() {
super();
this.state = {
token: null
};
}
<Router>
<AppComponent>
<Route exact path="/" component={HomeComponent} />
<Route path="/login" component={LoginComponent} />
<ProtectedRoute path="/admin" component={AdminComponent} />
</AppComponent>
</Router>
import React, {Component} from 'react';
import * as firebase from 'firebase';
class HaveToLogginComponent extends Component {
constructor() {
super();
this.state = {
authenticate : false
}
@gkueny
gkueny / chat.actions.js
Last active January 6, 2017 22:52
react-with-firebase code from http://gkueny.fr/react-tchat
// File : src/actions/chat.actions.js
import {UPDATEMESSAGES} from './actions.type';
export function updateMessage(messages) {
return {
type: UPDATEMESSAGES,
data: {
messages
// initialisation du state
this.state = {
myText : "", // notre texte
foo : 1 // un nombre quelconque
}