Skip to content

Instantly share code, notes, and snippets.

View gaurangrshah's full-sized avatar
💭
🚀

gshah2020 gaurangrshah

💭
🚀
View GitHub Profile
@gaurangrshah
gaurangrshah / animatedScrollTo.js
Created July 14, 2018 23:39 — forked from joshbeckman/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
document.getElementsByTagName('button')[0].onclick = function () {
scrollTo(document.body, 0, 1250);
}
function scrollTo(element, to, duration) {
var start = element.scrollTop,
change = to - start,
currentTime = 0,
increment = 20;
@gaurangrshah
gaurangrshah / webdev_online_resources.md
Created July 17, 2018 02:13 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@gaurangrshah
gaurangrshah / final-style.css
Last active September 12, 2018 23:25
Freecode Camp Clifton Flexbox Starter
body {
box-sizing: border-box;
padding: 10px;
}
.col-1 {
width: 20vw;
}
.col-2 {
@gaurangrshah
gaurangrshah / wpmin .gitignore
Last active October 10, 2020 06:09 — forked from esamattis/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
const express = require('express');
// run: npm install express
const app = express();
// adding handling for browser's get request:
app.get('/', function(req, res) {
res.send('<h1>Hello, world</h1>');
// handling get request and responding with "hello"
});
@gaurangrshah
gaurangrshah / wordpress.gitignore
Last active January 18, 2019 05:54
wordpress .gitignore
# ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# ignore all files starting with .
.*
# track this file .gitignore (i.e. do NOT ignore it)
!.gitignore
@gaurangrshah
gaurangrshah / Actionscript.gitignore
Created January 16, 2019 16:54
Actionscript .gitignore
# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/
# Other files and folders
.settings/
# Executables
@gaurangrshah
gaurangrshah / node.gitignore
Last active November 25, 2020 16:57
Node .gitignore
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
@gaurangrshah
gaurangrshah / scss.gitignore
Created January 16, 2019 16:55
scss .gitignore
.sass-cache/
*.css.map
*.sass.map
*.scss.map
@gaurangrshah
gaurangrshah / docker-wordpress.sh
Created February 5, 2019 20:28 — forked from tatemz/docker-wordpress.sh
A quick way to get a WordPress installation up and running with Docker
#!/bin/bash
mkdir wordpress-site && cd wordpress-site
touch docker-compose.yml
cat > docker-compose.yml <<EOL
version: "2"
services:
my-wpdb: