Skip to content

Instantly share code, notes, and snippets.

View jugaldb's full-sized avatar
🙋‍♂️

Jugal D. Bhatt jugaldb

🙋‍♂️
View GitHub Profile
@jugaldb
jugaldb / app.js
Created October 14, 2020 05:44
app.js for Medium
var express = require('express');
var logger = require('morgan');
const mongoose = require('mongoose');
const bodyParser = require('body-parser')
var usersRouter = require('./routes/users.routes');
var adminRouter = require('./routes/admin.routes');
var app = express();
@jugaldb
jugaldb / create-table.sql
Created August 24, 2022 10:00
Create table script for Fampay task
CREATE TABLE IF NOT EXISTS "videos" ("video_id" VARCHAR(255) , "name" VARCHAR(255), "published_at" VARCHAR(255), "thumbnail_url" VARCHAR(255), "channel_id" VARCHAR(255), "description" VARCHAR(255), "channel_name" VARCHAR(255), "created_date" TIMESTAMP WITH TIME ZONE, "search_doc_weights" tsvector, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("video_id"));
#!/bin/bash
# URL of the JSON data
JSON_URL="https://storage.googleapis.com/panels-api/data/20240916/media-1a-i$
# Function to download a file
download_file() {
local url="$1"
local filename="$2"
curl -s -o "$filename" "$url"

If you are downloading ARX on your Apple machine, it might throw the following error on startup for the first time:

Error image

You should follow the following steps to get ARX working: 1. Open system settings 2. Navigate to "Privacy and Security" 3. Find this setting Image 4. Select "Open Anyway"

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.