Skip to content

Instantly share code, notes, and snippets.

View preemption-taint.yaml
key: pp-preemptible
value: "true"
effect: NoSchedule
View mailScript.py
import smtplib, getpass
import email, sys, datetime
import email.mime.application
import os
pb = 'Placement Brochure.pdf'
jnf = 'Job Notification Form - NIT Hamirpur.doc'
inv_letter = 'Invitation Letter.doc'
log_file = open('emails.log', 'a')
@rohanjaswal2507
rohanjaswal2507 / ClustalWidget2.ipynb
Created May 17, 2016
Simple jupyter widget to parse urls using clustal
View ClustalWidget2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rohanjaswal2507
rohanjaswal2507 / ClustalWidget.ipynb
Created May 15, 2016
Simple jupyter widget to parse urls with clustal
View ClustalWidget.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rohanjaswal2507
rohanjaswal2507 / Prime_gen.c
Created Jun 14, 2015
C Program to generate all the prime numbers between two given numbers m and n
View Prime_gen.c
#include <stdio.h>
#include <math.h>
// Prime Number upto sqrt(31623)
int a[39] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,137,139,149,151,157,163,167,173};
int b[31623] = {0};
int prime_count = 0;
int prime[31622];
View gist:9e6ffab4e7f2d404e545
var square;
square = function ( x ) {
return x * x;
}
View Compare with CoffeeScript
var name;
name = "Rohan";
if (name === "Rohan") {
alert("A good guy!");
}
View simple coffeescript example
name = "Rohan"
if name is “Rohan” then alert “A good guy!”
View wget download
wget http://csec.nith.ac.in/img/team/rohan.jpg