Skip to content

Instantly share code, notes, and snippets.

View tinarskii's full-sized avatar

Tinnaphat Somsang tinarskii

  • Assumption College Samutprakarn (@urgrowth)
  • ป้อมยุทธนาวีพระเจดีย์กลางน้ำฟาร์มจระเข้ใหญ่งามวิไลเมืองโบราณสงกรานต์พระประแดงปลาสลิดแห้งรสดีประเพณีรับบัวครบถ้วนทั่วอุตสาหกรรม (Samutprakarn), Thailand
  • 05:22 (UTC +07:00)
  • X @tinarskii
  • Twitch tinarskii
  • Instagram t1.narskii
  • Facebook tinarskii
View GitHub Profile
@mikkipastel
mikkipastel / calendar.js
Created April 17, 2022 07:06
create function for get today is holiday event
function checkTodayIsHoliday(webhook) {
let minNow = new Date();
minNow.setHours(7, 0, 0, 0);
const timeMin = minNow.toISOString();
let maxNow = new Date();
maxNow.setDate(maxNow.getDate() + 1);
maxNow.setHours(7, 0, -1, 0);
const timeMax = (new Date(maxNow)).toISOString();
@tinarskii
tinarskii / minesweeper.js
Last active February 3, 2022 15:37
Simple MineSweeper Game
class Cell {
constructor (x, y) {
this.x = x;
this.y = y;
this.isMine = false;
this.isFlagged = false;
this.isRevealed = false;
this.neighborMines = 0;
}
}
@anvaka
anvaka / 00.Intro.md
Last active July 18, 2024 03:09
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
/*************************************************
* Public Constants
*************************************************/
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41