View api.ts
This file contains 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 fetcher = async ({ path, method = "get", query, body }: FetcherPayload) => { | |
let url = `${process.env.NEXT_PUBLIC_API_URL}/${path}`; | |
if (query != undefined) { | |
url += `?${new URLSearchParams(query)}`; | |
} | |
console.log(`[api] ${method} ${url}`); | |
const token = Cookies.get("token"); | |
let response: Response; |
View KJFFT.java
This file contains 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
/** | |
* -------------------------------------------------------------------------------- | |
* NoiseTube Mobile client (Java implementation; Android version) | |
* <p> | |
* Copyright (C) 2008-2010 SONY Computer Science Laboratory Paris | |
* Portions contributed by Vrije Universiteit Brussel (BrusSense team), 2008-2011 | |
* Android port by Vrije Universiteit Brussel (BrusSense team), 2010-2011 | |
* -------------------------------------------------------------------------------- | |
* This library is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU Lesser General Public License, version 2.1, as published |
View test.s.sol
This file contains 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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.10; | |
import "@openzeppelin/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "@openzeppelin/access/Ownable.sol"; | |
import "@openzeppelin/utils/cryptography/MerkleProof.sol"; | |
import "@openzeppelin/utils/Strings.sol"; | |
import "@openzeppelin/token/ERC721/IERC721Receiver.sol"; | |
import "./util/Test.t.sol"; |
View insert.sql
This file contains 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
-- insert a new place and associated hours | |
create function app_public.save_place( | |
city_id text, | |
address text, | |
latitude double precision, | |
longitude double precision, | |
hours tsrange[], | |
phone app_public.phone_number default null, | |
) returns app_public.places as $$ |
View apple-app-site-association
This file contains 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
{ | |
"applinks": { | |
"apps": [], | |
"details": [ | |
{ | |
"appID": "NN3HD78L8S.app.otsukalab", | |
"paths": [ | |
"*" | |
] | |
}, |
View printer_repository.dart
This file contains 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 'dart:io'; | |
import 'package:esc_pos_printer/esc_pos_printer.dart'; | |
import 'package:esc_pos_utils/esc_pos_utils.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:freezed_annotation/freezed_annotation.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:image/image.dart' as image; | |
import 'package:mimosushi_forecast/data/data.dart'; | |
import 'package:mimosushi_forecast/presentation/presentation.dart'; |
View iap.rb
This file contains 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
require 'google/apis/androidpublisher_v3' | |
class IapService | |
def self.validate_receipt(source:, sku:, transaction_id:, transaction_receipt:) | |
if source == :appstore | |
validate_appstore( | |
source: source, | |
sku: sku, | |
transaction_id: transaction_id, |
View mimosushi-zelty.css
This file contains 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
#zwgth { | |
margin-bottom: 20px !important; | |
} | |
#zwgth .logo { | |
display: none !important; | |
} | |
#zwgth h1 { | |
display: none !important; |
View cal.java
This file contains 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
public void run() { | |
if (stream != null) { | |
running = true; | |
try { | |
StopWatch sw = new StopWatch(); | |
sw.Start(); | |
float leqA2 = 0f; | |
float leqA = 0f; | |
arr_samples = IOStream.toFloat(stream.get(Utils.LEQ_1SEC)); |
View Bloc.dart
This file contains 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 'package:x/presentation/presentation.dart'; | |
import 'activities_actions.dart'; | |
import 'activities_state.dart'; | |
class ActivitiesBloc { | |
BlocController<ActivitiesState, Action> get controller => _core; | |
BlocCore<ActivitiesState, ActivitiesStateBuilder, Action> _core; | |
ActivitiesBloc() { |
NewerOlder