Skip to content

Instantly share code, notes, and snippets.

View badasscodr's full-sized avatar
🎯
Focusing

Badasscoder badasscodr

🎯
Focusing
View GitHub Profile
@crrobinson14
crrobinson14 / Gruntfile.js
Last active October 12, 2021 06:49
How to make a REST API definition in YAML, compile it into a Swagger-compatible JSON file, expose it via Swagger-UI, then write a Mocha unit test against it to verify that a sample record validates against the JSON-Schema produced by the process. This is a great mix of tools and scripts for building RESTful APIs in Node.JS. You can build backwar…
'use strict';
var request = require('request');
module.exports = function (grunt) {
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
@dexteryy
dexteryy / universal-js-monorepo.md
Last active September 29, 2022 21:26
A monorepo structure for large-scale Universal JS projects

The evolutionary path is: monolithic backend-web-framework-based repo -> multi repos with shared infra -> monorepo contains shared infra

The tool support is becoming matured (Yarn Workspace, VSCode's Multi Root Workspaces)

[monorepo]/
 ├── universal-js-app project for product A/
 │    ├── node_modules/
 │    ├── common/
@MaraAlexa
MaraAlexa / vue_table.js
Last active June 3, 2022 22:20
loop through data and display a table with vue.js
// ** This project demonstrates how to loop through a simple data set and display a table **
Commands for setup:
// initialize a simple new vue project (simple webpack + vue-loader setup for quick prototyping)
vue init webpack-simple my_table
// install dependencies & run
cd my_table && yarn install && yarn run dev
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active July 8, 2024 15:11
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@rstacruz
rstacruz / README.md
Last active January 17, 2024 22:27
Setting up Babel and TypeScript

Install Babel 7 and TypeScript

yarn add --dev \
  @babel/core \
  @babel/cli \
  @babel/preset-env \
  @babel/preset-typescript \
  typescript
@onlurking
onlurking / Ruby and Rails Study Roadmap.md
Created February 25, 2019 23:58
Ruby and Rails Study Roadmap
@kuhelbeher
kuhelbeher / readme.md
Last active December 6, 2022 16:20
Eslint airbnb config + prettier for create-react-app project

This is tutorial of onfiguring eslint, prettier for your project

Make your code great again

  1. Eslint

First of all we need to install eslint and configs as dev dependencies. You can use your own config, but I will use config from airbnb:

yarn add -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@bradtraversy
bradtraversy / flutter_setup.md
Last active June 29, 2024 07:23
Flutter dev setup & notes
@joakimriedel
joakimriedel / SvgIcon.vue
Last active June 28, 2022 20:41
Vue component for SVG icons using Vue 3, async import using Vite, and Typescript strict typings
<!-- This script for defining icon sources and type could be put in external ts file -->
<script lang="ts">
/** define all the icons that we want to make available here */
const iconSources = {
signin: () =>
import("@fortawesome/fontawesome-free/svgs/solid/sign-in-alt.svg"),
signout: () =>
import("@fortawesome/fontawesome-free/svgs/solid/sign-out-alt.svg"),
plus: () => import("@fortawesome/fontawesome-free/svgs/solid/plus.svg"),
};