Skip to content

Instantly share code, notes, and snippets.


Chaitanya Gupta iCHAIT

View GitHub Profile
Created May 23, 2019 06:49 — forked from subfuzion/
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file. Create a file called .gitignore in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.


git config --global core.excludesfile ~/.gitignore


git config --global core.excludesfile %USERPROFILE%\.gitignore
Created January 21, 2018 11:21
Codes for information visualization using python lab report 2
import plotly.plotly as py
import pandas as pd
df = pd.read_csv('2014_world_gdp_with_codes.csv')
data = [ dict(
type = 'choropleth',
locations = df['CODE'],
z = df['GDP (BILLIONS)'],
text = df['COUNTRY'],
View flights.csv
time AirPassengers
1 1949 112
2 1949.08333333333 118
3 1949.16666666667 132
4 1949.25 129
5 1949.33333333333 121
6 1949.41666666667 135
7 1949.5 148
8 1949.58333333333 148
9 1949.66666666667 136
View 2014_world_gdp_with_codes.csv
Afghanistan 21.71 AFG
Albania 13.40 ALB
Algeria 227.80 DZA
American Samoa 0.75 ASM
Andorra 4.80 AND
Angola 131.40 AGO
Anguilla 0.18 AIA
Antigua and Barbuda 1.24 ATG
Argentina 536.20 ARG
Last active January 21, 2018 09:13
Codes for Information Visualisation using python.
import plotly.plotly as py
import plotly.graph_objs as go
import pandas as pd
iris = pd.read_csv("iris.csv")
data = [go.Histogram(x=iris['sepal_length'].tolist())]
layout = go.Layout(title='Iris Dataset - Sepal.Length',
Last active December 5, 2022 12:05
package net.floodlightcontroller.natcs5229;
import net.floodlightcontroller.core.FloodlightContext;
import net.floodlightcontroller.core.IListener;
import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.debugcounter.IDebugCounter;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.module.FloodlightModuleException;
import net.floodlightcontroller.core.module.IFloodlightModule;
View error_2.txt
Last login: Tue Sep 5 13:28:31 on ttys000
~/.config/fish/functions/ (line 1):
404: Not Found
from sourcing file ~/.config/fish/functions/
called on line 1 of file ~/.config/fish/
in command substitution
called on line -1 of file ~/.config/fish/
View error.txt
➜ Build-in-Progress-Web git:(master) gem pristine executable-hooks --version 1.3.2
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Error loading RubyGems plugin "/Users/chaitanyagupta/.rvm/gems/ruby-2.1.7@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": cannot load such file -- executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin "/Users/chaitanyagupta/.rvm/gems/ruby-2.1.7@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb": cannot load such file -- gem-wrappers (LoadError)
Restoring gems to pristine condition...
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.