Skip to content

Instantly share code, notes, and snippets.

View uyjulian's full-sized avatar

Julian Uy uyjulian

View GitHub Profile

Cross Compiling LuaJIT without needing host GCC

git clone https://github.com/openresty/luajit2.git
cd luajit2
make HOST_CC=i686-w64-mingw32-gcc CROSS=i686-w64-mingw32- TARGET_SYS=Windows MINILUA_T=host/minilua.exe BUILDVM_T=host/buildvm.exe MINILUA_X="wine host/minilua.exe" BUILDVM_X="wine host/buildvm.exe"
undefined reference to `TJS::TJSAddRefMessageMapper()'
undefined reference to `TJS::TJSAddRefObjectHashMap()'
undefined reference to `TJS::TJSAlignedAlloc(unsigned int, unsigned int)'
undefined reference to `TJS::TJSAlignedDealloc(void*)'
undefined reference to `TJS::TJSAllocVariantOctet(TJS::tTJSVariantOctet const*, TJS::tTJSVariantOctet const*)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const**)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const*, unsigned int)'
undefined reference to `TJS::TJSAllocVariantOctet(unsigned char const*, unsigned int, unsigned char const*, unsigned int)'
undefined reference to `TJS::TJSAllocVariantString(char const*)'
undefined reference to `TJS::TJSAllocVariantString(unsigned char const**)'
tjs.h
tjsArray.h
tjsCommHead.h
tjsConfig.h
tjsDebug.h
tjsDictionary.h
tjsError.h
tjsErrorDefs.h
tjsGlobalStringMap.h
tjsHashSearch.h
/*
Hello World example made by Aurelio Mannara for ctrulib
This code was modified for the last time on: 12/13/2014 01:00 UTC+1
This wouldn't be possible without the amazing work done by:
-Smealum
-fincs
-WinterMute
-yellows8
-plutoo
/* Copyright (c) 2013 Jean-Marc Valin */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <3ds.h>
#include <opus.h>
#define FRAME_SIZE 960
//32730
#define SAMPLE_RATE 48000
#define MICBUF_SIZE 0x30000
fu = require"file_util"
struct = require"struct"
ffi = require"ffi"
bit = require"bit"
s = fu.readfile(arg[1])
b = 1
const wordSearchSolver = require('word-search-solver');
const matrix = [
['D','O','G','N','I','K','A','M','N','S','D','E','E','E','M','E'],
['E','C','S','O','U','T','H','W','E','S','T','S','R','P','T','A'],
['I','G','L','R','J','U','N','G','L','X','S','K','I','O','S','S'],
['W','I','N','T','E','R','A','T','S','A','I','I','V','R','E','R'],
['I','S','N','H','W','O','A','D','A','N','A','C','E','U','R','E'],
['U','P','O','U','N','C','O','L','D','I','L','L','O','E','O','G'],
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using System;
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
public class UyjOnUpdate : UdonSharpBehaviour
{
private Transform orb_container_root;
find . -iname \*.html -print0 | parallel -0 --nice 19 tidy -raw -asxhtml -latin1 -clean {} \| sed -e "'"'s/&nbsp;/ /g'"'" -e "'"'s/views:=""/ /g'"'" -e "'"'s/size:=""/ /g'"'" \| tr -cd "'"'\11\12\15\40-\176'"'" \> {.}.xhtml
sed -e 's/\.html/.xhtml/g' < index.xhtml > index_.xhtml
find . -iname \*.xhtml -exec python3 -c "from lxml import etree"$'\n'"import sys"$'\n'"etree.parse(open(sys.argv[1], 'rb'), etree.HTMLParser(recover=False))" {} \;