Skip to content

Instantly share code, notes, and snippets.

import * as React from 'react';
import {
StyleSheet,
TextInput,
View,
TouchableOpacity,
Keyboard,
Animated
} from 'react-native';
import * as PropTypes from 'prop-types';
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'
@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'
@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?
console.clear();
const arr = [2, 1, 5, 2, 3, 2];
const s = 8;
let found = false;
for(let i = 1; i <= arr.length; i++){
let sum = 0;
let number = 0;
for(let j = 0; j < arr.length; j++){
console.clear();
const arr = [2, 1, 5, 2, 3, 2];
const s = 8;
let found = false;
for(let i = 1; i <= arr.length; i++){
let sum = 0;
let number = 0;
for(let j = 0; j < arr.length; j++){
console.clear();
const arr = [2, 1, 5, 2, 3, 2];
const s = 8;
let found = false;
for(let i = 1; i <= arr.length; i++){
let sum = 0;
let number = 0;
for(let j = 0; j < arr.length; j++){
//===[]===[]====[]=====[]=====[]=====[]=====[]======\\
|| p || q || ¬p || p∧q || p∨q || p⊕q || p→q || p↔︎q ||
|]===[]===[]====[]=====[]=====[]=====[]=====[]======[|
|| T || T || F || T || T || F || T || T ||
|| T || F || F || F || T || T || F || F ||
|| F || T || T || F || T || T || T || F ||
|| F || F || T || F || F || F || T || T ||
\\===[]===[]====[]=====[]=====[]=====[]=====[]======//
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/usr/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
{"lastUpload":"2020-12-14T09:34:29.715Z","extensionVersion":"v3.4.3"}