$ rails g model User
belongs_to
has_one
// Models is sequelize instance | |
app.use('/smartphones', smartphonesRouter(models)); |
Katalog CMS* | |
Home Page* | |
User Click About Link -> About Page | |
User click login button and success -> Dashboard Page | |
User click login button and failed -> Unauthorized Page | |
Dashboard Page | |
User Click Logout Button -> Home Page | |
User click create new category button -> New Category Page | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: elasticsearch | |
labels: | |
service: elasticsearch | |
spec: | |
serviceName: es | |
# NOTE: This is number of nodes that we want to run | |
# you may update this |
npm config set init.author.name "Bayu Aldi Yansyah" | |
npm config set init.author.email [email protected] | |
npm config set init.author.url https://github.com/pyk | |
npm config set init.license MIT |
# app.py | |
import asyncio | |
import random | |
from sanic import Sanic | |
from sanic import response | |
import prometheus_client as prometheus | |
app = Sanic() |
# app.py | |
import asyncio | |
import random | |
from sanic import Sanic | |
from sanic import response | |
app = Sanic() | |
@app.get("/") | |
async def index(request): |
CANVAS_HEIGHT = 600 | |
CANVAS_WIDTH = 600 | |
FPS = 15 | |
def setup(): | |
"""Setup the canvas""" | |
# Canvas size | |
size(CANVAS_HEIGHT, CANVAS_WIDTH, P3D) | |
# Draw from center |
// 'spirals' by dave | |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |