Skip to content

Instantly share code, notes, and snippets.

View corecode's full-sized avatar

Simon Schubert corecode

View GitHub Profile
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee.std_logic_unsigned.all;
entity lcd_master is
port (
clk : in std_logic;
reset_n : in std_logic;
rangify <- function(val, range) {
# First prepare the factor of ranges
rangef <- c()
for (i in 1:length(range)) {
rangef <- c(rangef, paste("<", range[i]))
}
rangef <- c(rangef, paste(">", range[length(range)]))
rangef <- factor(rangef)
r <- data.frame(val=val, range=rangef[length(rangef)])
full_interaction <- as.data.frame(sapply(factors, levels))
join(df, full_interaction, type="full")
}
full_interaction <- as.data.frame(sapply(factors, levels))
join(df, full_interaction, type="full")
}
fillmelted <- function(df, factors=df[, sapply(df, class) == "factor"]) {
full_interaction <- as.data.frame(sapply(factors, levels))
join(df, full_interaction, type="full")
}
transform.split <- function(.data, .variables, ...) {
by <- eval.quoted(as.quoted(.variables), .data)
pf <- parent.frame()
args <- substitute(list(...))
## from aggregate.data.frame
nrx <- NROW(.data)
grp <- double(nrx)
for (ind in rev(by)) {
if (length(ind) != nrx)
transform.split <- function(.data, .variables, ...) {
by <- eval.quoted(as.quoted(.variables), .data)
pf <- parent.frame()
args <- substitute(list(...))
## from aggregate.data.frame
nrx <- NROW(.data)
grp <- double(nrx)
for (ind in rev(by)) {
if (length(ind) != nrx)
transform.split <- function(.data, .variables, ...) {
by <- eval.quoted(as.quoted(.variables), .data)
pf <- parent.frame()
args <- substitute(list(...))
## from aggregate.data.frame
nrx <- NROW(.data)
grp <- double(nrx)
for (ind in rev(by)) {
if (length(ind) != nrx)
globals = @driver.execute_script('
return (function() {
var w = window;
var h = {};
var ks = Object.keys(w);
for (var i in ks) {
var k = ks[i];
h[k] = typeof(w[k]);
};
return h;
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://github.com/flattr/osd-flattr-chrome-extension.git
pushurl = [email protected]:corecode/osd-flattr-chrome-extension.git
[branch "master"]