Skip to content

Instantly share code, notes, and snippets.

View falfox's full-sized avatar
🏠
Working from home

Ridho Maulana falfox

🏠
Working from home
View GitHub Profile
@falfox
falfox / release.json
Last active October 7, 2023 14:21
Chill Clip Release Artifacts
{
"version": "0.0.6",
"notes": "",
"pub_date": "2023-10-07T14:19:46.874Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUVWZmWmUvQVIxcjdFMTRpUlV2eFpMMm91eW0wbFZNT1FRT0RYeEhCVGtxUGllNlRHdGI3SGxmSWlBQ2NkRTVLcnA0eklBaFQyUU9uSTNNdUZvTTRwTlFoK0hsNHRuM3dJPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjk2Njg4MDQzCWZpbGU6Y2hpbGwtY2xpcC5hcHAudGFyLmd6ClZuSnlKdEpaQUpidlozOHVENnoxTzJrVkZJOUpZTWdFZDg1RVowcG95KzBTR2lKRjZEYjlIUE1KS20zWkJkUG9YM2JpYjMyTmI5ZHAveUZ6U0hMekFRPT0K",
"url": "https://github.com/ruine-dev/chill-clip-tauri/releases/latest/download/chill-clip_x64.app.tar.gz"
},
"windows-x86_64": {
@falfox
falfox / script.js
Last active October 23, 2023 17:20
Find out how much I spent on Destiny 2 by checking the Steam transaction history page at https://store.steampowered.com/account/history/
let tb = document.querySelector('table.wallet_history_table')
let tx = [...tb.querySelectorAll('tbody tr')].map(tr => {
let totalRaw = tr.querySelector('.wht_total')?.textContent?? ""
let total = totalRaw.replace("Credit", '').trim().substring(3).replace(/\s/g,"")
let items = tr.querySelector('.wht_items > div')?.textContent.trim() ?? ""
let isGift = tr.querySelector('.help_purchase_img') !== null
return {
total,
@falfox
falfox / flutter.code-snippets
Created March 9, 2022 07:18
Flutter Code Snippets for VSCode
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Flutter Text Style": {
"scope": "dart",
@falfox
falfox / main.dart
Created December 17, 2021 10:10
timestamp
void main() {
final now = DateTime.now();
final tomorrow = now.add(Duration(days: 1, hours: 1));
// Jam 00:00 hari ini
final start = DateTime(now.year, now.month, now.day, 0, 0);
// Jam 00:00 besok
final end = DateTime(now.year, now.month, now.day + 1, 0, 0);
print(start);
@falfox
falfox / main.dart
Created September 6, 2021 05:15
Dart loop
void main() {
var a = [["a", "b"], ["A", "B"]];
for (var i in a) {
for (var j = 0; j < i.length; j++) {
var key = String.fromCharCode(65 + j);
print("${key}: ${i[j]}");
}
print("");
}

Hello World

We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1 in line 1.
ham Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
ham Ok lar... Joking wif u oni...
spam Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
ham U dun say so early hor... U c already then say...
ham Nah I don't think he goes to usf, he lives around here though
spam FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv
ham Even my brother is not like to speak with me. They treat me like aids patent.
ham As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune
spam WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only.
spam Had your mobile 11 months