Skip to content

Instantly share code, notes, and snippets.

@sroy8091
sroy8091 / gozerwm.markdown
Created September 30, 2022 03:25
gOzerWM
:root {
--colors-pink: #ff62dc;
--colors-orange: #ff5b00;
--colors-yellow: #f7ff00;
--colors-green: #28ff00;
--colors-cyan: #00ffff;
--colors-blue: #00a4ff;
--colors-purple: #c210ff;
--colors-darker: #151613;
@sroy8091
sroy8091 / regexCheatsheet.js
Created January 15, 2019 06:20 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@sroy8091
sroy8091 / GitHub-Forking.md
Created April 14, 2018 06:22 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@sroy8091
sroy8091 / index.html
Created November 29, 2017 01:31
Template with responsive footer
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<html class="gr__app_snipcode_hasura_me fa-events-icons-ready"><head>
<meta charset="UTF-8">
<title>SnipCode- New Snip</title>
<link rel="stylesheet prefetch" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet prefetch" href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css">
<link rel="stylesheet" href="/css/snip.css">
<link rel="stylesheet" href="/lib/codemirror.css">
@sroy8091
sroy8091 / error.html
Created September 16, 2016 16:41
Error Page for webpage
<!DOCTYPE html>
<head>
<link href="https://code.jquery.com/jquery-2.2.4.min.js"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"/>
</head>
<style>
@keyframes noise{
0%{background-position:1000px;}
}
@sroy8091
sroy8091 / booking.py
Created July 7, 2016 10:28
Script to fetch Hotel names, price and ratings to be inserted into a MySQL table
##Importing Required Libraries
from bs4 import BeautifulSoup
import requests
from __future__ import print_function
from sqlalchemy import *
import MySQLdb as my
import urllib2
##URl of Booking.Com to be fetched
###Imported Required Libraries
import requests, bs4
import webbrowser
import sqlalchemy
import unicodedata
from sqlalchemy import create_engine
from sqlalchemy import MetaData, Column, Table, ForeignKey
from sqlalchemy import Integer, String
import mysql.connector
@sroy8091
sroy8091 / adMNWz.markdown
Last active August 17, 2017 11:17
Portfolio