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
// C MACROs are not available in swift, so this format is prefered to use in Obj-C | |
RCT_EXPORT_METHOD(methodFoo:(NSNumber * __nonnull)reactTag //... whatever){ | |
[self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, | |
NSDictionary<NSNumber *, SomeView *> *viewRegistry) { | |
SomeView *view = viewRegistry[reactTag]; | |
if (![view isKindOfClass:[IvsPublisherView class]]) { | |
RCTLogError(@"Invalid view returned from registry, expecting SomeView, got: %@", view); | |
} | |
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: Example iOS Build | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
build-ios: | |
runs-on: macos-latest |
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
#!bin/bash | |
# .env의 위치 | |
export ENV_FILE=ENVIRONMENT_FILE_HERE | |
# build가 끝난 폴더의 위치 (ex. ./dist) | |
export BUILD_FOLDER=BUILD_FOLDER_HERE | |
# s3 bucket 및 폴더의 위치 | |
export S3_BUCKET_DESTINATION=s3://bucket_name/destination | |
# Invalidate 할 폴더의 위치 | |
export CDN_DISTRIBUTION_ID=CLOUDFRONT_DIST_HERE |
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 {someApi} from "someApi" | |
const somePromiseFct = (params) => { | |
return new Promise((resolve, reject) => { | |
//... ex. callbackFct는 callback으로 data를 준다고 합니다 | |
someApi.callbackFct(params, (data, error) => { | |
//... data를 처리 | |
if (error) return reject(error); | |
resolve(data); | |
}) |
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 sys | |
import subprocess | |
import os | |
import video_cmds | |
task_id = sys.argv[1] | |
src_s3_path = sys.argv[2] | |
dst_s3_path = sys.argv[3] | |
file_max_length = 300 |
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
// written typescript | |
import { APIGatewayEvent, Context, Handler } from "aws-lambda"; | |
import Koa from "Koa"; | |
import Router from "koa-router"; | |
import serverlessHttp from "serverless-http"; | |
// for serverless offline | |
export interface SlsExtendableOfflineEvent extends APIGatewayEvent { |
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
rtmp { | |
server{ | |
listen 1935; | |
chunk_size 256; | |
buflen 100ms; | |
application live { | |
live on; | |
# dash on; |
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
// Uses dynamic component loading feature of nextjs | |
import dynamic from 'next/dynamic'; | |
import sketch from './BGSketch'; // Sketch to load dynamically | |
import css from '../styles.less' | |
const P5DynamicLoader = dynamic(import('./P5Wrapper'), { | |
ssr: false, | |
loading: () => <div className={css.backgroundCanvas}>Loading Background...</div>, | |
}); |