Skip to content

Instantly share code, notes, and snippets.

View Gadrawingz's full-sized avatar
🎯
Arts on Coding

Gad Iradufasha Gadrawingz

🎯
Arts on Coding
View GitHub Profile
@Gadrawingz
Gadrawingz / vue-folder-structure.md
Created October 4, 2022 16:16 — forked from plinionaves/vue-folder-structure.md
Vue Project Folder Structure

Style Guide

This file describes de required Style Guide used by Basicamente to keep the Best Practices on develop new features or improve/change existents one.

Project folder structure

Always follow the folder structure below:

src/
@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active July 20, 2024 11:51
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

Check CPU has VM capabilities

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD
@plinionaves
plinionaves / vue-folder-structure.md
Last active July 23, 2024 08:30
Vue Project Folder Structure

Style Guide

This file describes de required Style Guide used by Basicamente to keep the Best Practices on develop new features or improve/change existents one.

Project folder structure

Always follow the folder structure below:

src/
@RakibSiddiquee
RakibSiddiquee / php-pagination.txt
Created February 19, 2018 14:52
Basic php PDO pagination
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fan Club List</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
@darbyluv2code
darbyluv2code / CourseCode.java
Created June 29, 2017 21:44
Spring MVC Validation - FAQ: Is it possible to integrate multiple validation string in one annotation?
package com.luv2code.springdemo.mvc.validation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
@twolfson
twolfson / README.md
Last active November 13, 2022 07:53
Database column naming conventions

We have been going over a lot of naming conventions for our database. I would like to start recording the ideas and why they work/don't.

Using timestamps for stateful boolean column

This applies to having an archived state of an item. We attempted to draw a line at when a column is an action (e.g. archive) rather than a property (e.g. is_red). This idea means that we convert these "action" states to timestamp fields over booleans (e.g. archived_at: timestamp).

Conclusion

In order to keep data consistent, we must introduce the timestamp from a single service. This means that we must introduce an alternative endpoint to performing this action (e.g. PUT /item/:id/archive). This is fine but can lead to complications with pedantic REST frameworks.

Naming boolean columns

There are a lot of options for column naming:

@alexpchin
alexpchin / Add_Existing_Project_To_Git.md
Created June 1, 2014 20:14
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init