Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
EVS="sched_switch
sched_waking
sched_migrate_task
sched_process_free
sched_process_exit
sched_wait_task
sched_process_wait
sched_process_fork
<h3 id="astarev_header"><a href="#">A* EV</a></h3>
<div id="astarev_section" class="finder_section">
<header class="option_header">
<h3>Heuristic</h3>
</header>
<div id="astarev_heuristic" class="sub_options">
<input type="radio" name="astar_heuristic" value="manhattan" checked />
<label class="option_label">Manhattan</label> <br>
<input type="radio" name="astar_heuristic" value="euclidean"/>
<label class="option_label">Euclidean</label> <br>
@giraldeau
giraldeau / engine_config.hpp
Created May 6, 2016 16:49
Fix engine_config.hpp include for external program
diff --git a/include/engine/engine_config.hpp b/include/engine/engine_config.hpp
index eb62719..1696876 100644
--- a/include/engine/engine_config.hpp
+++ b/include/engine/engine_config.hpp
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ENGINE_CONFIG_HPP
#define ENGINE_CONFIG_HPP
-#include "storage/storage_config.hpp"
+#include "../storage/storage_config.hpp"
@Test
public void readBundleResource() throws IOException {
Bundle bundle = CTestPlugin.getDefault().getBundle();
URL entry = bundle.getEntry("resources/elf/build.log");
URL resource = bundle.getResource("resources/elf/build.log");
System.out.println(entry);
System.out.println(resource);
try (InputStream s1 = entry.openStream()) {
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
!SESSION 2016-01-06 12:23:37.998 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_66-internal
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
Framework arguments: -version 3 -port 38628 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -test org.eclipse.cdt.core.model.tests.BinaryTests:testFoo -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.sdk.ide -testpluginname org.eclipse.cdt.core.tests
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -consolelog -version 3 -port 38628 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -test org.eclipse.cdt.core.model.tests.BinaryTests:testFoo -application org.eclipse.pde.junit.runtime.uitestapplicat
@giraldeau
giraldeau / events-lttng=2.7-linux=4.2.json
Last active November 17, 2015 01:37
output for lttng 2.7 and linux 4.2
{
"linux": {
"sysname": "Linux",
"nodename": "berta",
"release": "4.2.0-18-generic",
"version": "#22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015",
"machine": "x86_64",
"domainname": "(none)"
},
"lttng": {
console.log("loading...")
var OSRM = require('osrm');
var osrm = new OSRM("geofabrik/canada-latest.osrm");
console.log("begin")
var coord = [];
coord.push([45.5370569, -73.5708777]);
coord.push([46.0243857, -73.439845]);
#define __kernel
#define __global
void saxpy_cpu(float *y,
float *x,
float a,
int n)
{
for (int i = 0; i < n; i++) {
y[i] = a * x[i] + y[i];
#!/usr/bin/env python3
import os
import sys
import babeltrace.reader
import babeltrace.common
import pprint
import shutil
from os.path import join, dirname, abspath
int do_syscall_read_long(void *args)
{
FILE *f = args;
int i;
long val;
for (i = 0; i < (PAGE_SIZE / sizeof(val)); i++) {
val = 0;
int ret = read(f->_fileno, &val, sizeof(val));