Emacs is many things to many people, being perhaps the most configurable text editor ever created. However, there are some common tools that social scientists often make use of that are not accessible in emacs by default. It is therefore desirable to create a base configuration that enables the features that social scientists are likely to find useful. The table below lists some of these requirements, and describes how they can be made available in emacs.
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
## This R script contains a simple screen scraping example, | |
## downloading the text of the articles in the CNN website | |
## rss feed. | |
library(RCurl) | |
library(XML) | |
options(stringsAsFactors = FALSE) | |
## get rss document |
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
library(XML) ## for html parsing | |
library(stringr) ## for easier string manipulation | |
library(plyr) ## for easier data manipulation | |
options(stringsAsFactors = FALSE) | |
## We want to parse the html output from Lexis Nexis, such as this one: | |
fname <- "The_New_York_Times2013-06-19_16-25.HTML" | |
## Inspecting the html suggests the following structure: |
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
;;; ob-stata.el --- org-babel functions for stata code evaluation | |
;; Copyright (C) 2014 Ista Zahn | |
;; Author: Ista Zahn, based on ob-julia.el by G. Jay Kerns, and ob-R.el | |
;; by Eric Schulte and Dan Davison | |
;; This file is not part of GNU Emacs. | |
;; This program is free software; you can redistribute it and/or modify |
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
library(haven) | |
library(dplyr) | |
library(foreign) | |
## Read Stata dataset with foreign | |
xf <- read.dta("http://izahn.crabdance.com/owncloud/index.php/s/PlXcLrNFyKoIDk3/download") | |
## Read Stata dataset with haven | |
xh <- read_dta("http://izahn.crabdance.com/owncloud/index.php/s/PlXcLrNFyKoIDk3/download") | |
str(xf) ## structure of foreign result is comprehensable |
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
" Settings | |
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
set numerichints | |
set typelinkhints | |
let barposition = "bottom" |
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
### Step-by-step terminal instructions to install emacspeak on OS X. | |
### Copy-paste each step (one step at a time!) into the terminal. | |
### Much of the information presented here was copied from | |
### http://e-mac-speak.googlecode.com/svn/trunk/e-mac-speak-howto.org | |
### More useful settings may be found at https://github.com/ragb/emacs-ragb/blob/master/init.el | |
## WARNING: These steps worked for me, but they may not work for you. In fact they may break things, turn your computer into | |
## a paperweight, and/or eat your kittens. These instructions are provided in the hope that they may be useful, | |
## but you are responsible for running them and for any damange doing so may cause. |
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
# Maintainer: Steve Holmes <[email protected]> | |
# Contributers: Chris Brannon <[email protected]> | |
pkgname=emacspeak | |
pkgver=44.0 | |
pkgrel=1 | |
pkgdesc="Emacs extension that provides spoken output" | |
arch=('i686' 'x86_64') | |
url="https://github.com/tvraman/emacspeak" | |
license=('GPL' 'LGPL' 'APACHE') | |
depends=('emacs' 'tcl' 'tclx' 'espeak') |
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
;;; Completion hints for files and buffers buffers | |
(require 'helm-config) | |
(helm-mode 1) | |
;;rebind tab to do persistent action | |
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) | |
;; make TAB works in terminal | |
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) | |
;list actions using C-z | |
(define-key helm-map (kbd "C-z") 'helm-select-action) |
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
print(getwd()) | |
setwd("/home/ubuntu") | |
install.packages("aws.s3", repos = "https://cran.rstudio.com", lib = .libPaths()[1]) | |
library("aws.s3") | |
print(bucketlist()) | |
write.csv(bucketlist(), "check.csv") |
OlderNewer