Skip to content

Instantly share code, notes, and snippets.

View ShivamS136's full-sized avatar
💻
Currently learning React, React-native

Shivam Sharma ShivamS136

💻
Currently learning React, React-native
View GitHub Profile
@ShivamS136
ShivamS136 / competitive_programming.code-snippets
Last active July 25, 2024 08:00
C++ Competitive Programming Setup
{
"C++ Competitive Programming Snippet": {
"prefix": "cpp-compro",
"body": [
"#pragma GCC optimize(\"Ofast\")",
"#pragma GCC target(\"sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma\")",
"#pragma GCC optimize(\"unroll-loops\")",
"#include <bits/stdc++.h> ",
"#include <complex>",
"#include <queue>",
@ShivamS136
ShivamS136 / index.html
Last active March 19, 2021 07:15
Tiny Pure Javascript based Markdown tag insertion which is highly featured and customizable
<!doctype html>
<html>
<head>
<title>Markdown Tag Insertion</title>
<script language="javascript" type="text/javascript" src="script.js"></script>
</head>
<body>
</br>
<input type="text" id="title" style="width:250px;height:35px;">
</br>
@ShivamS136
ShivamS136 / csv_to_array.php
Last active September 13, 2019 06:32 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file or csv string into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $src Path to the CSV file or Raw text string in case of $is_file = false
* @param boolean $is_file true if $src is Filepath, false if $src is raw string
* @param string $delimiter The separator used in the file or Raw string