Skip to content

Instantly share code, notes, and snippets.

View nodahikaru's full-sized avatar
🏠
Working from home

Noda Hikaru nodahikaru

🏠
Working from home
View GitHub Profile
import { useLocation } from "react-router-dom";
export function useQueryParams() {
const query = new URLSearchParams(useLocation().search);
return query;
}
@nodahikaru
nodahikaru / foo_test.dart
Created June 24, 2022 17:11 — forked from Rex-Ferrer/foo_test.dart
16 Tips for Widget Testing in Flutter
// https://gist.github.com/Esgrima/c0d4bff4b0d3909daf8994410cd659ce
// https://dartpad.dev/c0d4bff4b0d3909daf8994410cd659ce
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:boolean_selector/boolean_selector.dart';
// (TODO: Tip # 1) Consider making frequently used variables/values constants
const _fooConst1 = '';
const _fooConst2 = '';
@nodahikaru
nodahikaru / twoSum.js
Last active July 10, 2024 03:24
Target Sum Javascript
function twoSum(nums, target) {
// Create a map to store each number and its index
const numMap = new Map();
// Iterate through the array
for (let i = 0; i < nums.length; i++) {
const complement = target - nums[i];
// Check if the complement exists in the map
if (numMap.has(complement)) {
@nodahikaru
nodahikaru / TrendsExplorerView.vue
Created January 26, 2025 08:38
Explorer Chart
<script setup>
import { computed, watch, ref, reactive, defineAsyncComponent, onBeforeUnmount } from 'vue'
import { useDashboardStore } from '@/stores/dashboard'
import { useTrends } from '@/use/useTrends'
import event from '@/plugins/event'
import { useDisplay } from 'vuetify'
import VueApexCharts from 'vue3-apexcharts'
const Correlations = defineAsyncComponent(() => import('@/components/Trends/Correlations.vue'))
const RotateScreenPrompt = defineAsyncComponent(() => import('@/components/RotateScreenPrompt.vue'))
@nodahikaru
nodahikaru / text
Created January 26, 2025 08:47
Folder Structure
src/
|-- features/
| |-- featureA/
| | |-- components/
| | |-- store/
| | |-- services/
| | |-- routes.js
| |-- featureB/
| |-- components/
| |-- store/
TQVhXkzZ541YEWbC4xPPA4SPHZGTvsYhAG
TRC20 /USDT
0x9F560e0DEBb113d82d0eBBFBED3AA8427e8FbfE1
BEP20 / USDT
0x9F560e0DEBb113d82d0eBBFBED3AA8427e8FbfE1
ERC20 / USDT
Be sure address and network to match, and confirm transaction with scans.