Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function
Declared functions build in memory immediately when the program loads.
| #!/bin/sh | |
| # | |
| # Japanese Kanji File Encode Converter (to UTF-8) | |
| # Usage: $ sh ./enc_converter.sh "<FilePath>" | |
| # <Filepath> is used for argument of "ls" command. | |
| # Ex) sh ./enc_converter.sh "~/test/*.txt" | |
| # Expect Output of 'file' Command | |
| cp932="Non-ISO extended-ASCII text" | |
| jis="ASCII text" |
Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function
Declared functions build in memory immediately when the program loads.
| # restore_packages.R | |
| # | |
| # installs each package from the stored list of packages | |
| # source: http://hlplab.wordpress.com/2012/06/01/transferring-installed-packages-between-different-installations-of-r/ | |
| load("~/installed_packages.rda") | |
| for (count in 1:length(installedpackages)) { | |
| install.packages(installedpackages[count]) | |
| } |
###Download STAR### Obtain STAR source from https://github.com/alexdobin/STAR
Add the following to your .bashrc file and source it:
export PATH=/path/to/STAR/bin/:$PATH
###Generate Reference Genome
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| // RStudio: Copy lines up/down with alt+cmd+up/down | |
| { | |
| "key": "alt+cmd+down", | |
| "command": "editor.action.copyLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+alt+down", |
| Number,Expression,Translation,Reading,Grammar Japanese,Grammar English,Grammar Explanation,Notes,Picture,Page,Level,Scrambled | |
| 1,私は良子に花をあげた・あげました。,I gave Yoshiko flowers.,私[わたし]は 良子[りょうこ]に 花[はな]をあげた・あげました。,あげる,,give | Someone gives something to a person who is not a member of the giver’s in group but whose status is about equal to that of the giver.,,,63,Basic, | |
| 2,大野さんは山本さんに本をあげた。,Ms. Ono gave Mr. Yamamoto a book.,大野[おおの]さんは 山本[やまもと]さんに 本[ほん]をあげた。,あげる,,give | Someone gives something to a person who is not a member of the giver’s in group but whose status is about equal to that of the giver.,,,63,Basic,scrambled | |
| 3,君はアンに何をあげましたか。,What did you give to Ann?,君[きみ]はアンに 何[なに]をあげましたか。,あげる,,give | Someone gives something to a person who is not a member of the giver’s in group but whose status is about equal to that of the giver.,,,63,Basic,scrambled | |
| 4,私は信男さんにネクタイを買ってあげた・あげました。,I bought a tie for Nobuo.,私[わたし]は 信男[のぶお]さんにネクタイを 買[か]ってあげた・あげました。,あげる,,do s.t. for s.o.; do s.o. a favor by doing s.t. |&nbs |
| Collections of scripts harvested mainly from Pete, but also picked up from the forums | |
| TOC | |
| Accessing dynamic measurements.groovy - Most annotation measurements are dynamically created when you click on the annotation, and | |
| are not accessible through the standard getMeasurement function. This is a way around that. | |
| Affine transformation.groovy - access more accurate measurements for the affine transformation used in the image alignment (m5/m6+) | |
| Alignment of local cells.groovy - check neighborhood for similarly aligned cells |
| #!/usr/bin/env Rscript | |
| suppressPackageStartupMessages({ | |
| library(globals) | |
| library(readr) | |
| library(stringr) | |
| library(rex) | |
| library(magrittr) | |
| library(rlang) | |
| library(knitr) |