Skip to content

Instantly share code, notes, and snippets.

import urllib
f = urllib.urlopen('http://goo.gl/xnxu')
print f.geturl()
import urllib
print f.geturl()
set invpaste
set cindent
syntax on
highlight LineNr term=bold cterm=NONE ctermfg=Red ctermbg=NONE gui=NONE guifg=SteelBlue guibg=NONE
set nosm
set noshowmatch
hi MatchParen ctermfg=Blue ctermbg=black guifg=blue guibg=black
set noai
set wrap
set ts=2
@vinod85
vinod85 / list_reverse.c
Last active August 6, 2018 09:49
Reverse a linked list
/* Iterative C program to reverse
* a linked list */
#include<stdio.h>
#include<stdlib.h>
/* Link list node */
struct Node
{
int data;
struct Node* next;
@vinod85
vinod85 / list_print_middle.c
Created August 6, 2018 12:14
Print the middle node of a linked list
#include<stdio.h>
#include<stdlib.h>
/* Link list node */
struct Node
{
int data;
struct Node* next;
};