View used_ruby_versions.py
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] |
View require.context.js
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) | |
}) | |
}) | |
} |
View randomclick.js
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(); |
View keybase.md
Keybase proof
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:
View easy_gov_review.ssml
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> |
View cannabis-infused-chai.en.md
Cannabis Infused Masala Chai
Ingredients
- 0.2 dl Water
- 0.2 dl Milk (high fat content)
- 1 Gramm Cannabis
- 1 Teabag Chai Tea
- Sugar (as much as you prefere)
View INSTALL.md
The following worklow based on the official documentation from pandoc https://pandoc.org/installing.html#quick-stack-method
Install stack
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/
Install pandoc
- 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
View randomizable.rb
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 |
View alpha.R
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