Skip to content

Instantly share code, notes, and snippets.

View liufsd's full-sized avatar
🎯
Focusing

liupeng liufsd

🎯
Focusing
View GitHub Profile
@peterli888
peterli888 / core.deltaBaseCacheLimit=2g 错误
Last active March 16, 2024 01:55
编译 v8 错误 core.deltaBaseCacheLimit=2g
编译 v8 core.deltaBaseCacheLimit=2g 错误
修改 depot_tools/gclient_utils.py
return '512m'
@UmairSharif99
UmairSharif99 / DownloadAndSaveAudioFile.swift
Last active July 21, 2024 18:08
Function to download audio file from url and save it in documents directory
func downloadAndSaveAudioFile(_ audioFile: String, completion: @escaping (String) -> Void) {
//Create directory if not present
let paths = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.libraryDirectory, FileManager.SearchPathDomainMask.userDomainMask, true)
let documentDirectory = paths.first! as NSString
let soundDirPathString = documentDirectory.appendingPathComponent("Sounds")
do {
try FileManager.default.createDirectory(atPath: soundDirPathString, withIntermediateDirectories: true, attributes:nil)
print("directory created at \(soundDirPathString)")
SSE3=1 SSSE3=1 SSE4_1=1 SAHF=1 AVX=1 FMA3=1 BMI1=1 BMI2=1 LZCNT=1 POPCNT=1 ATOM=0
Synopsis:
shell [options] [--shell] [<file>...]
d8 [options] [-e <string>] [--shell] [[--module] <file>...]
-e execute a string in V8
--shell run an interactive JavaScript shell
--module execute a file as a JavaScript module
Options:
@MathiasSeguy-Android2EE
MathiasSeguy-Android2EE / androidx_migration.py
Last active July 1, 2020 08:57
This python script will migrate your package to the AndroidX new package. Dec2018. [https://medium.com/@android2ee/simple-androidx-migration-with-python-4e354ba6c945]
# -*- coding: utf-8 -*-
# python
# script for multiple find/replace old android package with the ones of AndroidX new packaging.
import os,sys
from os import walk
inputDir = "../app/src/"
fileExtension = [".xml",".java",".kt"]
//
// ContentView.swift
// SwiftUI Chat
//
// Created by Nick Halavins on 6/7/19. Updated 10/11/19
// Copyright © 2019 AntiLand. All rights reserved.
//
import SwiftUI
@RitvikMandyam
RitvikMandyam / BUILD
Created May 19, 2021 04:10
MediaPipe Holistic Tracking for Android
# Copyright 2019 The MediaPipe Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,