Skip to content

Instantly share code, notes, and snippets.

View Marvin9's full-sized avatar
⚙️
Focusing

Mayursinh Sarvaiya Marvin9

⚙️
Focusing
View GitHub Profile
@Marvin9
Marvin9 / foo
Created September 10, 2020 05:00
foo
Copyright {{year}} {{owner}}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
language: go
go:
- 1.14.4
services:
- postgresql
before_script:
- go mod download
package database_test
import (
"go-mock-postgre/database"
"go-mock-postgre/database/mock"
"testing"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
package mock
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
package database
import (
"github.com/jinzhu/gorm"
)
// Users -
type Users struct {
gorm.Model
Username string
package database
import (
"fmt"
"log"
"os"
"github.com/jinzhu/gorm"
)
Respected Sir/Madam,
It is known that due to corona outbreak, whole India is closed till 14th April (Counting 21 days). However observing graph given in https://www.covid19india.org/ , Lockdown is more likely to be extended.
There are no official dates for End semester exams given by GTU. Still some GTU affiliated colleges are panicked regarding vivas, Question banks, Projects, Group projects, Design Engineering Sheets. Few decided final submissions and that too during lockdown. Currently, Every student is not at fair level. Not everyone have enough resources, materials and access to stationaries to complete submission successfully.
On behalf of all GTU Students, My humble request is to official announcement to not to put extra pressure related to submissions on students during lockdown.
Thank you for listening and please take this into consideration.
const ts = require('typescript');
const fs = require('fs');
const path = require('path');
const FILENAME_PROVIDED_BY_DOCER = 'foo.tsx';
const FILEPATH_PROVIDED_BY_DOCER = '/path/to/foo.tsx';
// UTILS
// object has key?
const has = (object, key) => Object.prototype.hasOwnProperty.call(object, key);
@Marvin9
Marvin9 / ast-traverse.js
Last active February 5, 2020 09:56
Traversion of AST (acorn parser) in Nodejs
async function iterator(node) {
if (node) {
switch (node.type) {
case "AssignmentExpression":
iterator(node.right)
break;
case "ArrayExpression":
for (var i = 0, i_bound = node.elements.length; i < i_bound; i++) iterator(node.elements[i])
break;