Skip to content

Instantly share code, notes, and snippets.

View with-shrey's full-sized avatar
🎯
Focusing

Shrey Gupta with-shrey

🎯
Focusing
View GitHub Profile
@with-shrey
with-shrey / docker-compose.yml
Last active November 4, 2023 11:26
Docker configuration to run latest PostgreSQL instance quickly
version: '3'
services:
postgres:
image: postgres:latest
container_name: my-postgres-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres

togglershrey

Keybase proof

I hereby claim:

  • I am with-shrey on github.
  • I am togglershrey (https://keybase.io/togglershrey) on keybase.
  • I have a public key ASD137aZwhrmVXd5e0XRKtQNX52wZv26NWVXXFT7r7s4HAo

To claim this, I am signing this object:

var contactForm = $(".contact-form");
if(contactForm.length){
var contactResault = $("body").append("<span class='form-resault'></span>").find(".form-resault");
contactForm.each(function(){
var this_form = $(this);
var contactFormInput = this_form.find(".form-control");
this_form.on("submit", function() {
$("#cnt-btn").removeClass("fa-paper-plane").addClass("fa-spinner fa-spin");
var form_data1 = $(this).serialize();
if(!contactFormInput.parent().hasClass("input-error") && contactFormInput.val()){
var contactForm = $(".subscription-form");
if(contactForm.length){
var contactResault = $("body").append("<span class='form-resault'></span>").find(".form-resault");
contactForm.each(function(){
var this_form = $(this);
var contactFormInput = this_form.find(".form-control");
this_form.on("submit", function() {
$("#sub-btn").removeClass("fa-paper-plane").addClass("fa-spinner fa-spin");
var form_data1 = $(this).serialize();
if(!contactFormInput.parent().hasClass("input-error") && contactFormInput.val()){
@with-shrey
with-shrey / Day3.txt
Last active October 31, 2017 16:58 — forked from anonymous/Day3.txt
Mozilla Python Networking App Session day 3
Google search term pet api
API Key : ad4e5f02703f7faf7945ab02d55fa136
Api Search Engines:
www.programmableweb.com
apis.io etc..
Api used
http://api.petfinder.com
http://www.petfinder.com/developers/api-docs
@with-shrey
with-shrey / activity_main.xml
Created February 7, 2017 19:23 — forked from anonymous/activity_main.xml
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"