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
| package = "LuaCOM" | |
| version = "scm.moteus-1" | |
| source = { | |
| url = "https://github.com/moteus/luacom/archive/master.zip", | |
| dir = "luacom-master", | |
| } | |
| description = { | |
| summary = "Use COM libraries from Lua", | |
| detailed = [[ | |
| LuaCOM is an add-on library to the Lua language that allows Lua programs to use and implement objects that follow Microsoft's Component Object Model (COM) specification and use the ActiveX technology for property access and method calls. ]], |
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
| -- Monte Carlo Simulation of state machine in paper | |
| -- Make one attempt to reach state 1000, fail at zero | |
| function attempt (p) | |
| local state = 2 | |
| local ups = 1 | |
| while state > 0 do | |
| if state > 1000 then | |
| -- attempt succeeded |
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
| @echo off& setlocal& set x86=& set w32=system32 | |
| rem http://paulhoule.com/msvc14/copymsvc14.bat May 28, 2016 | |
| if "%~1"=="" echo Copies minimal files to run CL 14.0 (32 and 64 bit) | |
| if "%~1"=="" echo First arg must be target directory& goto :eof | |
| if exist "c:\Program Files (x86)\." set "x86= (x86)"& set w32=syswow64 | |
| rem set vs1=c:\Program Files%x86%\Microsoft Visual Studio 14.0 | |
| set vs1=c:\Program Files%x86%\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.10.24930 | |
| set vs2=c:\Program Files%x86%\Windows Kits\10 | |
| set vs3=c:\Program Files%x86%\Windows Kits\8.1 |
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
| local seq = require 'pl.seq' | |
| local function bench (n, func, ...) | |
| assert (n > 0) | |
| assert (type(func) == 'function') | |
| local start = os.clock () | |
| if n % 2 == 1 then | |
| func (...) | |
| n = n - 1 |
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
| local dump = require 'pl.pretty'.dump | |
| local function printboard(board) | |
| if not board then return end | |
| local n = #board | |
| io.stdout:write ("\n", (" -"):rep(n), "\n") | |
| for i = 1, n do | |
| io.stdout:write "|" | |
| for j = 1, n do | |
| io.stdout:write(board[j][i] and "Q" or " ", "|") |
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
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| #define Describe(unitgroup) \ | |
| struct unitgroup; \ | |
| register_harness<unitgroup> unitgroup ## _registered; \ | |
| struct unitgroup : public testharness<unitgroup> \ |
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
| --[[ | |
| Simple arithmetic expression parser | |
| using LPeg's re module | |
| --]] | |
| require 'table.clear' -- luajit extension | |
| local dprint = dbg and print or function() end | |
| local dump = require 'pl.pretty'.dump | |
| local re = require 're' | |
| re.updatelocale() |
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
| LIBRARY MKL_RT.DLL | |
| EXPORTS | |
| _CAXPBY = CAXPBY | |
| _CAXPY = CAXPY | |
| _CAXPYI = CAXPYI | |
| _CBBCSD = CBBCSD | |
| _CBDSQR = CBDSQR | |
| _CCOPY = CCOPY | |
| _CDOTC = CDOTC |
NewerOlder