Skip to content

Instantly share code, notes, and snippets.

@mliszcz
mliszcz / README.md
Last active July 22, 2019 11:11
Tango benchmark setup instructions

Tango Controls benchmark suite

https://github.com/tango-controls/sys-tango-benchmark

Quick launch steps

  1. setup the server machine (see setup-server.sh),
  2. setup the client machine (see setup-client.sh),
  3. update server's host in tango-benchmarks.yml,
  4. on the server machine:
@mliszcz
mliszcz / blank-file
Last active November 14, 2016 20:43
tangojs kukdm poster
.
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.List;
import java.util.ArrayList;
import java.util.stream.Stream;
import java.util.stream.Collectors;
class Executor extends Thread {
List<P2> generateP2(Production root, int depth) {
@mliszcz
mliszcz / .gitignore
Last active January 6, 2016 16:29
CAD
bin/
lab*/
@mliszcz
mliszcz / notatki01.md
Last active October 13, 2015 16:03
SE2015

prolog

swi prolog 7.x +

hipoteza - zwierze jest

fakt posredni - jest to ssak

symptom - ma siersc

@mliszcz
mliszcz / firefox-html-imports-patch.js
Last active January 7, 2016 21:30
Firefox-specific patch for HTMLImports polyfill.
/**
* HTML Imports implementation seems to be broken in Firefox.
* Enabling dom.webcomponents.enabled adds `import` attribute
* to the HTMLLinkElement. This makes HTMLImports polyfill to
* fall-back to native implementation.
* This patch intercepts `document.createElement()` call from
* the polyfill, thus needs to be loaded before HTMLImports.js.
* @see https://github.com/webcomponents/webcomponentsjs/issues/289
* @author mliszcz<liszcz.michal@gmail.com>
@mliszcz
mliszcz / .gitignore
Last active October 3, 2015 12:34
tangojs-demo
node_modules/
@mliszcz
mliszcz / es6-umd-test.tar.gz
Last active September 17, 2015 15:00
umd mods
es6-umd-test/0000775000175000017500000000000012576552104012600 5ustar michalmichales6-umd-test/gulpfile.js0000664000175000017500000000215712576551652014761 0ustar michalmichal
app = angular.module 'tool'
app.controller 'dynamicFormsUpdateController', ($scope, $modalInstance, $q, _,
SchemaResolver, regularFormFilter, model, schema, resource, name, fields) ->
# NOTE
# angular-schema-form 0.8.3 contains bug realted to selects without trackBy
# https://github.com/Textalk/angular-schema-form/pull/418
# trackBy support was reverted in 0.8.4
# we will stick to the 0.8.3 til trackBy comes back
@mliszcz
mliszcz / benchmark_zad1.py
Last active August 29, 2015 14:17
tpr lab01
#!/usr/bin/env python
import subprocess
comm_type = 0 # synchronous (SSend)
# comm_type = 1 # buffered (BSend)
payload = 1 # just one byte for latency tests
pings = 20000 # each node sends 10k messages