Skip to content

Instantly share code, notes, and snippets.

View dimasmiftah's full-sized avatar
💡

Dimas Miftahul Huda dimasmiftah

💡
View GitHub Profile
@raflyfahrezi
raflyfahrezi / index.js
Created January 9, 2021 14:02
Script TikTok Video Downloader - Open some videos, open devtools, paste this code at console. Your are done.
const videos = document.getElementsByTagName("VIDEO")
window.open(videos[0].src)
@bradtraversy
bradtraversy / eslint_prettier_airbnb.md
Created July 19, 2019 17:54
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@disintegrator
disintegrator / GatsbyContentfulWithReadingTime.graphql
Last active June 19, 2022 13:43
Add a reading time estimate to all your Contentful rich text nodes in GatsbyJS
{
contentfulBlogPost {
body {
fields {
readingTime {
text
minutes
time
words
}
@nyancodeid
nyancodeid / parse.js
Last active January 10, 2023 15:01
Prefix Provider Indonesia in Javascript
function parseOperator(phone) {
var OperatorPrefix = {
telkomsel: ["0812","0813","0821","0822","0852","0853","0823","0851"],
indosat: ["0814","0815","0816","0855","0856","0857","0858"],
tri: ["0895","0896","0897","0898","0899"],
smartfren: ["0881","0882","0883","0884","0885","0886","0887","0888","0889"],
xl: ["0817","0818","0819","0859","0877","0878"],
axis: ["0838","0831","0832","0833"],
bolt: ["0999", "0998"]
}
@OlesenkoViktor
OlesenkoViktor / PS3Dualshock_10_15.plist
Last active June 27, 2022 07:48
DualShock 3 + Mac OS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CGPDeviceCategory</key>
<string>GamePad</string>
<key>CGPDeviceType</key>
<string>PS3</string>
<key>CGPDisplayNameOvr</key>
<string>DualShock3 Analogue Triggers</string>
@DavidWells
DavidWells / reset.css
Last active March 16, 2025 10:23 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,