This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Minimal Candlestick – chartjs-chart-financial</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<style> | |
body { font-family: system-ui, Arial; background:#111; color:#eee; margin:0; padding:16px; } | |
.toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; } | |
.toolbar select, .toolbar button { padding:6px 8px; border-radius:6px; border:1px solid #333; background:#1b1b1b; color:#eee; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> My blog</h1> | |
<% @blog_posts.each do |blog_post| %> | |
<h2><%= link_to blog_post.title, "/blog_post/#{blog_post.id}" %></h2> | |
<%= blog_post.body %> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let data=[ | |
{productName: "banana", price: 100, qty: 2, subtotal: 200, date: new Date(2023, 1, 24) }, | |
{productName: "dragon fruit", price: 150, qty: 1, subtotal: 150 , date: new Date(2012, 1, 26) }, | |
{productName: "screwdriver", price: 10, qty: 1, subtotal: 10.10, date: new Date(2020, 11, 16)}, | |
{productName: "potato", price: 18, qty: 1, subtotal: 18, date: new Date(2020, 11, 16)}, | |
] | |
function textSearch(searchTerm){ | |
let result =[] | |
let counter =0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# data sample | |
# "{\"order_summary\": [ | |
# {\"total_invoice\": 85000}, {\"expire_date\": \"2022-12-03T13:55:15.771771\"}, {\"estate_id\": 2}], | |
# \"order_details\": [ | |
# {\"service\": \"12 Months ads\", \"amount\": 75000}, | |
# {\"service\": \"Premium ads\", \"amount\": 10000} | |
# ]}" | |
order = Orders.query.filter_by(id=25).first() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
date_string = "2022-05-31T15:02:48.575980" | |
converted_date = datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%S.%f') | |
print(converted_date) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""added estate type | |
Revision ID: ae9471a33d22 | |
Revises: 98b6e4b854f6 | |
Create Date: 2021-11-22 18:19:51.413477 | |
""" | |
from alembic import op | |
import sqlalchemy as sa | |
from sqlalchemy.dialects import postgresql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flask_bcrypt | |
from bokeh.models import HoverTool | |
from flask import Blueprint, render_template, request, redirect, url_for | |
from app import db | |
from sqlalchemy.sql import text | |
from bokeh.embed import components | |
from bokeh.plotting import figure | |
from bokeh.resources import INLINE | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const columnsFromBackend = | |
{ | |
[uuid()]:{ | |
name:'Todo', | |
items : [ | |
{id: uuid(), content:'first task'}, | |
] | |
}, | |
[uuid()]:{ | |
name:'In Progress', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lunrjs = require("lunr") | |
var documents = [ | |
{ | |
"userId": 1, | |
"id": 1, | |
"title": "delectus aut autem", | |
"completed": false | |
}, |