Skip to content

Instantly share code, notes, and snippets.

View alfaben12's full-sized avatar
🇮🇩
Working from anywhere

Thariq Alfa alfaben12

🇮🇩
Working from anywhere
View GitHub Profile
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;
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: [
@alfaben12
alfaben12 / main.dart
Created September 10, 2020 04:18 — forked from kumar-aakash86/main.dart
Single Finger Widget Resize
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,
<?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
*
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
@alfaben12
alfaben12 / main.go
Last active February 7, 2020 10:27
Gin gonic main.go
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",
@alfaben12
alfaben12 / backends.js
Created November 4, 2019 10:06 — forked from kevinswiber/backends.js
Express Gateway Example with Multiple Services
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) => {
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