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
var tests = Object.keys(window.__karma__.files).filter(function (file) { | |
return /\.spec\.js$/.test(file); | |
}).map(function(file){ | |
return file.replace(/^\/base\/src\/js\/|\.js$/g,''); | |
}); | |
require.config({ | |
baseUrl: '/base/src/js', | |
paths: { | |
"lib":"../../target/js/lib" |
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
# Copyright (C) 2002-2003 David Abrahams. | |
# Copyright (C) 2002-2003 Vladimir Prus. | |
# Copyright (C) 2003,2007 Rene Rivera. | |
# Use, modification and distribution are subject to the | |
# Boost Software License, Version 1.0. (See accompanying file | |
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
# This is the initial file loaded by Boost Jam when run from any Boost library | |
# folder. It allows us to choose which Boost Build installation to use for | |
# building Boost libraries. Unless explicitly selected using a command-line |
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 | |
CMD=$(basename $0) # command used to call this script | |
CMD=$(type -a -p $CMD | sed -n 2p) #find the next highest priority | |
RUNNING=$(grep procs_running /proc/stat|cut -d " " -f 2) | |
BLOCKED=$(grep procs_blocked /proc/stat|cut -d " " -f 2) | |
PROCESSLIMIT=$(grep cpu /proc/stat | wc -l) | |
#Wait for running processes to die down |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script> | |
</head> | |
<body> | |
<div id="chart"> | |
</div> | |
<script type="text/javascript"> | |
var w = 960, |
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 _ from 'lodash'; | |
const events = Symbol('Events'); | |
export default class EventEmitter { | |
constructor() { | |
this[events] = {}; | |
} | |
on(event, fn) { | |
const listeners = this[events][event] = this[events][event] || []; |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
// I write for browser | |
"browser": true, | |
// in CommonJS | |
"node": true | |
}, | |
"plugins": [ | |
"react" |
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 foo; | |
import javax.mail.BodyPart; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.internet.MimeMessage; | |
import javax.mail.internet.MimeMultipart; | |
import java.nio.charset.StandardCharsets; | |
import org.apache.nifi.annotation.behavior.InputRequirement; | |
import org.apache.nifi.annotation.documentation.CapabilityDescription; |