Skip to content

Instantly share code, notes, and snippets.

View widyakumara's full-sized avatar
:octocat:
🆖🆗 🆖🆗 🆖🆗

Dewa Widyakumara widyakumara

:octocat:
🆖🆗 🆖🆗 🆖🆗
  • 13:49 (UTC +07:00)
View GitHub Profile
@widyakumara
widyakumara / update.sh
Created September 26, 2019 10:36
update fork master branch from original repo
git checkout master
git fetch upstream
git merge upstream/master
git push
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>webcam</title>
<style type="text/css">
body {
margin: 0;
}
.webcam {

Keybase proof

I hereby claim:

  • I am widyakumara on github.
  • I am widyakumara (https://keybase.io/widyakumara) on keybase.
  • I have a public key ASASbu9-evdp33BK6vA3u8oTXP9VgojayfgWHw4IzCWJ8Ao

To claim this, I am signing this object:

@widyakumara
widyakumara / disable.console.js
Created November 19, 2021 08:36
disable console.* on production
if (env === 'production') {
const noop = () => {}
['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn',
].forEach((method) => {
window.console[method] = noop
})
}
@widyakumara
widyakumara / main.ts
Created August 14, 2025 17:21
wite mp3 tag using mp3tag.js
import { readFileSync, writeFileSync } from "node:fs";
import MP3Tag from "mp3tag.js";
const file = "rick astley/whenever you need somebody/never gonna give you up.mp3";
const buffer = readFileSync(file);
const verbose = true;
const mp3tag = new MP3Tag(buffer, verbose);
mp3tag.read({ id3v1: false });