Skip to content

Instantly share code, notes, and snippets.

View arya-oss's full-sized avatar
💭
I may be slow to respond.

Rajmani Arya arya-oss

💭
I may be slow to respond.
View GitHub Profile
@arya-oss
arya-oss / redirect.c
Created January 16, 2016 09:39
input and output redirection in unix system in c language. very helpful in Networks Programming
/**
* Author: Rajmani Arya
* Originally By: http://stackoverflow.com/users/121747/jack
*/
static int fd_in, fd_out;
static fpos_t pos_in, pos_out;
void switchStdin(const char *newStream)
{
fflush(stdin);
@arya-oss
arya-oss / login-signup-tabpane-popup.php
Created January 15, 2016 15:14
Login and Sign Up tabs
<!DOCTYPE html>
<html>
<head>
<title>Modal Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>

for python interactive shell on windows in Git 2.3 onwards

python

instead write

winpty python

for simple http server