Skip to content

Instantly share code, notes, and snippets.

View plant99's full-sized avatar
🦆
everything is absurd, but plants

Shivashis Padhi plant99

🦆
everything is absurd, but plants
View GitHub Profile
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
var mongoose = require("mongoose")
dbInit = ()=>{
mongoose.connect('mongodb://localhost/dataviz');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {
// we're connected!
console.log("We are connected!");
// var mongoose = require('mongoose');
x = """
python -m pytest
if [ $? -eq 0 ]; then
# tests passed, proceed to prepare commit message
exit 0
else
# some tests failed, prevent from committing broken code on master
echo "Some tests failed. You are not allowed to commit broken code on master! Aborting the commit."
echo "Note: you can still commit broken code on feature branches"
exit 1
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
INSERT INTO `permissions` (`id`, `u_id`, `p_id`, `access_level`) VALUES (1, 8, 1, 'admin'),(2, 9, 1, 'collaborator'),(3, 9, 2, 'admin'),(4, 10, 2, 'collaborator'),(5, 10, 3, 'admin'),(6, 8, 3, 'collaborator'),(7, 10, 1, 'viewer');
1 git clone https://bitbucket.org/plant99/mss
2 git pull --rebase origin GSOC19-plant99
3 cd mss
4 cd ..
5 ls
6 mkdir dev
7 mv mss dev/
8 exit
9 conda activate mssdev
10 python mslib/mscolab/server.py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from netCDF4 import Dataset
data = Dataset('20121017_12_ecmwf_forecast.ALTITUDE_LEVELS.EUR_LL015.036.al.nc', mode='r')
lons = data.variables['lon'][:]
lats = data.variables['lat'][:]
a_p = data.variables['air_pressure'][0, :]
from netCDF4 import Dataset
data = Dataset('MERRA2_300.tavgM_2d_slv_Nx.201001.nc4', mode='r')
lons = data.variables['lon'][:]
lats = data.variables['lat'][:]
T2M = data.variables['T2M'][:,:,:]
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from mpl_toolkits.basemap import Basemap
map = Basemap(resolution='l', projection='eck4', lat_0=0, lon_0=0)