Skip to content

Instantly share code, notes, and snippets.

View BenRussert's full-sized avatar

Ben Russert BenRussert

View GitHub Profile
@BenRussert
BenRussert / show-git-ignored.sh
Created September 29, 2021 20:45
List ignored untracked files in git repository
git ls-files -i -o --exclude-standard
'atom-text-editor:not([mini])':
# 'ctrl-b': 'tree-view:toggle'
'ctrl-b': 'window:toggle-left-dock'
'ctrl-\\': 'pane:split-right-and-copy-active-item'
'ctrl-j': 'window:toggle-right-dock'
> zeromq@5.1.0 install C:\Users\BEN~1.RUS\AppData\Local\Temp\apm-install-dir-119714-19976-18c9j21.dc5a\node_modules\Hydrogen\node_modules\zeromq
> node scripts/prebuild-install.js || (node scripts/preinstall.js && node-gyp rebuild)
prebuild-install WARN install No prebuilt binaries found (target=3.1.10 runtime=node arch=x64 platform=win32)
Downloading libzmq for Windows
Download finished
C:\Users\BEN~1.RUS\AppData\Local\Temp\apm-install-dir-119714-19976-18c9j21.dc5a\node_modules\Hydrogen\node_modules\zeromq>if not defined npm_config_node_gyp (node "C:\Users\ben.russert\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\ben.russert\AppData\Local\atom\app-1.40.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
function Remove-Merged-Branches {
param (
[string]$branchToBaseOff
)
$RESTRICTED_BRANCHES = 'master', 'dev', 'develop', 'development'
if ([string]::IsNullOrEmpty($branchToBaseOff)) {
return 'You must provide the branch name, e.g. master, origin/master, (HEAD is default for --merged)';
}
{
"ipython": {
"idents": [],
"header": {
"version": "5.3",
"date": "2019-05-22T03:45:39.378917Z",
"session": "2ffc1de3-98980ce34645c78efbb4d850",
"username": "ben",
"msg_type": "inspect_reply",
"msg_id": "49543fd2-0cd67c84eff377d9f6f483c3"
{
"ipython": {
"idents": [],
"header": {
"version": "5.3",
"date": "2019-05-22T03:45:39.378917Z",
"session": "2ffc1de3-98980ce34645c78efbb4d850",
"username": "ben",
"msg_type": "inspect_reply",
"msg_id": "49543fd2-0cd67c84eff377d9f6f483c3"

🎉 Features

  • Support exporting markdown cells to notebook file #1498
  • Import Jupyter Notebook files into Atom #1501
  • Auto-import Jupyter Notebook files #1515

🐛 Bugs

  • Fix toggling hydrogen output mode #1494
  • Don't trim text put on clipboard #1511
import re
def strip_non_numeric(phone_number):
# regex pattern: '\D' means "any character that is not a digit 0-9"
pattern = '\D'
# replace with nothing "", i.e. delete
return re.sub(pattern, "", phone_number)
phone_numbers = ['(773) 202-5862','800-588-2300','877-527 7454']
clean_phone_numbers = list(map(strip_non_numeric, phone_numbers))
@BenRussert
BenRussert / styles-remember.less
Created April 30, 2017 01:25
Less style snippets
// https://github.com/atom/bracket-matcher/issues/46
atom-text-editor::shadow {
.bracket-matcher .region {
background-color: yellow;
border: 1px solid black;
}
}
@BenRussert
BenRussert / mlb-on-air-schedule.sh
Created April 22, 2017 15:45
Download an mlb schedule standardized calendar csv file filtered to include only channels you are interested in
#!/usr/bin/env bash
# this will download a csv format calendar file with TV info and
# filter only channels I want. The output can be imported into google calendar etc
# this url is for the cubs, but you could modify url parameters if you want
csvurl="http://mlb.mlb.com/ticketing-client/csv/EventTicketPromotionPrice.tiksrv?team_id=112&display_in=singlegame&ticket_category=Tickets&site_section=Default&sub_category=Default&leave_empty_games=true&event_type=T"
tmpfullfile="tmpfullfile.csv"
outputfile="cubs-onair-schedule.csv"