Skip to content

Instantly share code, notes, and snippets.

View foureyedraven's full-sized avatar
🌙

Theresa foureyedraven

🌙
View GitHub Profile
@foureyedraven
foureyedraven / gitwit
Last active February 24, 2020 02:12
Git macro bash script
#!/bin/bash
### DOCS
if [[ -z $1 ]]
then
echo "Using git w/ it:
Logging in:
gitwit login [[git username]] [[git email]]
@foureyedraven
foureyedraven / JSONtoSQL.js
Last active February 21, 2019 21:41
Use nodeJS to insert values into existing PostgreSQL table from JSON file
const { Client } = require('pg')
const fs = require('fs')
const local_file = require('./your_json_data.json')
class Postgres {
constructor() {
this.client = new Client({
user: 'postgres',
host: 'xx.xxx.xxx.xx',
@foureyedraven
foureyedraven / column-row.html
Last active January 13, 2019 22:39
Responsive Do: columns in rows in columns in rows
<!doctype html>
<html lang="en">
# Tell the browser to use width of the device:
<meta name="viewport" content="width=device-width, initial-scale=1">
# One container to rule them all (i.e. you can't put containers in containers, and you need 1 to wrap all html):
<div class="container">
# A row must be just outside of your 12 columns: