The script I wrote for my son to download his favorite story from abc kids listen podcast https://www.abc.net.au/kidslisten/
Requirements:
data class TreeNode( | |
var `val`: Int, | |
var left: TreeNode? = null, | |
var right: TreeNode? = null | |
) | |
fun binaryTree(value: Int, init: TreeNode.() -> Unit) = TreeNode(value).apply(init) | |
fun TreeNode.left(value: Int, init: TreeNode.() -> Unit = {}) { | |
left = TreeNode(value).apply(init) |
import SwiftUI | |
struct MessageLoadingView: View { | |
@State private var animate = false | |
var body: some View { | |
HStack(spacing: 5) { | |
ForEach(0..<3, id: \.self) { index in | |
Circle() | |
.frame(width: 8, height: 8) |
The script I wrote for my son to download his favorite story from abc kids listen podcast https://www.abc.net.au/kidslisten/
Requirements:
#!/usr/bin/env bash | |
# Enable xtrace if the DEBUG env variable is set | |
if [[ ${DEBUG-} =~ ^1|yes|true$ ]]; then | |
set -o xtrace # Trace the exec of the script(debug) | |
fi | |
# A better class of script... | |
set -o errexit # Exist on most errors | |
set -o errtrace # Make sure any error trap is inherited |
{ | |
"firstName": "Jian", | |
"lastName": "Lv" | |
} |
#吕健软件开发工程师简历
2008年本科毕业,从2009年4月开始,在北京中科大洋科技发展股份有限公司工作至今。
现职位: 软件开发工程师
##基本信息
姓名: 吕健
性别: 男
出生日期: 1986年10月
brew install ffmpeg \ | |
--with-fdk-aac \ | |
--with-ffplay \ | |
--with-freetype \ | |
--with-frei0r \ | |
--with-libass \ | |
--with-libvo-aacenc \ | |
--with-libvorbis \ | |
--with-libvpx \ | |
--with-opencore-amr \ |
RECEIPT_FILE=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom | |
RECEIPT_PLIST=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist | |
if [ ! -f "$RECEIPT_FILE" ] | |
then | |
echo "Command Line Tools not installed." | |
exit 1 | |
fi | |
echo "Command Line Tools installed, removing ..." |
#import <Foundation/Foundation.h> | |
#import <FMDB/FMDatabase.h> | |
@interface DYDB : NSObject { | |
} | |
@property(nonatomic, readonly) FMDatabase *database; | |
+ (DYDB *) sharedDB; |
#import <Foundation/Foundation.h> | |
#define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] | |
@interface LangUtils : NSObject | |
+ (NSString *) int2String: (int) number; | |
+ (NSString *) long2String: (long) number; |