Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshu-semwal committed Sep 28, 2023
0 parents commit 89c950c
Show file tree
Hide file tree
Showing 309 changed files with 33,243 additions and 0 deletions.
Binary file added .audacity-data/Theme/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/Blue/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/Cyan/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/Example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/Green/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/Purple/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions .audacity-data/Theme/dark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Audacity Themes

## Install Instructions

1. Choose the colour you want.
2. Copy the `ImageCache.png` file to `.audacity-data/Theme`
3. Open Audacity > `Edit` > `Preferences` > `Interface` and set the theme to `Custom`.

Binary file added .audacity-data/Theme/dark/Red/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .audacity-data/Theme/dark/White/ImageCache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 157 additions & 0 deletions .config/Code/User/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
// SETTINGS REALTED TO VSCODE
//editor config
"editor.mouseWheelZoom": true,
"editor.fontFamily": "'IosevkaTerm Nerd Font', monospace",
"editor.renderWhitespace": "boundary",
"editor.semanticHighlighting.enabled": true,
"editor.cursorBlinking": "phase",
"editor.cursorSmoothCaretAnimation": "on",
"editor.suggestSelection": "first",
"editor.unicodeHighlight.nonBasicASCII": false,
"editor.guides.bracketPairs": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#de6a73",
"fontStyle": "bold"
}
},
{
"scope": "heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#c678dd",
"fontStyle": "bold"
}
},
{
"scope": "heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#98c379",
"fontStyle": "bold"
}
},
{
"scope": "heading.4.markdown entity.name.section.markdown, heading.4.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#e5c07a",
"fontStyle": "bold"
}
}
]
},
// workbench
"workbench.startupEditor": "none",
"workbench.editor.languageDetection": false,
"workbench.statusBar.visible": true,
"workbench.colorTheme": "Gruvbox Dark Hard",
// windows config
"window.menuBarVisibility": "toggle",
"window.restoreWindows": "none",
// keyboard
"keyboard.dispatch": "keyCode",
// zenmode
"zenMode.fullScreen": false,
"zenMode.centerLayout": true,
"zenMode.hideLineNumbers": false,
// terminal
"terminal.integrated.enableMultiLinePasteWarning": false,
"terminal.explorerKind": "external",
"terminal.external.linuxExec": "alacritty",
"terminal.integrated.fontSize": 16,
// update
"update.mode": "manual",
// files
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.watcherExclude": {
"**/.bloop": true,
"**/.metals": true,
"**/.ammonite": true
},
// telemetry
"telemetry.telemetryLevel": "off",
// extensions
"extensions.ignoreRecommendations": true,
// SETTINGS RELATED TO EXTENSIONS
// latex extension
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.external.viewer.command": "zathura",
"latex-workshop.latex.autoBuild.run": "never",
// indent rainbow
"indentRainbow.errorColor": "rgba(141,143,148,0.0)",
// c-cpp extension microsoft
"C_Cpp.intelliSenseCacheSize": 1024,
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Attach, AllowShortIfStatementsOnASingleLine: true, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, AllowShortLoopsOnASingleLine: true }",
// intellicode
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
// markdown and its extension
"markdown.extension.tableFormatter.normalizeIndentation": true,
"markdown.extension.math.enabled": false,
"markdown.preview.fontFamily": "'Ubuntu', sans-serif",
"markdown.preview.fontSize": 16,
"markdownlint.config": {
"MD007": {
"indent": 4
},
"MD024": false,
"MD040": false,
},
// python and extension
"python.defaultInterpreterPath": "/bin/python3",
"python.formatting.autopep8Args": [
"--ignore",
"E402"
],
// python notebook
"notebook.lineNumbers": "on",
// git
"git.autoRepositoryDetection": "subFolders",
// web development
"html.format.wrapLineLength": 100,
// clangd extension
// "clangd.arguments": [
// "--enable-config"
// ]
"clangd.path": "/home/totoro/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/bin/clangd",
// prettier
"prettier.printWidth": 100,
"rewrap.wrappingColumn": 100,
// vim extension
"vim.useSystemClipboard": true,
// SETTINGS RELATED TO PARTICULAR FILES
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[django-html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
}
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
},
"git.openRepositoryInParentFolders": "never",
"window.zoomLevel": 1,
}
14 changes: 14 additions & 0 deletions .config/Code/User/snippets/basic.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Print Basic Header": {
"scope": "shellscript",
"prefix": "head",
"body": [
"# Use: $1",
"# Dependencies: $2",
"# Description: $3",
"# Working: $4",
"# Author: $5"
],
"description": "Basic template for shell scripts"
}
}
170 changes: 170 additions & 0 deletions .config/Code/User/snippets/cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
// https://code.visualstudio.com/docs/editor/userdefinedsnippets
// prefix - what you have to serach snipped by
// $1, $2 tab stops
// $0 final cursor postion
// ${1:label} default values
"header": {
"prefix": "header",
"body": [
"#include <bits/stdc++.h>",
"using namespace std;",
""
],
"description": "cp template"
},
"competitive programming basic": {
"prefix": "cp",
"body": [
"#include <bits/stdc++.h>",
"using namespace std;",
"",
"int main(){",
"\t$1",
"\treturn 0;",
"}"
],
"description": "cp template"
},
"leetcode competitive programming": {
"prefix": "leetcode",
"body": [
"int main(){",
"\tSolution s;",
"\ts$1",
"\treturn 0;",
"}"
],
"description": "cp template"
},
"cp tree": {
"prefix": "cptree",
"body": [
"struct node {",
"\tint val;",
"\tnode *right;",
"\tnode *left;",
"\tnode(): val(0), left(nullptr), right(nullptr) {};",
"\tnode(int x): val(x), left(nullptr), right(nullptr) {};",
"\tnode(int x, node* xx): val(x), left(xx), right(xx) {};",
"\tnode(int x, node *l, node *r): val(x), left(l), right(r) {};",
"};"
],
"description": "cp template"
},
"for": {
"prefix": "for",
"body": [
"for (${1:size_t} ${2:i} = 0; $2 < ${3:count}; $2++) {",
"\t${4:/* code */}",
"}",
],
"description": "Main function"
},
"main": {
"prefix": "main",
"body": [
"int main() {",
"\t$1",
"\treturn 0;",
"}"
]
},
"headers": {
"prefix": "headers",
"body": [
"#include <iostream>",
"#include <algorithm>",
"#include <vector>",
"",
"using namespace std;\n"
]
},
"upper case": {
"prefix": "upper_case",
"body": [
"transform($1.begin(), $1.end(), $1.begin(), ::toupper)"
],
"description": "Convert string to uppercase."
},
"lower case": {
"prefix": "lower_case",
"body": [
"transform($1.begin(), $1.end(), $1.begin(), ::tolower)"
],
"description": "Convert string to lowercase."
},
"debug-print": {
"prefix": "debug",
"body": [
"void print(const int& x) { cout << x; }",
"void print(const long& x) { cout << x; }",
"void print(const bool& x) { cout << (x ? \"true\" : \"false\"); }",
"void print(const long long& x) { cout << x; }",
"void print(const unsigned& x) { cout << x; }",
"void print(const unsigned long& x) { cout << x; }",
"void print(const unsigned long long& x) { cout << x; }",
"void print(const float& x) { cout << x; }",
"void print(const double& x) { cout << x; }",
"void print(const long double& x) { cout << x; }",
"void print(const char& x) { cout << (char)44 << x << (char)44; }",
"void print(const char* x) { cout << (char)34 << x << (char)34; }",
"void print(const string& x) { cout << (char)34 << x << (char)34; }",
"template <typename T, typename V>",
"void print(const pair<T, V>& x);",
"template <typename T>",
"void print(const vector<T>& x);",
"template <typename T>",
"void print(const T& x);",
"template <typename T, typename V>",
"void print(const pair<T, V>& x) {",
"\tcout << '{';",
"\tprint(x.first);",
"\tcout << ',';",
"\tprint(x.second);",
"\tcout << \"}\";",
"}",
"template <typename T, typename V, typename U>",
"void print(const tuple<T, V, U>& x) {",
"\tcout << '{';",
"\tprint(get<0>(x));",
"\tcout << ',';",
"\tprint(get<1>(x));",
"\tcout << ',';",
"\tprint(get<2>(x));",
"\tcout << \"}\";",
"}",
"template <typename T>",
"void print(const vector<T>& x) {",
"\tcout << \"{\";",
"\tfor (int i = 0; i < x.size(); i++) {",
"\t print(x[i]);",
"\t cout << (x.size() - i - 1 ? \",\" : \"\");",
"\t};",
"\tcout << \"}\";",
"}",
"template <typename T>",
"void print(const T& x) {",
"\tint f = 0;",
"\tcout << '{';",
"\tfor (auto& i : x) cout << (f++ ? \",\" : \"\"), print(i);",
"\tcout << \"}\";",
"}",
"void dprint() { cout << \"]\\n\"; }",
"template <typename T, typename... V>",
"void dprint(T t, V... v) {",
"\tprint(t);",
"\tif (sizeof...(v)) cout << \", \";",
"\tdprint(v...);",
"}",
"#ifndef ONLINE_JUDGE",
"#define debug(x...) \\",
"\tcout << \"[\" << #x << \"] = [\"; \\",
"\tdprint(x)",
"#else",
"#define debug(x...)",
"#endif",
],
"description": "for printing values"
}
}
28 changes: 28 additions & 0 deletions .config/Code/User/snippets/lex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
// Place your snippets for lex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"basic program": {
"prefix": "basic",
"body": [
"%{",
"\t// c code",
"\t#include <stdio.h>",
"\t#include <stdlib.h>",
"%}",
"",
"%%",
"",
"%%",
"",
"int main(){",
"\tyylex();",
"\treturn 0;",
"}",
],
"description": "basic lex code"
}

}
Loading

0 comments on commit 89c950c

Please sign in to comment.