This file contains hidden or 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 Discord = require("discord.js") | |
| const moment = require('moment'); | |
| const _fs = require("fs"); | |
| const packages = JSON.parse(_fs.readFileSync('./package.json', 'utf-8')); | |
| require('moment-duration-format'); | |
| const os = require('os'); | |
| let cpu = os.cpus(); | |
| exports.run = (client, message, args, tools) => { | |
| const duration = moment.duration(client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); |
This file contains hidden or 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 latihanpbo; | |
| import java.util.Scanner; | |
| public class Penjualan { | |
| public static void main(String[] args) { | |
| // inisialisasi Scanner untuk mendeksi inputan | |
| Scanner in = new Scanner(System.in); | |
| // membuat Menu Interface | |
| System.out.println("+================+================+==========+"); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <script src="./main.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or 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
| /** | |
| * Pseudo Random Number Generator with No Repeat | |
| * @copyright 2018 github/lingkaryamediaformasi | |
| */ | |
| /** Array kosakatanya */ | |
| var kosakata = [ | |
| "mantan", "pacar", "kamu", "saya", "dia", "penjahat", "pesawat", "lampu", "tiang", | |
| "masak", "panci", "piring", "anjing", "kucing", "buku", "botol", "galon", "muka" | |
| ]; |
This file contains hidden or 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
| /** | |
| * @param {string} err | |
| */ | |
| let getErrorMessage = (err) => { | |
| // All json string will pass in this regex | |
| let regex = /(\{\"([^\"]+)\"\:(\w+)\,\"([^\"]+)\"\:\"([^\"]+)\"\,\"([^\"]+)\"\:\"([^\"]+)\"\})/gm | |
| return JSON.parse(err.match(regex)[0]); | |
| } |
This file contains hidden or 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
| /** | |
| * Diambil dari https://www.malasngoding.com/membuat-format-rupiah-dengan-javascript/ | |
| * Dimodifikasi sendiri oleh saya, Ikramullah Latif @github/skymunn | |
| */ | |
| /** | |
| * Uang menjadi fixed | |
| * @param {string} angka Harus string karena ada fungsi String.replace masalahnya | |
| * @param {string} prefix Prefix uang, kosongkan kalau mau tetap rupiah | |
| */ |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Kotak Tengah</title> | |
| <style> |
This file contains hidden or 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 React, { Component } from 'react' | |
| /** | |
| * @typedef Props - Test typedef props | |
| * @property {boolean} [mantap] - Mantap ga? | |
| * | |
| * @typedef State - Test typedef state | |
| * @property {number} itung - Angka | |
| * | |
| * @extends {Component<Props, State>} |
This file contains hidden or 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 { Telegraf } = require('telegraf') | |
| const Markup = require('telegraf/markup') | |
| const BaseScene = require('telegraf/scenes/base') | |
| const WizardScene = require('telegraf/scenes/wizard') | |
| const Stage = require('telegraf/stage') | |
| const session = require('telegraf/session') | |
| require('dotenv/config') | |
| require('console-stamp')(console) |
This file contains hidden or 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 React, { useState } from 'react' | |
| import Overlay from './Overlay' | |
| function App () { | |
| const [showOverlay, setOverlay] = useState(false) | |
| function triggerOverlay (event) { | |
| event.preventDefault() | |
| showOverlay ? setOverlay(false) : setOverlay(true) | |
| } |
OlderNewer