Skip to content

Instantly share code, notes, and snippets.

View bentinata's full-sized avatar
🍃
Little soldier boy

Ben Nata bentinata

🍃
Little soldier boy
View GitHub Profile
function generate (min, max) {
document.querySelectorAll('#rounded-corner>tbody>tr').forEach((e, i) => {
const n = Math.floor(Math.random() * (max - min + 1)) + min;
const q = `#K${(i + 1).toString().padStart(2, 0)}${Math.ceil(n / 3)}${((n - 1) % 3 + 1)}`
document.querySelector(q).checked = true;
})
}
@bentinata
bentinata / ID.md
Last active April 10, 2019 04:16
Slaquette
  1. Jadilah pengguna yang berguna.

  2. Gunakan channel yang patut.
    #general untuk kepentingan umum
    #random jika ingin bercanda
    #rpl atau #mppl untuk diskusi mata kuliah dan tugas terkait
    #channel_kelompok untuk diskusi masing-masing kelompok.

  3. Kaji ulang setiap pesan yang akan dibuat.
    Pesan singkat dan langsung pada intinya.

@bentinata
bentinata / index.js
Last active February 3, 2018 09:06
Code for https://youtu.be/4doWq-uSa60. Since this is using pipe, use it like `node . > out.mp4`.
'use strict';
const { writeFileSync, unlinkSync } = require(`fs`);
const ffmpeg = require(`fluent-ffmpeg`);
const { stringify } = require(`subtitle`);
const syllable = require(`syllable`);
const words = `
_l1_Hi _l1_there!
My name is _l2_Ben

Keybase proof

I hereby claim:

  • I am bentinata on github.
  • I am bentinata (https://keybase.io/bentinata) on keybase.
  • I have a public key whose fingerprint is F465 B2D5 E0F8 D9DC 9DFD 8591 61D8 D6FC 3273 FBC6

To claim this, I am signing this object:

Boot Info Script cfd9efe + Boot-Repair extra info [Boot-Info 26Apr2016]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos6)/boot/grub. It also embeds following components:
modules
////////////////////////////////////////////////////////////////////////////////
// Saya Benget Nata bersumpah tidak melakukan kecurangan, yaitu: //
// 1. Mengetikkan kode program dengan melihat kode program teman. //
// 2. Mengetikkan kode program berdasarkan petunjuk oleh teman. //
// 3. Mengumpulkan kode program milik teman. //
// 4. Memberikan mengetikkan terkait kode program yang dikumpulkan. //
// 5. Memiliki alur program yang sama persis dengan teman. //
// Jika saya melakukan kecurangan maka Tuhan adalah saksi saya, //
// dan saya bersedia menerima hukuman-Nya. //
////////////////////////////////////////////////////////////////////////////////
t = √(2h/g)
t = √(2 × 1.2 / 9.8)
t = √(2.4 / 9.8)
t = 0.49
Waktu Michael Jordan di udara sekitar 0.5 detik.
Sedangkan perubahan pergerakan horizontal tidak mempengaruhi waktu di udara.
Kecuali kecepatan dituliskan secara eksplisit.
<html>
<head>
<meta charset="UTF-8">
<title>Decomposition</title>
<style>
body
{
background-color: black;
}
#Position