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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Dec 17 11:40:28 2017 | |
@author: vilhuber | |
""" | |
# Replaced by https://github.com/journalprivacyconfidentiality/jpc-migration/releases/tag/1.0 |
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
\usepackage{etoolbox} | |
\newtoggle{final} | |
\newtoggle{blind} | |
%\togglefalse{final} | |
\toggletrue{final} | |
%\toggletrue{blind} | |
\togglefalse{blind} |
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
#!/bin/bash | |
# Based on https://www.xda-developers.com/how-to-restore-mobile-data-quick-settings-tile-toggle-on-samsung-galaxy-devices/ | |
# This will work with minor adjustments to your installation of the Android SDK or wherever you put adb. | |
# Should work on Linux and Mac, but only tested on Linux | |
PATH=../android-sdk-linux/platform-tools:$PATH | |
outfile=list.$(date +%F) | |
adb devices | |
echo "Do you see your device? [y|N]" |
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
<?xml version="1.0"?> | |
<issue xmlns="http://pkp.sfu.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" published="1" current="1" access_status="1" xsi:schemaLocation="http://pkp.sfu.ca native.xsd"> | |
<id type="internal" advice="ignore">1</id> | |
<issue_identification> | |
<volume>1</volume> | |
<number>10</number> | |
<year>2009</year> | |
<title locale="en_US">Old Issue</title> | |
</issue_identification> | |
<date_published>2009-01-01</date_published> |
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
#!/bin/bash -l | |
#PBS -l walltime=01:00:00 | |
#PBS -l ncpus=1 | |
#PBS -N jupyter | |
source /etc/profile.d/modules.sh | |
module load python/anaconda | |
hostname | |
jupyter notebook |
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
#!/bin/bash | |
SRCURL=http://fmwww.bc.edu/repec/bocode/ | |
if [[ -z $1 ]] | |
then | |
cat << EOF | |
$0 start | |
mirror $SRCURL to this directory |
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
\begin{Sascode}[store=mytest,program] | |
%macro main; | |
data one; | |
do j=1 to 10; | |
%do i = 1 %to 70; | |
var&i. = &i.; | |
%end; | |
output; | |
end; | |
run; |
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
#!/bin/bash -l | |
# Output (log) and errors will go into the system-defined stdout file | |
#PBS -j oe | |
############################################################################## | |
# Based on http://csc.cnsi.ucsb.edu/docs/running-jobs-torque | |
# IMPORTANT: the next line determines how many nodes to run on | |
# nodes is number of nodes, ppn= processors (cores) per node | |
# | |
#PBS -l nodes=2:ppn=32 | |
# |
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
/* set the local install versions to the project directory */ | |
/* this will ensure that the project directory contains a local copy */ | |
/* Ensure the directories exist! */ | |
global PROJDIR "/projects/user/xyz/project1" | |
sysdir set PLUS "${PROJDIR}/stata/plus" | |
sysdir set PERSONAL "${PROJDIR}/stata/personal" | |
/* from https://www2.vrdc.cornell.edu/news/synthetic-data-server/step-4-using-the-sds/#Packages | |
and https://gist.github.com/larsvilhuber/002ffc7fa96136426a4801e1470e0189#file-sds_initialize-do */ |
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
CRAN_base <- "file:/cac/contrib/mirror/CRAN/" # location of the local CRAN mirror - this will be different at validation! | |
# set CRAN base, ensuring that install.packages() can find its files | |
mypackages <- c("xyz","abc") | |
local({ | |
r <- getOption("repos") | |
r["CRAN"] <- CRAN_base | |
options(repos = r) | |
}) | |
install.packages(mypackages) |