Skip to content

Instantly share code, notes, and snippets.

View IsmailM's full-sized avatar
👋
Focusing

Ismail Moghul IsmailM

👋
Focusing
View GitHub Profile
var fs = require('fs')
var through = require('through2')
var pumpify = require('pumpify')
var request = require('request')
var APIROOT = 'https://api.github.com/'
var TOKEN = ''
var getProjects = function (org, cb) {
var stream = pumpify.obj(
@IsmailM
IsmailM / streams.js
Last active April 7, 2017 15:09
Trying to get streams to work
var through = require('through2');
var pumpify = require('pumpify');
var request = require('request');
var getProjects = function(cb) {
var stream = pumpify.obj(
ex('hello'),
sendRequest() // Returns a JSON object
)
return stream
{
"additional_path_items":
[
"/Users/ismailm/.nvm/versions/node/v6.3.0/bin"
],
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Sunburst (SL).tmTheme",
"detect_indentation": false,
"font_face": "Operator Mono Book",
@IsmailM
IsmailM / prompt_agnoster_setup
Created March 30, 2017 12:57
prompt_agnoster_setup for yadr theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@IsmailM
IsmailM / .zshrc
Last active March 6, 2018 13:53
My zshrc
prompt agnoster
### Add Key bindings
bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word
bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word
# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
bindkey '^?' backward-delete-char # [Delete] - delete backward
bindkey '^[[3~' delete-char # [fn-Delete] - delete forward
bindkey '^[3;5~' delete-char
@IsmailM
IsmailM / analysis.sh
Last active March 31, 2017 16:54
exemplar chrom 10 vep
#!/usr/bin/env bash
set -ex
# DIRECTORIES
VEP=$HOME/data/.progz/ensembl-vep/vep
ANALYSIS_DIR=$HOME/data/analysis
### VEP Custom Annotation
DBSNP_DB=${ANALYSIS_DIR}/dbsnp/dbsnp149.vcf.gz
KAVIAR_DB=${ANALYSIS_DIR}/kaviar/Kaviar-160204-Public-hg19.vcf.gz
# DIRECTORIES
VEP=$HOME/data/.progz/ensembl-vep/vep.pl
ANALYSIS_DIR=$HOME/data/analysis
### VEP --ASSEMBLY param
ASSEMBLY_FASTA=${ANALYSIS_DIR}/reference/human_g1k_v37_decoy.fasta
### VEP Custom Annotation
DBSNP_DB=${ANALYSIS_DIR}/dbsnp/All_20161121.vcf.gz
KAVIAR_DB=${ANALYSIS_DIR}/kaviar/VEP_annotation.vcf.gz
GNOMAD_DIR=${ANALYSIS_DIR}/gnomad
@IsmailM
IsmailM / tmux-cheatsheet.markdown
Created March 14, 2017 15:35 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@IsmailM
IsmailM / Open Safari tabs in Google Chrome
Created February 22, 2017 00:29 — forked from martinwinter/Open Safari tabs in Google Chrome
Opens all Safari windows and tabs in Google Chrome.
tell application "Safari"
repeat with theSafariWindow in windows
tell application "Google Chrome" to set theChromeWindow to make new window
repeat with theSafariTab in theSafariWindow's tabs
set theURL to URL of theSafariTab
tell application "Google Chrome"
set theChromeTab to make new tab at end of tabs of theChromeWindow
set URL of theChromeTab to theURL
end tell
end repeat
1 52727 rs2691278 C G . . AF=0.1048980;AC=2767;AN=26378;DS=GS000009920|GS000009927|GS000009928|GS000009930|GS000009931|GS000009932|GS000010320|GS000010321|GS000010322|GS000010323|GS000010327|GS000010328|GS000010424|GS000010425|GS000010426|GS000010427|GS000010428|GS000010429|GS000010430|GS000010431|GS000010432|GS000010433|GS000010434|GS000010435|GS000010436|GS000010437|GS000010438|GS000010494|GS000011735|GS000011738|GS000011739|GS000011740|GS000011741|GS000011761|GS000011804|GS000011805|GS000011807|GS000011808|GS000011809|GS000011810|GS000011811|GS000011812|GS000011814|GS000011816|GS000012712|GS000012713|GS000013164|GS000014557|GS000014558|GS000014559|GS000014560|GS000014561|GS000014562|GS000014563|GS000014564|GS000014566|GS000014567|GS000014568|GS000014569|GS000014570|GS000015152|GS000015153|GS000015154|GS000015155|GS000015156|GS000015172|GS000015173|GS000015174|GS000015175|GS000015176|GS000015178|GS000015180|GS000015181|GS000015182|GS000015183|GS000015184|GS000015186|GS000015187|GS000015188|GS000015189|GS000