Skip to content

Instantly share code, notes, and snippets.

Planning to come up with a plan to plan all other plans

Roshan Gautam roshangautam

Planning to come up with a plan to plan all other plans
View GitHub Profile
roshangautam / uikit3.blade.php
Created Aug 21, 2017
Laravel 5 Pagination - UIKit 3
View uikit3.blade.php
@if ($paginator->hasPages())
<ul class="uk-pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="uk-disabled"><span>&laquo;</span></li>
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">&laquo;</a></li>
{{-- Pagination Elements --}}
View add-ssh-key
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add ~/.ssh/{yourusername}
roshangautam /
Created Mar 10, 2018 — forked from iiska/
Simple XML Schema validator in Python using lxml library
#! /usr/bin/python
# -*- coding: utf-8 -*-
# Simple XML validator done while learning the use of lxml library.
# -- Juhamatti Niemelä <iiska AT iki DOT fi>
import lxml
from lxml import etree
if __name__ == "__main__":

Free disk space when /boot is full (Ubuntu)


dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
roshangautam / textfield.js
Last active Feb 22, 2018
Override Default textfield.js to remove is-invalid by default for required textfields.
View textfield.js
(function() {
'use strict';
MaterialTextfield = window['MaterialTextfield'];
* Handle lost focus.
* @private

Keybase proof

I hereby claim:

  • I am roshangautam on github.
  • I am roshangautam ( on keybase.
  • I have a public key ASDRkwf0V5Dhi2JocA2JeC7QH3JZKBgx6LWJHBdQznYIiQo

To claim this, I am signing this object:

roshangautam /
Last active Sep 25, 2017
Quick Sort - Python
def quicksort(array, first, last):
if first < last :
pivot = array[first]
left = first + 1
right = last
while 1 :
while left <= right and array[left] <= pivot :
left += 1
while right >= left and array[right] >= pivot :
right -= 1
View topn.cpp
#include <iostream>
#include <fstream>
#include <queue>
#include <string>
using namespace std;
void topn(string file_name, int n) {
  ifstream infile(file_name); // open a pointer to the huge file
  int a;
View Git Log Alias
alias gll="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
You can’t perform that action at this time.