Skip to content

Instantly share code, notes, and snippets.

View LordZamy's full-sized avatar

Samarth Wahal LordZamy

  • Nashville, Tennessee
View GitHub Profile
@LordZamy
LordZamy / mergesort.go
Created October 14, 2014 02:48
Merge sort in Golang
package main
import (
"fmt"
)
func main() {
A := []int{3, 5, 1, 6, 1, 7, 2, 4, 5}
fmt.Println(sort(A))
}
@LordZamy
LordZamy / queens.cpp
Created December 7, 2014 00:38
N-Queens in C++ using depth first search
#include<iostream>
using namespace std;
int N = 8;
int board[8][8];
int numQueens = 0;
int sols = 0;
void searchCol(int col) {
@LordZamy
LordZamy / keybase.md
Created March 17, 2015 21:19
keybase prove github

Keybase proof

I hereby claim:

  • I am lordzamy on github.
  • I am lordzamy (https://keybase.io/lordzamy) on keybase.
  • I have a public key whose fingerprint is 7C20 EE47 2BB5 3801 46E8 3DA8 25B0 B35D 42F7 3F0C

To claim this, I am signing this object:

@LordZamy
LordZamy / gulpfile.js
Created May 18, 2015 19:13
restart:go being annoying af
var gulp = require('gulp'),
jade = require('gulp-jade'),
runSequence = require('run-sequence'),
del = require('del'),
shell = require('gulp-shell');
gulp.task('clean', del.bind(null, ['.tmp', 'dist/*', '!dist/.git'], {dot: true}));
// doesn't compile extended templates
gulp.task('compile:jade', function() {