Skip to content

Instantly share code, notes, and snippets.

View kawadhiya21's full-sized avatar
🎯
Focusing

Kshitij Awadhiya kawadhiya21

🎯
Focusing
View GitHub Profile
@kawadhiya21
kawadhiya21 / bfs.c
Created September 29, 2014 12:14
bfs
#include<iostream>
using namespace std;
struct tree{
int data;
struct tree *left;
struct tree *right;
tree(){
left = NULL;
@kawadhiya21
kawadhiya21 / isbn.rb
Created October 24, 2013 11:56
check the isbn13 code
puts "Enter the 12 digit isbn"
isbn = gets.chomp
sum = 0
check = 1;
multiplier = 1;
isbn.split("").each do |ch|
if check == 1
multiplier = 1
check = 0
elsif check == 0
var interval = setInterval(func,time);
//interval will have its id as setInterval passes one every time it gets called
clearInterval(interval); // this will stop it
<?php
echo "Hello World !";
?>
<!DOCTYPE html>
<html>