Skip to content

Instantly share code, notes, and snippets.

View tommyZZM's full-sized avatar
😉
zzz...

tommyZZM

😉
zzz...
View GitHub Profile
@tommyZZM
tommyZZM / README.md
Last active July 16, 2022 22:43
Enlisted\userGameMods\normandy_city_dom\scene.blk

base on normandy_city_dom.blk

simply add custom_bot_profile with lb_event_bots_profile at line 23

@tommyZZM
tommyZZM / extract-gzip.js
Last active May 25, 2020 04:42
anydeps/lib/pipeline
import path from "path"
import through2 from "through2"
import merge2 from "merge2"
import tars from "tar-stream"
import Vinyl from "vinyl"
import source from "vinyl-source-stream"
import streamToPromise from "stream-to-promise"
import combine from "stream-combiner"
@tommyZZM
tommyZZM / extract.js
Created May 25, 2020 04:31
anydeps/lib/pipeline
import path from "path"
import through2 from "through2"
import merge2 from "merge2"
import tars from "tar-stream"
import gunzip from "../utils/gunzip-maybe.js"
import Vinyl from "vinyl"
import source from "vinyl-source-stream"
import unzipper from "unzipper"
import streamToPromise from "stream-to-promise"
import combine from "stream-combiner"
@tommyZZM
tommyZZM / example.shell.txt
Created October 12, 2019 09:34
build c/c++ file from pipe and out put to pip
cat foo.c | gcc -x c++ - -o /dev/stdout | cat >> foo
@tommyZZM
tommyZZM / main.mm
Last active December 9, 2017 10:38
bgfx-most-smiple-blank-example-osx
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>
#include <uv.h>
bool _is_running;
int32_t m_style;
NSWindow* window;
uv_thread_t _render_thread;
@tommyZZM
tommyZZM / ref_node_modules_builtin.js
Last active October 7, 2017 07:00
embeding node.js as static librarary with loading builtin modules
#ifndef ref_node_modules_builtin
#define ref_node_modules_builtin
#include <node.h>
extern "C" {
void _register_async_wrap(void);
void _register_cares_wrap(void);
void _register_fs_event_wrap(void);
void _register_js_stream(void);
@tommyZZM
tommyZZM / .bashrc
Last active January 28, 2017 02:14
bashrc
### globals
export NVM_DIR="$HOME/.nvm"
export NVM_NODEJS_ORG_MIRROR=http://nodejs.org/dist
export USER_ID="tommyZZM.OSX"
export PATH=~/.bin:~/.go/bin:$PATH
#export PATH=~/.nvm/versions/node/v7.4.0/bin:$PATH
NVM_NODE_DEFAULT=~/.nvm/versions/node/$(cat "$NVM_DIR/alias/default")/bin
export PATH=$NVM_NODE_DEFAULT:$PATH
@tommyZZM
tommyZZM / .gulp-scaffold.md
Last active December 23, 2019 06:54
gulp-browserify

gulp base project scaffold files