Skip to content

Instantly share code, notes, and snippets.

Emran xmanemran

Block or report user

Report or block xmanemran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Truth table
//===[]===[]====[]=====[]=====[]=====[]=====[]======\\
|| 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 ||
\\===[]===[]====[]=====[]=====[]=====[]=====[]======//
View sum
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++){
View sum
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++){
View sum
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++){
@xmanemran
xmanemran / System Design.md
Created Sep 30, 2019 — forked from vasanthk/System Design.md
System Design Cheatsheet
View System Design.md

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 Mar 30, 2019
Helpful terminal alias for git. Forgot about the source :/
View git_alias.sh
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'
View AxisComponent.ts
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'
View SearchBar.js
import * as React from 'react';
import {
StyleSheet,
TextInput,
View,
TouchableOpacity,
Keyboard,
Animated
} from 'react-native';
import * as PropTypes from 'prop-types';
View Detail.vue
<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">
View RN OLD SUPPORT
subprojects {
ext {
compileSdk = 28
buildTools = "28.0.0"
minSdk = 16
targetSdk = 26
}
afterEvaluate { project ->
if (!project.name.equalsIgnoreCase("app")
You can’t perform that action at this time.