This file contains hidden or 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 <Foundation/Foundation.h> | |
#import <mach/mach.h> | |
#import <stdio.h> | |
#import <stdlib.h> | |
#import <string.h> | |
#include <libkern/OSCacheControl.h> | |
const int REGION_SIZE = 0x4000*1; | |
void write_instructions(void* page) |
This file contains hidden or 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
use num_derive::{FromPrimitive, ToPrimitive}; | |
use num_traits::{FromPrimitive, ToPrimitive}; | |
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)] | |
#[allow(non_camel_case_types)] | |
#[repr(u16)] | |
enum SyntaxKind { | |
L_PAREN = 0, // '(' | |
R_PAREN, // ')' | |
ATOM, // '+', '15' |
This file contains hidden or 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
DATABASE_URL=postgres://saleor:password@db/saleor | |
DEFAULT_FROM_EMAIL=[email protected] | |
CELERY_BROKER_URL=redis://redis:6379/1 | |
JAEGER_AGENT_HOST=jaeger | |
SECRET_KEY=secret_key | |
API_URI=https://saleor-api.domain.com/graphql/ | |
ALLOWED_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com | |
ALLOWED_CLIENT_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com |
This file contains hidden or 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
0: APCOORDT | |
1: IF_BUTTON8 | |
2: IF_BUTTOND | |
3: CLAN_JOINCHAT_LEAVECHAT | |
4: OPNPC3 | |
5: OPLOC4 | |
6: IF_PLAYER | |
7: RESUME_P_STRINGDIALOG | |
8: OPLOCT | |
9: WINDOW_STATUS |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm install
npm start
- Open
http://localhost:8080
- Look at console
This file contains hidden or 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
# BUILDING BOOST FOR EMSCRIPTEN... | |
# REFERENCE: http://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html | |
# TESTED WITH: BOOST 1.53 ON OSX 10.10 | |
# DEPENDS ON: MODIFIED user-config.jam | |
# REQUIRED FOR iostreams | |
# REFERENCE: http://www.boost.org/doc/libs/1_58_0/libs/iostreams/doc/installation.html#bjam | |
cd $EMSCRIPTEN_PATH; ./embuilder.py build zlib | |
export NO_BZIP2=1 |
First we need to create a certificate. The llvm provided a way to do
that, but I found this
way to work slightly better for me. Just substitute
lldb_codesign
for the certificate name, instead of gdb-cert
.