Skip to content

Instantly share code, notes, and snippets.

View PrimeTimeTran's full-sized avatar
🎯
Focusing

Loi Tran PrimeTimeTran

🎯
Focusing
View GitHub Profile
View gist:6db16d9972ce2aee7c6cbf742280b176
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...
View build-apps.yml
name: Build & distribute apps
on:
push:
branches: [main]
tags:
- '*'
workflow_dispatch:
jobs:
View go.json
"[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,
View pr_template.md

PR Type

  • 🔁 CI
  • ✅ Test
  • 🤖 Build
  • 🎨 Style
  • ⏩ Revert
  • 🍕 Feature
  • 🐛 Bug Fix
  • 🧑‍💻 Code Refactor
View example.js
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 {
View questions.json
[
{
"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.",
View payload.js
{"insuranceCard":{"insuranceType":"secondary","frontImage":"/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAYAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAANZqADAAQAAAABAAAJSAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+ICKElDQ19QUk9GSUxFAAEBAAACGGFwcGwEAAAAbW50clJHQiBYWVogB+YAAQABAAAAAAAAYWNzcEFQUEwAAAAAQVBQTAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBs7P2jjjiFR8NttL1PetoYLwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAAAwY3BydAAAASwAAABQd3RwdAAAAXwAAAAUclhZWgAAAZAAAAAUZ1hZWgAAAaQAAAAUYlhZWgAAAbgAAAAUclRSQwAAAcwAAAAgY2hhZAAAAewAAAAsYlRSQwAAAcwAAAAgZ1RSQwAAAcwAAAAgbWx1YwAAAAAAAAABAAAADGVuVVMAAAAUAAAAHABEAGkAcwBwAGwAYQB5ACAAUAAzbWx1YwAAAAAAAAABAAAADGVuVVMAAAA0AAAAHABDAG8AcAB5AHIAaQBnAGgAdAAgAEEAcABwAGwAZQAgAEkAbgBjAC4ALAAgADIAMAAyADJYWVogAAAAAAAA9tUAAQAAAADTLFhZWiAAAAAAAACD3wAAPb////+7WFlaIAAAAAAAAEq/AACxNwAACrlYWVogAAAAAAAAKDgAABELAADIuXBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbc2YzMgAAAAAAAQxCAAAF3v//8yYAAAeTAAD9kP//+6L///2jAAAD3AAAwG7/wAARCAlIDWYDASIA
View queries.cs
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();
View structure.MD
  • src
    • controllers
      • UserController.ts
      • FormController.ts
      • QuestionController.ts
      • ResponseController.ts
    • models
      • User.ts
      • Form.ts
  • Question.ts
View nested-navigators.js
import { useEffect } from "react";
import { StyleSheet, Text, View, TouchableOpacity } from "react-native";
import { useRoute, NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createNativeStackNavigator } from "@react-navigation/native-stack";
const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();