Nothing Special   »   [go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

View thoretton-edwin's full-sized avatar

Edwin Thoretton thoretton-edwin

  • Slate Digital France
  • Grenoble
View GitHub Profile
@thoretton-edwin
thoretton-edwin / pr_etiquette.md
Created August 14, 2020 07:29 — forked from mikepea/pr_etiquette.md
Pull Request Etiquette

Pull Request Etiquette

Why do we use a Pull Request workflow?

PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.

Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories

Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.

@thoretton-edwin
thoretton-edwin / main.dart
Created September 9, 2017 14:47 — forked from mikemimik/main.dart
Flutter: Custom theme data
import 'package:flutter/material.dart';
import 'theme.dart' as Theme;
void main() {
runApp(
new MaterialApp(
title: 'CompanyApp',
color: Theme.CompanyColors.blue[500],
theme: Theme.CompanyThemeData,
home: new Scaffold(
@thoretton-edwin
thoretton-edwin / Gitattributes for Xcode projects
Created May 19, 2017 12:33 — forked from kiero/Gitattributes for Xcode projects
.gitignore & .gitattributes for Xcode projects
# excludes this file from merges
# treats it like binary file
*.pbxproj -crlf -diff -merge
@thoretton-edwin
thoretton-edwin / fragment.java
Last active August 29, 2015 13:59 — forked from mpaloulack/gist:10472674
Android remplacer un fragment
Fragment frag;
//ajout d'un fragment
TonFragment newFragment = new TonFragment();
android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.add(R.id.fragment_container, newFragment).addToBackStack("A_B_TAG");
transaction.commit();
//remplacement d'un fragment