Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Joseph Kariuki jkariukidev

🏠
Working from home
View GitHub Profile
@jkariukidev
jkariukidev / ApiClient.java
Created Mar 27, 2019 — forked from haerulmuttaqin/ApiClient.java
Android CRUD Tutorial | • RETROFIT • PHP • MYSQL (https://youtu.be/Vh92eSAEu5c)
View ApiClient.java
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class ApiClient {
private static final String BASE_URL = "http://your-domain-name.000webhostapp.com/";
private static Retrofit retrofit;
public static Retrofit getApiClient() {
@jkariukidev
jkariukidev / redirect_jsp.jsp
Created Jan 3, 2019
geoserver_nginx_tomcat
View redirect_jsp.jsp
<%
String redirectURL = "/geoserver";
response.sendRedirect(redirectURL);
%>
@jkariukidev
jkariukidev / README-Template.md
Created Nov 7, 2017 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View landsat_unsupervised_classification
/usr/bin/python2.7 /home/hempire/PycharmProjects/GRASSproject/landsatProcessing.py
L7_Kenya
Ungzip Landsat files in /home/hempire/grassdata/L7Dir/landsat
Import in GRASS GIS
> LE07_L1TP_166060_20030303_20170126_01_T1_B2
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B2>...
> LE07_L1TP_166060_20161016_20161111_01_T1_B2
Region for the current mapset updated
@jkariukidev
jkariukidev / grass_unsupervised
Last active May 16, 2017
Unsupervised classification in PyGRASS
View grass_unsupervised
/usr/bin/python2.7 landsatProcessing.py
L7_Kenya
Ungzip Landsat files in /home/hempire/rawData/L7Dir/LE07_
Import in GRASS GIS
> LE07_L1TP_166061_20170221_20170319_01_T1_B2
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166061_20170221_20170319_01_T1_B2>...
Region for the current mapset updated
> LE07_L1TP_166061_20170221_20170319_01_T1_B5
@jkariukidev
jkariukidev / geonode2.4.x - Install in development mode
Created Dec 29, 2016 — forked from jodom/geonode2.4.x - Install in development mode
this bug when installing geonode 2.4.x, both in dev mode and in admin/deploy mode
View geonode2.4.x - Install in development mode
(geonode) jdev@linux /home/geonode/dev/geonode $ python manage.py migrate
Not enabling BingMaps base layer as a BING_API_KEY is not defined in local_settings.py file.
Traceback (most recent call last):
File "manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/geonode/dev/.venvs/geonode/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv