Skip to content

Instantly share code, notes, and snippets.

View answer-huang's full-sized avatar

answer-huang answer-huang

  • NIO
  • China
  • 14:37 (UTC +08:00)
View GitHub Profile
@ideawu
ideawu / quicksort
Last active June 29, 2021 08:29
快速排序QuickSort算法JavaScript实现, 包括 Hoare 和 Lomuto 版本的实现,以及网友实现版本的对比
<html>
<body>
<script>
// @author: ideawu
// @link: http://www.ideawu.net/blog/archives/1021.html
var swap_count = 0;
var cmp_count = 0;
// https://gist.github.com/wintercn/c30464ed3732ee839c3eeed316d73253
function wintercn_qsort(arr, start, end){
@patriknyblad
patriknyblad / xcrun_simctl_cheatsheet.md
Last active September 10, 2025 15:53
iOS Simulator Terminal Commands `$ xcrun simctl`

Managing iOS Simulators

List all simulators created

$ xcrun simctl list --json

Delete old and unavailable simulators

$ xcrun simctl delete unavailable
@milanpanchal
milanpanchal / Xcode 12 Excluded Architectures for arm64
Created December 14, 2020 06:13
Xcode 12, building for iOS Simulator, but linking in object file built for iOS, file for architecture arm64
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end