Skip to content

Instantly share code, notes, and snippets.

View kuldipem's full-sized avatar
:shipit:
Looking for new challenges

KULDIP PIPALIYA kuldipem

:shipit:
Looking for new challenges
View GitHub Profile
@kuldipem
kuldipem / git cheat sheet.sh
Last active November 23, 2017 15:36 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@kuldipem
kuldipem / install-libsodium.sh
Created February 6, 2018 15:16 — forked from jonathanpmartins/install-libsodium.sh
Install Libsodium on Ubuntu 14.04.3 LTS Trusty
#!/bin/bash
sudo add-apt-repository ppa:chris-lea/libsodium;
sudo echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install libsodium-dev;
@kuldipem
kuldipem / git-branches-by-commit-date.sh
Created April 7, 2018 15:37 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@kuldipem
kuldipem / git_checkout_all.sh
Created April 10, 2018 17:57
git copy all remote
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
@kuldipem
kuldipem / Simple Ajax Login Form.php
Created July 27, 2018 12:26 — forked from cristianstan/Simple Ajax Login Form.php
Wordpress: Simple Ajax Login Form
<?php
//Simple Ajax Login Form
//Source: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/
//html
<form id="login" action="login" method="post">
<h1>Site Login</h1>
<p class="status"></p>
<label for="username">Username</label>
<input id="username" type="text" name="username">

Keybase proof

I hereby claim:

  • I am kuldipem on github.
  • I am kuldipem (https://keybase.io/kuldipem) on keybase.
  • I have a public key ASDb28zqmy1r9sIhCaoF--0vhQhJA8yFkIeVOn8cEbuYoAo

To claim this, I am signing this object:

{
"success": 1,
"message": "Categories Found",
"data": [
{
"id": "1",
"name": "Life Quotes",
"file": "https://gist.githubusercontent.com/kuldipem/2d372a0081c2900822e85a0e8c63822c/raw/a4a959ecbbf3ac3519a3fc5054395d87f09cad14/rahul-life-quotes.json"
},
{
Morris.Area({
element: 'smooth-area-chart',
data: [{
month: 'Jan',
completedjobs: 0,
upcomingjobs: 0,
pendingjobs:0
}, {
month: 'Feb',
completedjobs: 150,
@kuldipem
kuldipem / index.html
Created August 29, 2018 17:08
Morris.js Line Chart Example// source http://jsbin.com/yohegob
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script>
<meta charset=utf-8 />
<title>Morris.js Line Chart Example</title>
</head>
<body>
{
"data": [
"This is my first sairi",
"This is my second sairi"
]
}