This file contains 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 AVKit | |
class VideoPlayer { | |
// ... | |
func start() { | |
requestURLAsset(for: src, cookies: cookies, delegate: self) { [weak self] asset in |
This file contains 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
" Plugins management | |
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'dense-analysis/ale' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'autozimu/LanguageClient-neovim', { |
This file contains 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
# Summary | |
A few notes I took to see if I could use MacOS as Hypevirsor in a similar fashion to Linux | |
I wanted to see how few addons were needed instead of using Parallels, Virtual Box, VM Fsion etc. | |
The idea is to use QEMU, Hypervisor Framework (https://developer.apple.com/documentation/hypervisor) and some custom host networking. | |
# Installations | |
brew install qemu (For controlling Hypervisor Framework) | |
brew install cdrtools (For making cloud init iso's) | |
http://tuntaposx.sourceforge.net/download.xhtml (For customer tap based networking) |
This file contains 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
" Plugins setup ---------- {{{ | |
call plug#begin('~/.vim/plugged') | |
" Section: UI | |
" Description: In order to use devicons follow this documentation: | |
" https://github.com/ryanoasis/nerd-fonts#font-installation | |
" | |
Plug 'lucasprag/simpleblack' | |
Plug 'vim-airline/vim-airline' |
This file contains 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
tmp=$(mktemp) | |
{ | |
grep somedir INSTALLFILE | |
grep 'export PERL5LIB' INSTALLFILE | |
} > "$tmp" | |
. "$tmp" |
This file contains 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
infix operator >>->>: LogicalConjunctionPrecedence | |
typealias AsyncJob = (@escaping () -> Void) -> Void | |
func >>->>(lhs: @escaping AsyncJob, rhs: @escaping AsyncJob) -> AsyncJob { | |
return { completion in | |
lhs { | |
rhs(completion) | |
} | |
} | |
} |
This file contains 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/sh | |
# Pods enviroment | |
PROJECT_NAME=Pods | |
PODS_WORKSPACE=ios/Pods/Pods.xcodeproj | |
PODS_SCHEME=React | |
PODS_HEADERS=ios/Pods/Headers/Public | |
# Xcode build system enviroment | |
DERIVED_DATA_PATH=build/DerivedData |
This file contains 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
WORKSPACE="../RNBuild" | |
HEADERS_SRCROOT=${SRCROOT}/Headers/Public | |
HEADERS_TARGETDIR=${WORKSPACE}/Headers | |
TARGET_DIR=${WORKSPACE} | |
mkdir -p ${TARGET_DIR}/{Simulator,Device,Headers,Universal} | |
find ${BUILD_DIR}/Debug-iphoneos -type f \( -iname "*.a" ! -iname "libPods*.a" \) -exec cp "{}" ${TARGET_DIR}/Simulator \; | |
find ${BUILD_DIR}/Debug-iphonesimulator -type f \( -iname "*.a" ! -iname "libPods*.a" \) -exec cp "{}" ${TARGET_DIR}/Device \; |
This file contains 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
// Just add this two flags in Tulsi settings to make breakpoints work. | |
// Open Tulsi, select "Shared Options" tab and put the flags in "'build' options" section | |
--strategy=SwiftCompile=standalone --apple_generate_dsym |
![fig.png](https://gist.github.com/josuesasilva/8b6710b2481a90119c26570612a50239/raw/904a1fd860bfc426afd2d184f6c70829fcca5ed7/fig.png)
NewerOlder