- List devices and find the trackpad's ID:
xinput list
- Monitor the input:
xinput --test [id #]
- List the properties.
synclient
{ | |
"intents": [ | |
{ | |
"intent": "GetNewFactIntent" | |
}, | |
{ | |
"intent": "AMAZON.HelpIntent" | |
}, | |
{ | |
"intent": "AMAZON.StopIntent" |
#Testing a three way IPF with combined and individual marginals. | |
library(mipfp) | |
library(dplyr) | |
pers <- data_frame( | |
gender = sample(c("m","f"),25,replace = T), | |
age = rep(1:5,5), | |
fpl = rep((5:1)/0.5,5), | |
w = rep(1,25) |
library(curl) | |
library(XML) | |
listFiles <- function(username, password, relPath = "/", dav = "https://dav.box.com/dav") { | |
uri <- URLencode(paste(dav, relPath, sep="")) | |
# fetch directory listing via curl and parse XML response | |
h <- new_handle() | |
handle_setopt(h, customrequest = "PROPFIND") | |
handle_setopt(h, username = username) |
#An Excel style "fill down" for Data Table. (.SD is the Subset of Data for each 'by' group) | |
dataTable[,setId:=.SD[1,setId],by=setNum] #TAG:USEFUL (Excel style fill down) |
# Geocoding in R using Google's API | |
require(RCurl) | |
require(XML) | |
require(data.table) | |
require(dplyr) | |
ridbLocs <- data.table(read.delim(file = "Data/ridbLocations.tsv")) | |
setnames(ridbLocs,c("original","locationType","simplified1","gCode","simplified","lat","lon")) | |
#' Model formula from my Google Sheet: |
# A quick way to pull a lat/lon table off Wikipedia for "all" US Army bases. | |
# SPARQL: on http://dbpedia.org/sparql | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
PREFIX : <http://dbpedia.org/resource/> | |
PREFIX dbpedia2: <http://dbpedia.org/property/> |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
require(dplyr) | |
require(parallel) | |
require(foreach) | |
require(doParallel) | |
cpuCount <- detectCores() #From the parallel package | |
registerDoParallel(cores=cpuCount-1) #Don't take all cores. | |
dplyr({put dplyr data arguments here},.parallel=T) #Run dplyr in parallel. |