Skip to content

Instantly share code, notes, and snippets.

View Rajan-sust's full-sized avatar
🎯
Focusing

Rajan Saha Raju Rajan-sust

🎯
Focusing
View GitHub Profile
@Rajan-sust
Rajan-sust / dataframe2tsv.py
Created October 22, 2019 17:14
Saving dataframe as a tsv file format
# Import pandas library
import pandas as pd
# initialize list of lists
data = [['tom', 10], ['nick', 15], ['juli', 14]]
# Create the pandas DataFrame
df = pd.DataFrame(data, columns = ['Name', 'Age'])
df.to_csv('filename.tsv', sep = '\t', encoding='utf-8', index=False)
@Rajan-sust
Rajan-sust / Dijkstra.cpp
Last active June 28, 2019 10:03
C++ Implementation of Dijkstra Algorithm
#include <bits/stdc++.h>
using namespace std;
#define debug(x) cout<<#x<<" is "<<endl
using ll = long long;
#define x first
#define y second
@Rajan-sust
Rajan-sust / understanding-word-vectors.ipynb
Last active June 3, 2019 05:36 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /bin/bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@Rajan-sust
Rajan-sust / .bashrc
Created March 29, 2019 03:40
Ubuntu 18.04.2 LTS .bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@smebberson
smebberson / .gitignore
Created January 9, 2012 06:46
Express simple authentication example
node_modules
*.swp