Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
// Windows 10 の Windows.Media.SpeechRecognition で連続音声認識をします。 | |
// 標準的な使い方では、音声認識が不定期に動作しなくなることが知られていますが、 | |
// https://social.msdn.microsoft.com/Forums/en-US/5afbf9fa-d660-4a7d-b24e-e9e673282244/uwpccontinuous-speech-recognition-is-not-continuous-it-stops-randomly?forum=wpdevelop | |
// https://social.msdn.microsoft.com/Forums/windowsapps/en-US/1af5f3d1-d5b2-4a0c-956c-53f550e8f1d1/uwpdesktop-bridgesend-speech-recognition-argsresult-as-parameter-in-uwp-desktopbridge-package?forum=wpdevelop#96188ce3-47bd-4537-b1af-fb4c6a362c84 | |
// それを回避しています。 | |
// | |
// ビルドするためには | |
// [参照]で右クリック > NuGetパッケージの管理 > 右上の歯車マーク(設定)で右クリック > | |
// NuGet パッケージマネージャー > 全般 > 既定のパッケージの管理 を PackageReference に | |
// に変更してから、プレスリリース版を含める、にチェックを入れ、Microsoft.Windows.SDK.Contracts を検索して追加してください。 |
const {text} = activeEditor.document.lineAt(activeEditor.selection.active.line); |
import PlaygroundSupport | |
import Foundation | |
import UIKit | |
Bundle(path: "/System/Library/PrivateFrameworks/DrawingKit.framework")?.load() | |
let DKInkView = NSClassFromString("DKInkView") as! UIView.Type | |
extension UIView { | |
func newGPUAvailable() -> Bool { |
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
int main(int argc, char * argv[]) | |
{ | |
@autoreleasepool { | |
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"UIDisableLegacyTextView"]; | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); |
@import AVFoundation; | |
#import "ViewController.h" | |
@interface ViewController () | |
@property (nonatomic)AVCaptureSession *session; | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad |
#!/usr/bin/env python | |
# coding: UTF-8 | |
import socket | |
import struct | |
DEBUG = True | |
DEBUG2 = False | |
PTP_OC_GetDeviceInfo = 0x1001 |
/* | |
RICOH THETA remote shutter for node.js | |
coded by @kioku_systemk | |
code license is public domain. | |
this code is referenced from @MobileHackerz and @GOROman | |
https://gist.github.com/GOROman/7596186 | |
*/ | |
var net = require('net'); |
#!ruby | |
# | |
# THETAのシャッターをPCから遠隔で切るだけの例 by GOROman | |
# | |
# 参考にしたページ | |
# http://mobilehackerz.jp/contents/Review/RICOH_THETA | |
require 'socket' |
var Pebble = new (function(){ | |
var dispatchTable = {}; | |
this.addEventListener = function(eventName, delegate) { | |
if (!(eventName in dispatchTable)) dispatchTable[eventName] = []; | |
dispatchTable[eventName].push(delegate); | |
} | |
this.dispatchEvent = function(event) { |