Skip to content

Instantly share code, notes, and snippets.

View sritasngh's full-sized avatar
😎

Sarita Singh sritasngh

😎
View GitHub Profile
%------------------------------------------------------------
% Resume in Latex
%-----------------------------------------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}

Following steps to install xeus-asm on your system.

@sritasngh
sritasngh / .bashrc
Last active September 17, 2021 19:53
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
---
BasedOnStyle: Microsoft
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: 'true'
AlignEscapedNewlines: DontAlign
AlignTrailingComments: 'true'
AllowAllConstructorInitializersOnNextLine: 'true'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakBeforeMultilineStrings: 'true'
<?php
/***********************************************************
* Copyright (C) 2014-2017 Siemens AG
* Author: J.Najjar
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@sritasngh
sritasngh / xbasic
Last active October 31, 2021 09:11
## steps
- download miniconda https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh
- https://conda.io/projects/conda/en/latest/user-guide/install/linux.html#installing-on-linux
- create a virual env `conda create -n vbasic`
- `conda activate vbasic`
- `conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq`
- `mkdir build && cd build`
- `cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX`
- `make`
1. create a new branch
2.a. if files are modified+new files:
need two commits scancode+copyright - soft reset
stash your changes - copyright is in stash + modified
2.b. Only new files are there: drop testing commits + sqash all other
3. rebase with upstream/master
apply stash
solve conflicts
unstage changes
4. add new commits
TOP = ../..
VARS = $(TOP)/Makefile.conf
include $(VARS)
MOD_NAME = scancode
DIRS = ui agent
TESTDIR =
DIR_LOOP = @set -e; for dir in $(DIRS); do $(MAKE) -s -C $$dir $(1); done
#!/usr/bin/env bash
##############################################################################
# SPDX-License-Identifier: GPL-2.0
# SPDX-FileCopyrightText: 2021 Sarita Singh <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
#include
int funn(int n, vector<int> arr)
{
// 1 1 2 4
int op=0;
int sum=0;
bool flag=false;