Skip to content

Instantly share code, notes, and snippets.

View augedoo's full-sized avatar
💭
The calm seas never made a good sailor

Augustine Amoh Nkansah augedoo

💭
The calm seas never made a good sailor
View GitHub Profile
@augedoo
augedoo / mongodb_driver
Created September 20, 2020 19:00
Database connnection
const mongodb = require("mongodb")
const MongoClient = mongodb.MongoClient;
let _db;
// Connect to the database
const mongoConnect = (cb) => {
MongoClient.connect(
//connection string here
{ useUnifiedTopology: true }
@augedoo
augedoo / time_table.xml
Created September 8, 2019 22:11
this layout sets constraint for the text in the time table. it aligns each column properly so that the content flow will look nice and organised
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@augedoo
augedoo / dnb_featured_links.xml
Created September 6, 2019 10:43
This featured links code will streach to fill the whole screen width and height.
@augedoo
augedoo / dnb_featured_links.xml
Created September 6, 2019 10:43
This featured links code will streach to fill the whole screen width and height.
@augedoo
augedoo / dnb_featured_links.xml
Created September 6, 2019 10:42
This featured links code will streach to fill the whole screen width and height.
@augedoo
augedoo / dnb_featured_links.xml
Created September 6, 2019 10:42
This featured links code will streach to fill the whole screen width and height.
@augedoo
augedoo / pushToSheet.html
Created August 29, 2019 22:38
am pushing from this page to the google sheet
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2 sheet 2ru forms</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<form id="form" target="_self" onsubmit="return postToGoogle();" action="" autocomplete="off">