Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import pandas as pd | |
F = '/fs0/New_Server/RC_LMS/In_Behavioral/028_207757/PassagesV2_ListA-7757-1.txt' | |
def parse(f): | |
data = {} | |
text = open(f).read().decode('utf-16').replace('\r\n', '\r').splitlines() | |
start_ind = (i for i, _ in enumerate(text) if _ == '\t\t*** LogFrame Start ***') | |
end_ind = (i for i, _ in enumerate(text) if _ == '\t\t*** LogFrame End ***') |
#' When plotting multiple data series that share a common x axis but different y axes, | |
#' we can just plot each graph separately. This suffers from the drawback that the shared axis will typically | |
#' not align across graphs due to different plot margins. | |
#' One easy solution is to reshape2::melt() the data and use ggplot2's facet_grid() mapping. However, there is | |
#' no way to label individual y axes. | |
#' facet_grid() and facet_wrap() were designed to plot small multiples, where both x- and y-axis ranges are | |
#' shared acros all plots in the facetting. While the facet_ calls allow us to use different scales with | |
#' the \code{scales = "free"} argument, they should not be used this way. | |
#' A more robust approach is to the grid package grid.draw(), rbind() and ggplotGrob() to create a grid of | |
#' individual plots where the plot axes are properly aligned within the grid. |
\documentclass{article} | |
% General document formatting | |
\usepackage[margin=0.7in]{geometry} | |
\usepackage[parfill]{parskip} | |
\usepackage[utf8]{inputenc} | |
% Related to math | |
\usepackage{amsmath,amssymb,amsfonts,amsthm} | |
\begin{document} |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
;; -*- mode: text; coding: utf-8 -*- | |
;; | |
;; DO NOT EDIT MANUALLY! | |
;; | |
;; FILE IS GENERATED BY EMACS LISP SCRIPT | |
;; `%((file-name-nondirectory qta-ahkdata:generator-script-file)%)' | |
;; | |
;; | |
;; Writing LaTeX glyphs with | |
;; AutoHotKey (unicode versions only) |
#SingleInstance, force | |
#NoEnv | |
; Borderless Window - AutoHotkey Script | |
; The script toggles the window border and title bar of the current window independently | |
; The hotkey is Control+Win+t. It applies changes to whatever window has focus. | |
^#t:: | |
WinGetTitle, currentWindow, A | |
IfWinExist %currentWindow% |
# WMF only: | |
if (file.exists("/etc/wikimedia-cluster")) { | |
message('Detected that this script is being run on a WMF machine ("', Sys.info()["nodename"], '"). Setting proxies...') | |
Sys.setenv("http_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
Sys.setenv("https_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
} | |
# General use: | |
message("Checking for a personal library...") | |
if (!dir.exists(Sys.getenv("R_LIBS_USER"))) { |