Skip to content

Instantly share code, notes, and snippets.

View PrimeTimeTran's full-sized avatar
🎯
Focusing

Loi Tran PrimeTimeTran

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Document</title>
<style>
@PrimeTimeTran
PrimeTimeTran / Program.md
Last active March 2, 2024 17:36
Turboship Livestream #1

Introduction

I'm inspired by Web Dev Cody.

He freestyle codes. I am many others are engaged because of his calm demeanor & valuable content. I hope to measure up.

Content

In Turboship Livestreams #1 I'll setup Turboship's auto generated projects as POC.

By the end of it the viewer should understand how to download src, install dependencies, fix known issues & run the generated projects.

LVIII
Can’t explain it but the Super Bowl cause it’s inspirational…
Missed the first quarter cause there were pressing issues…
The secretary was ill so had to learn more, figure out how I feel…
I wonder what’s happening… what is God’s will…?
May God bless him…
SpongeBob & Patrick calling the game?! That’s news to me...
Mahomes deep to Hardman encounters a swarming defense...
name: Build & distribute apps
on:
push:
branches: [main]
tags:
- '*'
workflow_dispatch:
jobs:
"[dart]": {
"editor.codeActionsOnSave": {
"quickfix.insertSemicolon": true,
"source.fixAll": true,
"source.organizeImports": true,
"source.sortMembers": true
},
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true,
"editor.formatOnType": true,

PR Type

  • 🔁 CI
  • ✅ Test
  • 🤖 Build
  • 🎨 Style
  • ⏩ Revert
  • 🍕 Feature
  • 🐛 Bug Fix
  • 🧑‍💻 Code Refactor
import { useState } from 'react';
import { openURL } from 'expo-linking';
import ErrorIcon from '@icons/error';
import useCreateOrder from './useCreateOrder';
import ItemsList from './components/ItemsList';
import { isIOS } from '../../utils/deviceInfo';
import QuestionsCard from './components/QuestionsCard';
import useStatusBarColor from '../../hooks/useStatusBarColor';
import {
[
{
"body": "What is the time value of money?",
"answer": "The time value of money is the concept that states money today is worth more than the same amount in the future due to its potential earning capacity and the effects of inflation.",
"c1": "The time value of money refers to the importance of being punctual in financial transactions.",
"c2": "The time value of money refers to the idea that money should be spent wisely over time.",
"c3": "The time value of money refers to the consideration of time as a factor in investment decisions.",
"w1": "The time value of money is a term used in the field of physics to describe the measurement of time.",
"w2": "The time value of money refers to the concept that money is more valuable during certain times of the year.",
"w3": "The time value of money refers to the idea that money can be exchanged for goods and services at any time.",
{"insuranceCard":{"insuranceType":"secondary","frontImage":"/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAYAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAANZqADAAQAAAABAAAJSAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+ICKElDQ19QUk9GSUxFAAEBAAACGGFwcGwEAAAAbW50clJHQiBYWVogB+YAAQABAAAAAAAAYWNzcEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBs7P2jjjiFR8NttL1PetoYLwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAAAwY3BydAAAASwAAABQd3RwdAAAAXwAAAAUclhZWgAAAZAAAAAUZ1hZWgAAAaQAAAAUYlhZWgAAAbgAAAAUclRSQwAAAcwAAAAgY2hhZAAAAewAAAAsYlRSQwAAAcwAAAAgZ1RSQwAAAcwAAAAgbWx1YwAAAAAAAAABAAAADGVuVVMAAAAUAAAAHABEAGkAcwBwAGwAYQB5ACAAUAAzbWx1YwAAAAAAAAABAAAADGVuVVMAAAA0AAAAHABDAG8AcAB5AHIAaQBnAGgAdAAgAEEAcABwAGwAZQAgAEkAbgBjAC4ALAAgADIAMAAyADJYWVogAAAAAAAA9tUAAQAAAADTLFhZWiAAAAAAAACD3wAAPb////+7WFlaIAAAAAAAAEq/AACxNwAACrlYWVogAAAAAAAAKDgAABELAADIuXBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbc2YzMgAAAAAAAQxCAAAF3v//8yYAAAeTAAD9kP//+6L///2jAAAD3AAAwG7/wAARCAlIDWYDASIA
public Portfolio GetPortfolioById(int id, String period = "live")
{
var portfolioQuery = _context.Portfolios.Where(p => p.Id == id);
Portfolio portfolio;
switch (period)
{
case "live":
portfolio = portfolioQuery.Select(p => new Portfolio { Valuation = p.Valuation, Live = p.Live }).FirstOrDefault();