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
pragma solidity ^0.8.2; | |
contract Token { | |
mapping(address => uint) public balances; | |
mapping(address => mapping(address => uint)) public allowance; | |
uint public totalSupply = 1000000 * 10 ** 18; | |
string public name = "INDOG"; // name your token | |
string public symbol = "INDG"; // code your token | |
uint public decimals = 18; | |
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 axios from 'axios' | |
export default { | |
target: 'server', | |
ssr: true, | |
mode: 'universal', | |
// Global page headers (https://go.nuxtjs.dev/config-head) | |
head: { | |
title: 'FindFitFun - Find The Custom Box', | |
meta: [ |
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:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
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
<?php | |
/** | |
* PHP Script to benchmark PHP and MySQL-Server | |
* http://odan.github.io/benchmark-php/ | |
* | |
* inspired by / thanks to: | |
* - www.php-benchmark-script.com (Alessandro Torrisi) | |
* - www.webdesign-informatik.de | |
* |
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
let result = [] | |
let code = 200 | |
if(req.file == undefined){ | |
let code = 403 | |
return res.status(code).json({ | |
message: "Extensi tidak tiperbolehkan." | |
}) | |
}else{ | |
code = 200 | |
let filepath = process.cwd()+ '/files/csv/'+ req.file.filename |
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
package main | |
import "github.com/gin-gonic/gin" | |
func main() { | |
r := gin.Default() | |
r.GET("/welcome", func(c *gin.Context) { | |
c.JSON(200, gin.H{ | |
"error": false, | |
"message": "Yayyyy I'am Gin Gonic", |
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 express = require('express'); | |
const forum = express(); | |
forum | |
.get('/healthz', (req, res, next) => { | |
res.send({ name: 'forum', status: 'healthy' }); | |
next(); | |
}) | |
.get('/d/:id', (req, res, next) => { |
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 Sequelize = require('sequelize'); | |
/** | |
* ZSqequelize | |
* | |
* An open source application development libraries for ExpressJS framework | |
* | |
* Copyright (c) 2019, Alfaben | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |