This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getWiseAPI(fromCurrency='EUR', toCurrency='IDR', price=1) { | |
| if(typeof fromCurrency != 'string') { | |
| fromCurrency = 'EUR' | |
| } | |
| if(typeof toCurrency != 'string') { | |
| toCurrency = 'EUR' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://forum.xda-developers.com/attachments/tlink-1-9-5-apk.5632621/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addEventListener("fetch", event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| async function handleRequest(request) { | |
| const url = new URL(request.url) | |
| return await fetch(`https://S3_URL_HERE${url.pathname}`) | |
| } |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "UNB": { | |
| "SYNTAXIDENTIFIER_1": { | |
| "SyntaxIdentifier_1": "UNOA", | |
| "SyntaxVersionNumber_2": "1" | |
| }, | |
| "INTERCHANGESENDER_2": { | |
| "InterchangeSenderIdentification_1": "DHLEUAPGW", | |
| "IdentificationCodeQualifier_2": "DHLE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Select2Alpine { | |
| constructor(el) { | |
| this.el = document.querySelector(el); | |
| if (!this.el) { | |
| throw `Element ${el} not found`; | |
| } | |
| } | |
| init() { | |
| this.render(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // [a/A] alpha numeric | |
| // [la] Lowercase alpha numeric | |
| // [ua] Uppercase alpha numeric | |
| // [w] words | |
| // [lw] Lowercase words | |
| // [uw] uppercase word | |
| // [n] number | |
| // [p] symbol | |
| // [r] random all | |
| // [lr] random lowercase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const now = moment().utc(); | |
| const origin = moment(this.dropAt); | |
| const diffDay = origin.diff(now, "days"); | |
| const diffHour = origin.diff(now, "hours"); | |
| const diffMinutes = origin.diff(now, "minutes"); | |
| const diffSeconds = origin.diff(now, "seconds"); | |
| let finalWeek = Math.floor(diffDay / 7); | |
| let finalDay = diffDay - finalWeek * 7; | |
| let finalHours = diffHour - diffDay * 24; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sample | |
| /** | |
| pick data from object and array | |
| this.$pick(SOURCE) | |
| this.$pick(SOURCE, DATA_TO_PIC, DATA_TO_PIC, DATA_TO_PIC) | |
| this.$pick(SOURCE, [SOURCE, TRANFORM_FUNCTION]) | |
| this.$pick(SOURCE, [DATA_TO_PIC, NEW_NAME, TRANFORM_FUNCTION]) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const firsVal = 'harum' | |
| const secondVal = 'rumah' | |
| const isAnagram = (firstVal, secondVal) => { | |
| firstVal = firstVal | |
| .toLowerCase() | |
| .split(' ') | |
| .join('') | |
| .split('') | |
| .sort() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(int argc, const char * argv[]) { | |
| float beratBenih = .15; // as gram | |
| int lebar = 3; // as meter | |
| int panjang = 4; // as meter | |
| // lebar di kurang (jarak 1 meter di kali 2) (jarak pingir) |
NewerOlder