Student: Shivashis Padhi
Organization: Mission Support System(under The Python Software Foundation)
Mentors: Reimar Bauer, Jens-Uwe Grooß
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Add GeoJSON layer | CARTO</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta charset="UTF-8"> | |
<meta name="robots" content="noindex"> | |
<script src="https://libs.cartocdn.com/carto-vl/v1.4.4/carto-vl.min.js"></script> | |
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js"></script> |
from functools import cmp_to_key | |
def sort_cmp(elem1, elem2): | |
if len(elem1) > len(elem2): | |
return -1 | |
elif len(elem1) < len(elem2): | |
return 1 | |
else: | |
if elem1 > elem2: | |
return -1 | |
else: |
#include <bits/stdc++.h> | |
using namespace std; | |
void multiplyMatrix(int F[2][2], int M[2][2]); | |
void powerMatrix(int F[2][2], int n); | |
int fibonacci(int n) | |
{ | |
int F[2][2] = {{1,1},{1,0}}; | |
if (n == 0) | |
return 0; | |
powerMatrix(F, n-1); |
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) |
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, :] |
Student: Shivashis Padhi
Organization: Mission Support System(under The Python Software Foundation)
Mentors: Reimar Bauer, Jens-Uwe Grooß
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 |
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'); |
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 |