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
| npx local-cors-anywhere |
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
| Set all files to 644 | |
| > find . -type f -exec chmod 644 {} \; | |
| Set all folders to 755 | |
| > find . -type d -exec chmod 755 {} \; | |
| Set all .bin files to executable | |
| > chmod +x node_modules/.bin/* | |
| Find all .bin files |
We can't make this file beautiful and searchable because it's too large.
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
| name,content,lng,lat | |
| yy,Happy birthday Singapore!! Thank you Moments of Life team for creating this!,103.762,1.354 | |
| wj,Happy Birthday Singapore!,103.8,1.274 | |
| Cindy Lim Qiu Xia,Happy birthday to Singapore .,103.885,1.326 | |
| GJ,Happy Birthday Singapore!,103.873,1.368 | |
| Alexa,"Thanks for being there for my yesterdays, for growing with me into my today, and for giving me hope towards my tomorrow. Happy 55th and to more glorious years ahead! 😍 🇸🇬",103.806,1.443 | |
| GJ,Happy Birthday Singapore!!,103.873,1.368 | |
| Tanglin Boy,I love Singapore from the bottom of my heart! Happy National Day!,103.79851,1.2992 | |
| Tom,HBD Singapore!,103.80249,1.27221 | |
| z,"Happy Birthday, Singapore!",103.93579,1.36536 |
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 median(numbers) { | |
| const middle = (numbers.length + 1) / 2; | |
| const sorted = numbers.sort((a, b) => a - b); | |
| const isEven = sorted.length % 2 === 0; | |
| return isEven | |
| ? (sorted[middle - 1.5] + sorted[middle - 0.5]) / 2 | |
| : sorted[middle - 1]; | |
| } |
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 pTimeout = (t) => | |
| new Promise((res, rej) => { | |
| setTimeout(res, t); | |
| }); |
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
| import React, { forwardRef, useState, useImperativeHandle } from 'react'; | |
| import { Text } from 'react-native'; | |
| export default forwardRef((props, ref) => { | |
| const [text, setText] = useState(''); | |
| useImperativeHandle(ref, () => ({ | |
| setText: t => { | |
| if (t) setText(t); | |
| }, | |
| })); |
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 width = 300; | |
| const height = 200; | |
| const newWidth = width * 2; | |
| const newHeight = height * 2; | |
| const xRatio = width / newWidth; | |
| const yRatio = height / newHeight; | |
| const resizeValues = (id, values) => { | |
| const newValues = new Array(newWidth * newHeight); | |
| for (let i = 0; i < newHeight; i++) { | |
| for (let j = 0; j < newWidth; j++) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| node -e "require('https').get('https://api.checkweather.sg/now?ascii=1', res => res.on('data', d => process.stdout.write(d + '\n\n')))" |