Skip to content

Instantly share code, notes, and snippets.

View nisargap's full-sized avatar
🕶️

Nisarga P nisargap

🕶️
View GitHub Profile

Day 1: Arrival and Exploring Downtown Vancouver

Time Activity
8:00 AM Arrive at Vancouver International Airport.
9:00 AM Pick up rental car or take a taxi to your accommodation.
10:00 AM Check into your accommodation.
11:00 AM Food Block for brunch.
12:30 PM Visit Stanley Park - explore the Seawall and totem poles.
3:00 PM Walk around Granville Island, visit the Public Market.
import matplotlib.pyplot as plt
predicted_y = []
actual_y = []
plt.scatter(x, predicted_y, color="green")
plt.scatter(x, actual_y, color="blue")
plt.show()
@nisargap
nisargap / shell.sh
Created April 6, 2019 02:14
Common unix commands
# sets the time up
sudo timedatectl set-ntp true

Keybase proof

I hereby claim:

  • I am nisargap on github.
  • I am nisarga (https://keybase.io/nisarga) on keybase.
  • I have a public key ASA1PFiDlGtRE45F0C_cWsGd9Ku5fyBSoRGpGTOs50QlHgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am nisargap on github.
  • I am nisarga (https://keybase.io/nisarga) on keybase.
  • I have a public key ASDGefZjCn-ZzvwC4HUjhuKpulaCk-L4-sqWBSBNB3a70Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am nisargap on github.
  • I am nisarga (https://keybase.io/nisarga) on keybase.
  • I have a public key ASBT85DDO_LgzHMY1OmROdvxq4XHrLM8OXWu93at6aBSbQo

To claim this, I am signing this object:

@nisargap
nisargap / fixingsteamubuntu16.04
Created July 27, 2017 03:03
Fixing Steam on Ubunrtu 16.04 for NVIDIA graphics processors
# Find the library that's messing things up
sudo find /usr -iname "*libGL.so*" -exec ls -l {} \;
# Remove that library
rm ...
# In my case it was the mesa libraries
# Create the symlink for the proper Nvidia Library in this case its nvidia-378 but it could be something else
sudo ln -s /usr/lib/nvidia-378/libGL.so.1 /usr/local/lib/libGL.so.1.2.0
// Nasty line to refactor:
// app.use(require('express-session')({ secret: 'keyboard cat', resave: false, saveUninitialized: false }));
// No one can read that
// expressSession library
var expressSession = require('express-session');
// sessionOptions object
var sessionOptions = {
secret: "keyboard cat",
function oneFunction() {
console.log("hello fam");
}
function twoFunction() {
console.log("hello fam again");
}
var objectToExport = {
one: oneFunction,
@nisargap
nisargap / IndexRoute.js
Created January 3, 2017 22:53
IndexRoute.js
// import in express
var express = require('express');
// get the express router
var router = express.Router();
// can also get this from another file
// var IndexRouteController = require('PATH TO INDEX ROUTE CONTROLLER"
var IndexRouteController = function(req, res) {
res.render('index', {