Skip to content

Instantly share code, notes, and snippets.

Viliam Elischer vire

Block or report user

Report or block vire

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
seanorama /
Last active Aug 29, 2015
Fixes for Debian & LMDE

Various fixes for Debian or LMDE (Linux Mint Debian Edition) running on Dell Ultrabooks (Latitude E7440 in my case) and possibly other systems.

  • Problem: Random, crazy/erratic mouse behavior. Pointer flies all over and crazy clicks which mess with or close applications.

    • Logs show things like:
    [ 9719.613110] psmouse serio1: GlidePoint at isa0060/serio1/input0 - driver resynced.
novoj /
Created Dec 10, 2012
Monte Carlo test for testing different strategies for guessing game. You have three doors and only one is winning one. You make your choice, and then moderator opens some other door showing you that this doors don't win. He then offers you to change your guess. Will you have bigger chance to win when you change your mind or not?
import java.util.Random;
public class MonteCarlo {
private enum Choice {
private static int ITERATIONS = 1000000;
private static final Random randomGenerator = new Random();
private static GuessStrategy stayStrategy = new StayStrategy();
View webdriverjs.with.jasmine.spec.js
var webdriverjs = require('webdriverjs');
describe('my webdriverjs tests', function() {
var client = {};
beforeEach(function() {
client = webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'} });



Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
         xAxis:{type:'Category',field: "Month",orderRule:'Date'},
mpj /
Last active Apr 28, 2016
REALLY quick and dirty static file dev server


node dirtyserve.js

The point your browser to


and the server will try to serve that file from the local server.

dmitriz / backbone-app-tutorial.html
Last active Aug 29, 2016
Backbone App: Beginner Tutorial
View backbone-app-tutorial.html
Web Application with Backbone: BEGINNER TUTORIAL
Backbone.js is a very popular and light(weight) JavaScript library
for building Web Applications.
However, learning it I found frustratingly few simple examples of
true workable applications with all lines of code explained.
Here is my attempt to hack the popular Jerome Gravel-Niquet's Backbone Todo App
View user.keymap.clj
[:app "cmd-t"]
[:app "cmd-shift-f"]
[:app "cmd-shift-k" :clear-console]
[:app "cmd-shift-s" :save-all]
[:app "cmd-ctrl-f" :window.fullscreen]
[:app "cmd-k" :toggle-console]
[:app "tab" :focus-last-editor]
[:workspace.focused "enter" :lt.plugins.workspace-nav/open-selection]
j1r1k / functionalLenses.js
Created Mar 8, 2018
Code from a ngParty talk @ 7th Mar 2018
View functionalLenses.js
const R = require("ramda");
const data = {
title: "Intro to functional lenses",
author: {
name: "Jiri Marsicek",
email: "",
position: {
name: "Software Engineer",
machty /
Last active May 2, 2018
How to do cool stuff with the new Router API
MoOx / .flowconfig
Last active Jul 12, 2018
flow config webpack adjustements to avoid the "Required module not found" for png, css, svg etcc
View .flowconfig
# ...
# webpack loaders
module.name_mapper='.*\.css$' -> '<PROJECT_ROOT>/flow/stub/css-modules.js'
module.name_mapper='.*\.\(svg\|png\|jpg\|gif\)$' -> '<PROJECT_ROOT>/flow/stub/url-loader.js'
You can’t perform that action at this time.