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
PUT ja | |
{ | |
"settings": { | |
"analysis": { | |
// 1. custom character filters... | |
"char_filter": { | |
// 1-1. icu_normalizer nfkc: This handles the variation of full-width and half-width characters | |
"ja_normalize": { | |
"type": "icu_normalizer", | |
"name": "nfkc", |
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
#################################################### | |
#### Query #### | |
extend type Query { | |
#### Apple Music #### | |
# Storefronts | |
appleMusicStorefronts( | |
input: AppleMusicStorefrontsInput! | |
): AppleMusicStorefrontResponse |
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 SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
ZStack { | |
ScrollView { | |
VStack(alignment: .leading) { | |
ForEach(1...10, id: \.self) { index in | |
VStack(alignment: .leading) { |
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
// Models | |
import SwiftUI | |
struct Tab: Identifiable { | |
var id = UUID().uuidString | |
var tab: String | |
var foods: [Food] | |
} |
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
// Main | |
@main | |
struct ChatApp_macOSApp: App { | |
var body: some Scene { | |
WindowGroup { | |
Home() | |
} | |
// Hiding Title Bar... | |
.windowStyle(HiddenTitleBarWindowStyle()) |
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
docker kill $(eval docker ps -q) | |
docker rm $(eval docker ps -aq) | |
docker rmi -f $(eval docker images -q) |
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
export function processHLS(args: { | |
videoPath: string | |
size: string | |
outPath: string | |
}) { | |
return new Promise((res, rej) => { | |
Ffmpeg(args.videoPath) | |
.videoBitrate(1024) | |
.videoCodec("libx264") | |
.noAudio() |
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
ffmpeg -hide_banner -i Pestalozzi_PreMovie1.0.mp4 \ | |
-filter:v scale=w=426:h=240:force_original_aspect_ratio=decrease -profile:v baseline -b:v 400k -maxrate 425k -bufsize 600k -hls_time 10 -hls_list_size 0 -hls_segment_filename test/240p_%03d.ts test/240p.m3u8 \ | |
-filter:v scale=w=640:h=360:force_original_aspect_ratio=decrease -profile:v baseline -b:v 700k -maxrate 770k -bufsize 1050k -hls_time 10 -hls_list_size 0 -hls_segment_filename test/360p_%03d.ts test/360p.m3u8 \ | |
-filter:v scale=w=842:h=480:force_original_aspect_ratio=decrease -profile:v baseline -b:v 1250k -maxrate 1500k -bufsize 1875k -hls_time 10 -hls_list_size 0 -hls_segment_filename test/480p_%03d.ts test/480p.m3u8 \ | |
-filter:v scale=w=1280:h=720:force_original_aspect_ratio=decrease -profile:v baseline -b:v 1500k -maxrate 1750k -bufsize 2250k -hls_time 10 -hls_list_size 0 -hls_segment_filename test/720p_%03d.ts test/720p.m3u8 |
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
// | |
// Created by Jeany Meza on 2020/03/04. | |
// Copyright © 2020 pestalozzitech. All rights reserved. | |
// | |
import UIKit | |
import UIComponents | |
public class TemplateCollectionViewCell: UICollectionViewCell { | |
public override init(frame: CGRect) { |
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
// | |
// Created by Jeany Meza on 2020/03/04. | |
// Copyright © 2020 pestalozzitech. All rights reserved. | |
// | |
import UIKit | |
import UIComponents | |
public class TemplateView: UIView { | |
public override init(frame: CGRect) { |
NewerOlder