Skip to content

Instantly share code, notes, and snippets.

View chrisvoncsefalvay's full-sized avatar
🥼
doing science & still alive ;)

Chris von Csefalvay chrisvoncsefalvay

🥼
doing science & still alive ;)
View GitHub Profile
@chrisvoncsefalvay
chrisvoncsefalvay / jQuery plugin to randomise font-size, posx and posy.
Last active August 29, 2015 13:57
Randomising font sizes and positions
(function( $ ) {
$.fn.randomise = function(options) {
var settings = $.extend({
// Setting defaults
position: "absolute",
sizemin: 10,
sizemax: 64,
xmin: 0,
ymin: 0,
@chrisvoncsefalvay
chrisvoncsefalvay / Fade-blur focus Sass
Last active August 29, 2015 13:57
Fade/blur focus animation
$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)
.validationclass
// add invalidated style here
display: none
& + input:focus
display: block
& + input:focus:required:valid
// add validated style
@chrisvoncsefalvay
chrisvoncsefalvay / Gradients.markdown
Created April 29, 2014 17:54
Angled diffuse gradients via Sass
@chrisvoncsefalvay
chrisvoncsefalvay / AngularJS-BootStrap-3-Modal-Dialogs.markdown
Created April 29, 2014 17:59
AngularJS based Bootstrap modal dialogs

AngularJS BootStrap 3 Modal Dialogs

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.

License.

@chrisvoncsefalvay
chrisvoncsefalvay / Regex
Created May 18, 2014 14:15
Regex validator for GitHub repo addresses
/(https://github.com/|git@github.com:)[a-zA-Z0-9_-]*/[a-zA-Z0-9_-]*.git/
@chrisvoncsefalvay
chrisvoncsefalvay / dragons
Created July 20, 2014 21:37
Here be dragons
#
# HERE BE DRAGONS.
#
# LIKE BADLY USED EXECS, STUPIDLY LONG LAMBDAS AND
# GENERALLY CRUDDY CODE.
#
# YOU'VE BEEN WARNED.
#
# . _///_,
# . / ` ' '>
# 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))
# 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)