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:async'; | |
class SingletonTimer { | |
static final SingletonTimer _singleton = SingletonTimer._internal(); | |
factory SingletonTimer() { | |
return _singleton; | |
} | |
Timer _timer; |
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 java.awt.*; | |
import java.awt.image.BufferedImage; | |
import java.io.ByteArrayOutputStream; | |
import javax.imageio.ImageIO; | |
import java.util.Base64; | |
public class ImageWithTextToBase64 { | |
public static void main(String[] args) { | |
String imagePath = "path/to/your/image.jpg"; |
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 http = require('http'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
const rootDirectory = './www'; | |
const server = http.createServer((req, res) => { | |
const urlPath = path.join(rootDirectory, req.url); |
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
/* | |
* Author: Yi Sanghoon | |
* Email: uphoon@gmail.com | |
* Created Date: 2024-01-25 | |
* Last Modified: 2024-01-28 | |
* Description: | |
* This file is used for creating the Equalizer animation | |
* using CustomPainter and AnimationController | |
*/ |