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
(function( $ ) { | |
$.fn.randomise = function(options) { | |
var settings = $.extend({ | |
// Setting defaults | |
position: "absolute", | |
sizemin: 10, | |
sizemax: 64, | |
xmin: 0, | |
ymin: 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
$animation-width: 1024px | |
$animation-height: 768px | |
// Animation keyframes | |
@-webkit-keyframes fio | |
0%, 100% | |
opacity: 0.2 | |
-webkit-transform: scale(0.2, 0.2) | |
-webkit-filter: blur(3px) |
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
.validationclass | |
// add invalidated style here | |
display: none | |
& + input:focus | |
display: block | |
& + input:focus:required:valid | |
// add validated style | |
A dialog/modal service written in AngularJS, creates predefined easy to use dialogs (error,wait,notify,confirm,create) with Angular UI and Bootstrap 3
A Pen by Michael E Conroy on CodePen.
Forked from Katie Harron's Pen Simple ToDo app in Angularjs that saves to localstorage.
A Pen by Chris von Csefalvay on CodePen.
Local storage mechanism:
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
/(https://github.com/|git@github.com:)[a-zA-Z0-9_-]*/[a-zA-Z0-9_-]*.git/ |
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
# | |
# HERE BE DRAGONS. | |
# | |
# LIKE BADLY USED EXECS, STUPIDLY LONG LAMBDAS AND | |
# GENERALLY CRUDDY CODE. | |
# | |
# YOU'VE BEEN WARNED. | |
# | |
# . _///_, | |
# . / ` ' '> |
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
# Simple little suite for testing | |
test_stationarity <- function(Ts){ | |
# First, display ACF. | |
message("Rendering ACF. Does it look like a random walk to you?") | |
acf(Ts) | |
# Calculate Ljung-Box | |
box <- Box.test(Ts, lag = 3, type = "Ljung-Box") | |
message(sprintf("The Ljung-Box statistic was %f.", box$p.value)) |
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
# Commits self on sourcing/execution | |
# Worth appending to the end of some models... | |
execution_time <- format(Sys.time(), "%d%H%M%b%Y") | |
commit_string <- paste("Model family RF-1BB19C-", execution_time, " generated", sep="") | |
commit_cmd <- paste('git add --all && git commit -m "', commit_string, '" && git push origin master', sep="") | |
system(commit_cmd) |
OlderNewer