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 { withAndroidManifest } = require('@expo/config-plugins'); | |
/** | |
Usage: | |
1. Create a dir named plugins at root of project where app.json is located | |
1. Add this file to your project (eg: ./plugins/modifyAndroidManifestAttributes.js) | |
2. In app.json use add this under expo attribute: | |
"expo"{ | |
..., |
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
# [root]/.github/workflows/android.yml | |
name: Android CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: |
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 myFunction() { | |
// https://api.binance.com/api/v3/ticker/price?symbols=%5B%22BTCUSDT%22,%22ETHUSDT%22%5D | |
const sheetStatus = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('SHEET_NAME'); | |
const _rows = SpreadsheetApp.getActiveSheet().getDataRange().getValues() | |
.filter(e => e[1] === 'USDT' || e[1] === 'BUSD') | |
.map((e, i) => { | |
// 0 = Column A |
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
version: '3.1' | |
services: | |
snscrape: | |
image: alpine:latest | |
volumes: | |
- ./:/usr/src/app | |
working_dir: /usr/src/app | |
entrypoint: | |
- ./entrypoint.sh |
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
$ chunk_size=5;n=0; for f in `ls *.json --full-time -t -r | gawk '{print $9}'`; do d="sub$((n++ / chunk_size))"; mkdir -p "$d"; mv -- "$f" "$d/$f"; done | |
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 dappeteer = require('@chainsafe/dappeteer'); | |
const puppeteer = require('puppeteer'); | |
const SEED = 'hello world its me again'; | |
const PWD = '123456Git'; | |
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
const retry = async (fn, count = 3) => { | |
try { |
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
version: '2' | |
services: | |
zookeeper: | |
image: "wurstmeister/zookeeper" | |
ports: | |
- "2181:2181" | |
broker: | |
image: "wurstmeister/kafka" | |
ports: |
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 puppeteer = require('puppeteer'); | |
const ignoreHTTPSErrors = true; | |
const _sharedBrowser = puppeteer.launch({ | |
ignoreHTTPSErrors, | |
headless: true, | |
slowMo: 250, | |
args: [ | |
'--single-process', |
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
package io.github.sandornemeth.spring; | |
import java.util.Arrays; | |
import java.util.stream.StreamSupport; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.event.ContextRefreshedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.core.env.AbstractEnvironment; |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'RDS example MySQL 8.0' | |
Parameters: | |
DBName: | |
Type: String | |
Description: 'The database name' | |
MinLength: 8 | |
MaxLength: 64 |
NewerOlder