Skip to content

Instantly share code, notes, and snippets.

View tomitrescak's full-sized avatar
🏠
Working from home

Tomas Trescak tomitrescak

🏠
Working from home
View GitHub Profile
@tomitrescak
tomitrescak / cloudSettings
Last active August 5, 2018 08:35
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-07-18T07:37:07.603Z","extensionVersion":"v3.0.0"}
@tomitrescak
tomitrescak / index.pl
Created October 10, 2017 11:04
Synology - Auto Index support
#!/usr/bin/perl
#
# Alternative Syno Indexer
# ASI
# release 1
#
# This script will smartly update Media Index on your Synology appliance
# You can create 'noindex' file under scan directory to skip subdir indexing
# Works on DSM 6+
//===========================================================================
//
// Parsing Expression Grammar of Java 1.7 for Mouse 1.1 - 1.6.
// Based on Java Language Specification, Java SE 7 Edition, dated 2012-07-27,
// obtained from http://docs.oracle.com/javase/specs/jls/se7/html/index.html.
//
//---------------------------------------------------------------------------
//
// Copyright (C) 2006, 2009, 2010, 2011, 2013
{
"scripts": {
"start": "node ./server.js | node ./fuse.js"
},
}
const express = require('express');
const app = express();
const historyAPIFallback = require('connect-history-api-fallback');
const SnapHandler = require('luis').handler;
app.use('/snapshot', SnapHandler);
app.use(historyAPIFallback());
// make sure that server.js is in your project root
app.use(express.static('louis'));
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LUIS - A list of UIS</title>
</head>
<body>
const fsbx = require("fuse-box");
// this plugin allows us to stub module references
// please see: https://github.com/tomitrescak/proxyrequire
const StubPlugin = require('proxyrequire').FuseBoxStubPlugin(/\.ts(x)?/);
fsbx.FuseBox.init({
homeDir: "src",
tsConfig : "tsconfig.json",
log: false,
sourceMap: {
describe('User', () => {
describe('Profile', () => {
decorator((story) => (
<ContextProvider>
{ story() }
</ContextProvider>
));
story('Default', () => {
@tomitrescak
tomitrescak / log.txt
Created February 8, 2017 22:56
Wallaby Performance
[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Running postprocessor
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:testTask Test files from affected: 0, from deleted or manually requested: 1, from recently changed: 0, from loaded by: 0, from failing: 0
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/accounts.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/apollo.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/caches.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/config.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/context.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/i18n.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing
@tomitrescak
tomitrescak / log.txt
Created February 8, 2017 08:13
Wallaby Problem
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Running postprocessor
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:18 GMT wallaby:testTask Test files from affected: 0, from deleted or manually requested: 1, from recently changed: 0, from loaded by: 0, from failing: 0
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/accounts.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/apollo.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/caches.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/config.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/context.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/i18n.js
​​​​​[Info]​​​​​ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Prep