Skip to content

Instantly share code, notes, and snippets.

View jodyson24's full-sized avatar
🎯
Focusing

J Ade jodyson24

🎯
Focusing
View GitHub Profile
@jodyson24
jodyson24 / roles_investigation.md
Created June 9, 2021 19:53 — forked from mooniker/roles_investigation.md
Roles and permissions system for Nodejs

ACL / Roles + Permissions

Virgen-ACL (virgen-acl)

  • https://github.com/djvirgen/virgen-acl
  • "Simple in-memory ACL for node.js apps. Supports arbitrary roles and resources, including role/resource detection using a simple interface. Additionally supports custom assertions for more complex rules."
  • Comments: "Simple and elegant, create your own checks. No middleware?"

Node ACL (acl) BuildStatusDependency StatusdevDependency Status

@jodyson24
jodyson24 / auth.md
Created June 10, 2020 11:03 — forked from taniarascia/auth.md
JavaScript Authentication & Authorization Book/Course

JavaScript Authentication & Authorization

Outline of ideas, concepts to cover, potential projects to write.

Setup Idea

  • Book with a video for each chapter.

Prerequisites/Overview

@jodyson24
jodyson24 / database.js
Created April 2, 2020 10:15
nodejs mysql login and signup project
// config/database.js
module.exports = {
'connection': {
'host': '127.0.0.1', // localde iseniz bu , local değilse ip adresini yazınız .
'user': 'root', // kullanıcı adı
'password': 'password', // şifreniz
'database': 'db'// database ismi .
},
'database': 'db',
@jodyson24
jodyson24 / login.html
Created March 18, 2020 00:33 — forked from lanxan/login.html
login & register with ajax
<html>
<head>
<title>login</title>
<script type="text/javascript" >
function id(id){
return document.getElementById(id);
}
function setCookie(c_name,value,expiredays){
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shopping Cart</title>
<meta name="viewport" content="width=device-width">
<style>
*{
padding: 0;
margin: 0;
[{
"id":123,
"title":"Bell",
"desc":"Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"img":"bell-lg.png",
"price":12.34
},{
"id":456,
"title":"Bullhorn",
"desc":"Quisquam, veritatis, officia. Veritatis, saepe!",
@jodyson24
jodyson24 / media-query.css
Created January 7, 2020 15:36 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS