cpufreq-set -d 0.8GHz -u 3.5GHz -g powersave --cpu 0
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
Ubuntu 14.04: | |
/etc/udev/rules.d/52-futronic.rules | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1491", MODE="0666", GROUP="plugdev" |
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
http://stackoverflow.com/a/11631563/2772979 | |
<h:commandButton value="Open in new Window" onclick="this.form.target='_blank'" /> |
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 com.cpox.model.partner.Partner; | |
import net.bytebuddy.ByteBuddy; | |
import net.bytebuddy.implementation.FieldAccessor; | |
import net.bytebuddy.implementation.InvocationHandlerAdapter; | |
import net.bytebuddy.implementation.MethodDelegation; | |
import org.junit.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.lang.reflect.InvocationHandler; |
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
@Resource | |
TransactionSynchronizationRegistry tsr; | |
public String startActivity(@Nonnull final PolicyActivity activity) { | |
LOG.debug("em: {}, tsr: {} {}", em, tsr.getTransactionStatus(), tsr.getTransactionKey()); |
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
update UserAccount set uuid = unhex(replace(uuid(),'-','')); |
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
http://nrvale0.github.io/posts/adjusting-thinkpad-trackpoint-sensitivity-on-ubuntu-1604-and-others/ |
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
v <- rnorm(nrow(bars)) | |
microbenchmark( | |
xts_direct = { | |
bars2 <- bars | |
bars2$col1 <- v | |
bars2$col2 <- v | |
bars2$col3 <- v | |
bars2$col4 <- v | |
bars2$col5 <- v |
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
val point = doubleArrayOf(1.0, 2.0) | |
val function = object : MultivariateFunction { | |
private var eval = 0 | |
// noise | |
private val random = Random() | |
override fun value(point: DoubleArray?): Double { |