Skip to content

Instantly share code, notes, and snippets.

View manoj-singh-developer's full-sized avatar
🎯
Focusing

Manoj Singh manoj-singh-developer

🎯
Focusing
View GitHub Profile
<script type="text/javascript" src="<?php echo base_url(); ?>assets/front/js/jquery-1.11.3.js"></script>
<style type="text/css">
img.login-social-icons {
width: 80px;
}
.registration{
margin-top: 65px;
<!DOCTYPE html>
<!--
**********************************************************************************************************
Copyright (c) 2016 Kamleshyadav.
********************************************************************************************************** -->
<!--
Template Name: Fixit - Multipurpose Construction & Building HTML
Version: 1.0.1
Author: Kamleshyadav
<script>
$('.store').on('click', function () { // something with the class store clicked
var storeStorageKey = [];
$('input[name="pro"]:checked').each(function(i){
storeStorageKey[i] = $(this).val();
});
// store id of the item
@manoj-singh-developer
manoj-singh-developer / instafeed_tags.py
Created November 22, 2017 15:34 — forked from yomguy/instafeed_tags.py
Instafeed like django tag displaying an instagram gallery by hashtag (as a workaround since official API change in june 2016)
from django import template
import requests, json
register = template.Library()
@register.simple_tag
def instafeed(hashtag, count):
"""Simply use with autoescapeoff, for example: {% autoescape off %}{% instafeed 'manifeste16' 8 %}{% endautoescape %}"""
html = ''
<-- html script -->
<input id="browse" type="file" multiple>
<div id="preview"></div>
<---end html --->
<-- start script --->
<script>
you can use mongodump & mongorestore
1-> back up a single database
mongodump -h localhost -d database_name -o C:\DestinationFolder (backup to a DestinationFolder )
2-> Restore the Database
mongorestore -h localhost C:\DestinationFolder (Restor from the DestinationFolder )
or
@manoj-singh-developer
manoj-singh-developer / javascript.pdf
Created October 25, 2018 16:08
javascript tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function ipLookUp () {
$.ajax('http://ip-api.com/json')
.then(
function success(response) {
console.log('User\'s Location Data is ', response);
console.log('User\'s Country', response.country);
getAdress(response.lat, response.lon)
},
function fail(data, status) {
<!DOCTYPE html>
<html>
<head>
<title>Gmail API Quickstart</title>
<meta charset="utf-8" />
</head>
<body>
<p>Gmail API Quickstart</p>
<!--Add buttons to initiate auth sequence and sign out-->
pip3 install PyMySQL
or
pip install pymysql
after then