Skip to content

Instantly share code, notes, and snippets.

Sahil Mangotra Sahil624

Block or report user

Report or block Sahil624

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 coder-server.js
const child_process = require('child_process');
const fs = require('fs');
console.log('here')
if (fs.existsSync('code-server-1.31.1-100-linux-x64')) {
console.log('Binary exists');
} else {
console.log('Downloading');
child_process.execSync('wget https://github.com/codercom/code-server/releases/download/' +
'1.31.1-100/code-server-1.31.1-100-linux-x64.tar.gz')
View slideHorizontal
animations: [
trigger('slideInOut', [
transition(':enter', [
style({ transform: 'translateX(-100%)' }),
animate('220ms ease-in', style({ transform: 'translateX(0%)' }))
]),
transition(':leave', [
animate('220ms ease-in', style({ transform: 'translateX(-100%)' }))
])
View vimrc
"link for script http://lab.maateen.me/vim-for-python/"
"----------Plugins----------"
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'rakr/vim-one'
Plug 'airblade/vim-gitgutter'
View mdb
:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgr
View products_data.json
[{"id":1,"product_name":"Ecolab - Medallion","product_price":"$2.86","size":1.07,"description":"1"},
{"id":2,"product_name":"Cheese - Cheddar, Medium","product_price":"$2.10","size":0.04,"description":"🐵 🙈 🙉 🙊"},
{"id":3,"product_name":"Cheese - Gorgonzola","product_price":"$5.26","size":1.66,"description":"<>?:\"{}|_+"},
{"id":4,"product_name":"Salmon - Smoked, Sliced","product_price":"$6.86","size":-1.94,"description":"パーティーへ行かないか"},
{"id":5,"product_name":"Edible Flower - Mixed","product_price":"$5.94","size":0.08,"description":"() { 0; }; touch /tmp/blns.shellshock1.fail;"},
{"id":6,"product_name":"Wine - Alsace Riesling Reserve","product_price":"$5.71","size":0.88,"description":"Œ„´‰ˇÁ¨ˆØ∏”’"},
{"id":7,"product_name":"Yogurt - French Vanilla","product_price":"$1.36","size":0.76,"description":"1;DROP TABLE users"},
{"id":8,"product_name":"Beer - True North Lager","product_price":"$9.71","size":-0.43,"description":"사회과학원 어학연구소"},
{"id":9,"product_name":"Quiche Assorted","product_price":"$8.74","size":0.59,
View graph1_sol.java
#include<stdio.h>
int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}};
void dfs(int **arr,int i,int j,int rows,int cols,int **m,int *count)
{
int x,y;
arr[i][j]=1;
if(m[i][j]==0)
You can’t perform that action at this time.