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.
This is a comparison of the different formatting styles including with clang-format.
Generated via:
styles=( LLVM Google Chromium Mozilla WebKit )
for style in $styles
do
clang-format -style=$style ChLcpIterativeAPGD.h > ChLcpIterativeAPGD.$style.h
done
// :copyright: (c) 2014-2016 Mathias Panzenböck | |
// :license: Public Domain/MIT, see licenses/MIT.txt for more details. | |
// :modified: Alex Huszagh, 2016. Added Windows-specific pre-processor definitions and byte-swap algorithms. | |
/** Endian utilties for determining and swapping byte order in | |
* applications. | |
*/ | |
#include <algorithm> | |
#pragma once |
# this file contains keys needed for decryption of file system data (WUD/WUX) | |
# 1 key per line, any text after a '#' character is considered a comment | |
# the emulator will automatically pick the right key | |
541b9889519b27d363cd21604b97c67a # example key (can be deleted) | |
d7b00402659ba2abd2cb0db27fa2b656 # Common | |
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast | |
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast | |
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS] |
#include <qubit/platform/platform.h> | |
#include <qubit/platform/platform_winapi.h> | |
#include <stdbool.h> | |
#include <windows.h> | |
#include <glad/wgl.h> | |
#include <qubit/qubit.h> |
// Sample code showing how to create a modern OpenGL window and rendering context on Win32. | |
#include <windows.h> | |
#include <gl/gl.h> | |
#include <stdbool.h> | |
typedef HGLRC WINAPI wglCreateContextAttribsARB_type(HDC hdc, HGLRC hShareContext, | |
const int *attribList); | |
wglCreateContextAttribsARB_type *wglCreateContextAttribsARB; |
#!/usr/bin/env python | |
""" | |
- ae(v): context-adaptive arithmetic entropy-coded syntax element. The parsing process for this descriptor is | |
specified in clause 9.3. | |
- b(8): byte having any pattern of bit string (8 bits). The parsing process | |
for this descriptor is specified by the return value of the function | |
read_bits( 8 ). | |
- f(n): fixed-pattern bit string using n bits written (from left to right) |
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
NSApplication.shared.run { | |
VStack { | |
Text("Hello, World") | |
.padding() | |
.background(Capsule().fill(Color.blue)) |
vec4 pack (float depth) | |
{ | |
const vec4 bitSh = vec4(256 * 256 * 256, | |
256 * 256, | |
256, | |
1.0); | |
const vec4 bitMsk = vec4(0, | |
1.0 / 256.0, | |
1.0 / 256.0, | |
1.0 / 256.0); |