Skip to content

Instantly share code, notes, and snippets.

View hi-manshu's full-sized avatar

Himanshu Singh hi-manshu

View GitHub Profile
@15Dkatz
15Dkatz / installing_postgresql.md
Last active December 25, 2023 06:29
PostgreSQL installation tutorial

Let's install PostgreSQL onto your operating system.

As an open source object-relational database management system, PostgreSQL available for MacOS, Linux, and Windows.

Goal for each Operating System

The goal will be to run the following command successfully from the command line (regardless of the OS):

psql -U postgres

This should open the psql interactive shell and print a prompt that looks like:

@xaedes
xaedes / circle-circle-intersection-points-python.py
Created March 6, 2016 15:15
circle-circle-intersection-points-python
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from math import cos, sin, pi, sqrt, atan2
d2r = pi/180
class Geometry(object):
def circle_intersection(self, circle1, circle2):
@curioustechizen
curioustechizen / UseApiKey.java
Created April 6, 2015 07:37
Android: Loading API Keys and other secrets from properties file using gradle
String apiKey = BuildConfig.API_KEY