Skip to content

Instantly share code, notes, and snippets.

View narutosanjiv's full-sized avatar

Sanjiv narutosanjiv

View GitHub Profile
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script>
$( document ).ready(function() {
$("#providersFormElementsTable").html("<tr><td>Nickname</td><td><input type='text' id='nickname' name='nickname'></td></tr><tr><td>CA Number</td><td><input type='text' id='account' name='account'></td></tr>");
function _renderTableHeader(){
let input = [
{"text": 'Name'},
@narutosanjiv
narutosanjiv / merge-sort.js
Created February 21, 2019 21:47
Merge Sort in Javascript(ES6)
class MergeSort{
constructor(array){
this.list = array
this.len = this.list.length
}
// get len(){
// return this.len
// }
@narutosanjiv
narutosanjiv / merge_sort.rs
Created December 7, 2015 17:31
Merge sort implementation in Rust lang.
use std::io::prelude::*;
use std::io::BufReader;
use std::fs::File;
fn main() {
let f = File::open("DuplicateIntegerArray.txt").unwrap();
let reader = BufReader::new(f);
let mut v: Vec<u32> = Vec::new();
for line in reader.lines() {
let line = line.unwrap();
@narutosanjiv
narutosanjiv / Dlang loop
Created January 13, 2015 09:11
For loop in dlang
import std.stdio;
void main(){
ulong i = 0;
while(i < 100000000){
i = i + 1;
}
}
[sanjiv@localhost ~]$ rvm install ruby
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/4
86
64/x86_64/ruby-2.1.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Installing requirements for redhat.
Updating system.