Skip to content

Instantly share code, notes, and snippets.

@xmanemran
xmanemran / System Design.md
Created September 30, 2019 05:52 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@xmanemran
xmanemran / git_alias.sh
Created March 30, 2019 18:00
Helpful terminal alias for git. Forgot about the source :/
g=git
ga='git add'
gaa='git add --all'
gap='git apply'
gapa='git add --patch'
gau='git add --update'
gb='git branch'
gba='git branch -a'
gbd='git branch -d'
gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
import { DataPointModel } from '../../models/data-point.model';
import { IExerciseListItem } from '../../interface/IExerciseListItem';
import { IFVPData } from '../../interface/IFVPData';
import { ILegendButton } from 'src/app/interface/ILegendButton';
import { getTimeVelForcePowerDist } from '../../exercises/standing-sprint/standing-sprint.kpis';
const LARGE_VALUE: number = 1e16;
export type AxisTypes =
| 'FVPTime'
import * as React from 'react';
import {
StyleSheet,
TextInput,
View,
TouchableOpacity,
Keyboard,
Animated
} from 'react-native';
import * as PropTypes from 'prop-types';
<template>
<div class="detail-section">
<h1 class="detail-title">{{ detail.title }}</h1>
<div class="detail-content">
<wmui-preview :content="detail.content" />
</div>
<p class="detail-tags">
<nuxt-link v-for="(tag, index) in detail.tags" :key="index" :to="'/tags/' + tag.id"># {{ tag.name }}</nuxt-link>
</p>
<div class="detail-admin-section">
subprojects {
ext {
compileSdk = 28
buildTools = "28.0.0"
minSdk = 16
targetSdk = 26
}
afterEvaluate { project ->
if (!project.name.equalsIgnoreCase("app")
@xmanemran
xmanemran / .block
Created September 7, 2018 12:31
append, update, exit
license: mit
@xmanemran
xmanemran / .block
Created September 5, 2018 12:50
Spider excer
license: mit
@xmanemran
xmanemran / .block
Last active September 6, 2018 06:51
Radar Chart Redesign v2
height: 600
license: mit
@xmanemran
xmanemran / .block
Created August 31, 2018 19:58
Line and area
license: mit