Skip to content

Instantly share code, notes, and snippets.

@1natsu172
1natsu172 / .eslintrc
Last active July 5, 2023 10:23
My airbnb based ESLint config for "typescript-eslint" with React & prettier
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"browser": true,
"jest/globals": true
},
@fabriciovergara
fabriciovergara / Index.js
Created March 5, 2017 10:48
React-Navigation AuthFlow with Saga
import React from 'react'
import { connect } from 'react-redux'
import { redirect as redirectAction } from 'src/redux/auth/action';
class Index extends React.Component {
static propTypes = {
redirect: React.PropTypes.func.isRequired,
};
@seveves
seveves / index.spec.ts
Created January 13, 2017 11:43
Angular2 + Karma (very simple setup)
import 'core-js/es6';
import 'core-js/es7/reflect';
import 'reflect-metadata';
import 'zone.js/dist/zone';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
@SerkanSipahi
SerkanSipahi / .eslintrc.js
Created December 26, 2015 20:21 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active September 8, 2024 00:43
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {