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
export interface StandardAction { | |
type: string; | |
payload?: any; | |
error?: any; | |
meta?: any; | |
} | |
export interface IDispatchStore { | |
handleDispatch: (action: StandardAction) => void; | |
dispatchToken: string; |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.900.v20180922-1751 | |
-product | |
org.eclipse.epp.package.java.product | |
-showsplash | |
org.eclipse.epp.package.common | |
--launcher.defaultAction | |
openFile |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834 | |
-data | |
@noDefault | |
--launcher.defaultAction | |
openFile | |
-vm | |
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin |
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 io.arleigh.reporting; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.file.FileSystems; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardWatchEventKinds; | |
import java.nio.file.WatchEvent; |
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 io.arleigh.reporting; | |
import java.awt.BorderLayout; | |
import java.lang.reflect.Field; | |
import java.util.Locale; | |
import java.util.ResourceBundle; | |
import javax.swing.JPanel; | |
import net.sf.jasperreports.engine.DefaultJasperReportsContext; | |
import net.sf.jasperreports.engine.JRReport; | |
import net.sf.jasperreports.engine.JasperReportsContext; |
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
-server | |
-Xms8192m | |
-Xmx8192m | |
-XX:+UnlockExperimentalVMOptions | |
-XX:+UseLargePages | |
-XX:+UseStringDeduplication | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+UseParallelOldGC | |
-XX:ParallelGCThreads=8 | |
-XX:+AggressiveOpts |
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
#!/bin/bash | |
# sudo apt-get install cpufrequtils | |
if [[ $EUID -ne 0 ]]; then | |
echo "sudo me" | |
exit 1 | |
fi | |
command -v cpufreq-info >/dev/null 2>&1 || { echo >&2 "cpufrequtils not found"; exit 1; } |
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
// ============================================================================ | |
// (adapted from https://github.com/tvcutsem/proxy-handlers) | |
// ============================================================================ | |
// (copied from reflect.js) | |
function isStandardAttribute(name) { | |
return /^(get|set|value|writable|enumerable|configurable)$/.test(name); | |
} | |
// Adapted from ES5 section 8.10.5 |
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
import { DelegatingHandler } from './proxy-handlers'; | |
import _ from 'lodash'; | |
function GhostObject<T>(thunk: () => T) { | |
// @ts-ignore | |
this.thunk = thunk; | |
// @ts-ignore | |
this.val = undefined; | |
} |
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
const caller = require('caller'); | |
const sqlString = require('sequelize/lib/sql-string'); | |
const _ = require('lodash'); | |
const fs = require('fs'); | |
const Path = require('path'); | |
function clean(sql) { | |
return _.chain(sql).trim().trim(';').trim() |