Skip to content

Instantly share code, notes, and snippets.

@rohanjaswal2507
rohanjaswal2507 / preemption-taint.yaml
Created June 6, 2020 17:53
preemption node taint
key: pp-preemptible
value: "true"
effect: NoSchedule
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 15:12
Simple jupyter widget to parse urls using clustal
Loading
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 18:11
Simple jupyter widget to parse urls with clustal
Loading
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 June 14, 2015 07:27
C Program to generate all the prime numbers between two given numbers m and n
#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];
var square;
square = function ( x ) {
return x * x;
}
var name;
name = "Rohan";
if (name === "Rohan") {
alert("A good guy!");
}
name = "Rohan"
if name is “Rohan” then alert “A good guy!”
wget http://csec.nith.ac.in/img/team/rohan.jpg