Skip to content

Instantly share code, notes, and snippets.

@Roman-Port
Roman-Port / main.md
Created September 5, 2021 20:45
Using Emscripten with Visual Studio 2019

Hello! This guide will show you how to set up CMake projects in Visual Studio 2019 to use Emscripten. This guide is mostly for me to set this up again, but it'll hopefully be useful for someone else.

This guide assumes you've already installed and set up Emscripten but just want to use it with Visual Studio 2019.

Applying Settings

After you've created your CMake project, right click CMakeLists.txt in Visual Studio and click "CMake Settings For...". You'll get a new editor tab.

In this tab, locate the "CMake toolchain file" and set the path to the following, replacing EM_PATH with the path to the SDK:

@binji
binji / LICENSE
Last active May 27, 2024 00:44
pokegb.cc w/o macros
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
@artizirk
artizirk / nginx.conf
Created February 15, 2019 15:12
Minimal nginx webdav server
worker_processes 1;
error_log stderr;
daemon off;
pid /tmp/nginx/nginx.pid;
load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so;
events {
worker_connections 1024;
}
@wizioo
wizioo / gitignore_per_git_branch.md
Last active June 25, 2024 15:18
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.

@HaiyangXu
HaiyangXu / Server.py
Created May 18, 2014 14:00
A simper python http server can handle mime type properly
# -*- coding: utf-8 -*-
#test on python 3.4 ,python of lower version has different module organization.
import http.server
from http.server import HTTPServer, BaseHTTPRequestHandler
import socketserver
PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler
@jonpryor
jonpryor / output.txt
Created May 8, 2014 19:48
Demonstrate bash dynamic scoping
start: str=begin
inner: str=outer
end: str=begin