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
#!/usr/bin/env python3 | |
import glob, os, sys | |
from collections import Counter | |
# It is necessary to pass a directory in which we want to look for a ruby version. | |
if len(sys.argv) < 2: | |
sys.exit("usage: %s dir \n\n dir : Direcotry to look up for ruby version" % sys.argv[0]) | |
# Validate the specified directory. | |
path_argument = sys.argv[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
const images = require.context('../images') | |
const state = { | |
images: images.keys().map(function(name) { | |
return({ | |
name: name, | |
path: images(name,true) | |
}) | |
}) | |
} |
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
$("tbody tr").each(function() {$(this).find("input[type=radio]")[Math.floor(Math.random()*4)].click()}); $("input[type=submit]").click(); |
I hereby claim:
- I am gurix on github.
- I am gurix (https://keybase.io/gurix) on keybase.
- I have a public key ASBHKsemKRaojcS4rRd0o0sAt5MQmkfXVctr_YVVXCDS3wo
To claim this, I am signing this object:
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
<speak> | |
<amazon:auto-breaths volume="x-loud" frequency="x-high">The following sequence shows the keyboard only navigation through the homepage of easygov from top to bottom. To do that, i am using the tabulator key. As you can see, the element that has the focus is sometimes highlighted with a light blue border.</amazon:auto-breaths></speak> |
The following worklow based on the official documentation from pandoc https://pandoc.org/installing.html#quick-stack-method
Stack is not installed on ueberspace 6 by default. So we have to do install it manually.
- Download the release
Linux 64-bit, static
mannually according https://docs.haskellstack.org/en/stable/install_and_upgrade/#linux with the commandwget https://www.stackage.org/stack/linux-x86_64-static
- It is a tar archive, but it does not save it with the correct suffix. However we cann extract the archive using
tar -xzf linux-x86_64-static
- Copy the stack binary into your home binary folder
cp stack-1.6.3-linux-x86_64-static/stack ~/bin/
- Download the pandoc source
wget https://hackage.haskell.org/package/pandoc-1.17.0.3/pandoc-1.17.0.3.tar.gz
- Extract the archive
tar xvzf pandoc-1.17.0.3.tar.gz
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
module Randomizable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def random(n = 1) | |
indexes = (0..count - 1).sort_by { rand }.slice(0, n).collect! | |
return skip(indexes.first).first if n == 1 | |
indexes.map { |index| skip(index).first } | |
end |
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
"alpha" <- function(x,keys=NULL,cumulative=FALSE,title=NULL,max=10,na.rm=TRUE,check.keys=FALSE,n.iter=1,delete=TRUE,use="pairwise") { #find coefficient alpha given a data frame or a matrix | |
alpha.1 <- function(C,R) { | |
n <- dim(C)[2] | |
alpha.raw <- (1- tr(C)/sum(C))*(n/(n-1)) | |
alpha.std <- (1- n/sum(R))*(n/(n-1)) | |
smc.R <- smc(R) | |
G6 <- (1- (n-sum(smc.R))/sum(R)) | |
av.r <- (sum(R)-n)/(n*(n-1)) | |
sn <- n*av.r/(1-av.r) |
NewerOlder