This file contains hidden or 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
use Lingua::EN::Fathom; | |
# this is a simple perl file to go along with linga.sas | |
# this work is derived from the example at CPAN: | |
# http://search.cpan.org/dist/Lingua-EN-Fathom/lib/Lingua/EN/Fathom.pm | |
# create object | |
my $text = new Lingua::EN::Fathom; | |
# read in text file |
This file contains hidden or 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
2014-12-18 17:46:49 -0500 | |
./configure | |
--prefix=/home/lisijo/.linuxbrew/Cellar/python/2.7.9 | |
--enable-ipv6 | |
--datarootdir=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/share | |
--datadir=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/share | |
--enable-shared | |
checking build system type... x86_64-unknown-linux-gnu |
This file contains hidden or 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
library(cdlTools) | |
library(rgdal) | |
library(raster) | |
library(rgeos) | |
# rasterize in the R 'raster' package is really slow, depending on your needs this may work better | |
# Author: Jonathan Lisic | |
# License BSD | |
polyExtract <- function(x) { |
This file contains hidden or 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/local/bin/Rscript | |
# get the usual argv | |
args <- commandArgs(trailingOnly == TRUE) | |
# get the input sas file name | |
inFile <- args[1] | |
# get the output csv file name | |
inFile <- args[1] |
This file contains hidden or 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
#Copyright (c) 2015, Jonathan Lisic | |
#All rights reserved. | |
# | |
#Redistribution and use in source and binary forms, with or without | |
#modification, are permitted provided that the following conditions are met: | |
# | |
#1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
#2. Redistributions in binary form must reproduce the above copyright notice, | |
# this list of conditions and the following disclaimer in the documentation |
This file contains hidden or 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
#!/bin/bash | |
# script to use with cron to capture the live stream | |
# this script is under no real license, and may give your dog | |
# lice, catch you on file, and is not warranted for any purpose | |
# what-so-ever | |
# to use with cron every 10min use | |
# crontab -e |
This file contains hidden or 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
# fun with sp objects | |
library(sp) | |
set.seed(100) | |
n <- 8 | |
m <- rpois(lambda=2,n)+1 | |
x_range <- c(0,100) |
This file contains hidden or 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
library(shiny) | |
library(ggmap) | |
library(rgdal) | |
library(sp) | |
library(broom) | |
library(dplyr) | |
library(magrittr) | |
library(raster) | |
library(rgeos) |
This file contains hidden or 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
/* a simple program that invokes the kernel */ | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/syscall.h> | |
#include <linux/random.h> | |
int main() { |
This file contains hidden or 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
# create a tessalation | |
sampleVoronoi <- function(x, sampled,rw=NULL) { | |
require(raster) | |
vor <- tile.list( deldir(x[sampled,1], x[sampled,2],rw=rw) ) | |
vorPoly <- lapply( 1:length(vor) , | |
function(i) { |
OlderNewer