Skip to content

Instantly share code, notes, and snippets.

View dbarowy's full-sized avatar

Dan Barowy dbarowy

View GitHub Profile
@dbarowy
dbarowy / vscode debug console output
Created February 26, 2021 20:14
Debug console output for Typescript custom functions project
lowerCaseFile
lowerCaseFile
lowerCaseFile
lowerCaseFile
lowerCaseFile
lowerCaseFile
c4-excel-15.cdn.office.net/x/s/_layouts/app_scripts/excel-boot.min.js
Could not read source map for https://c4-excel-15.cdn.office.net/x/s/h112972CF030BFB4D__layouts/App_Scripts/gridRenderer.min.js: Unexpected 404 response from https://c4-excel-15.cdn.office.net/x/s/h112972CF030BFB4D__layouts/App_Scripts/gridRenderer.min.js.map: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@dbarowy
dbarowy / gitcom.md
Created February 1, 2018 18:37 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@dbarowy
dbarowy / removesuffix.sh
Last active February 5, 2016 16:08
Remove suffix in UNIX find command
#!/bin/sh
find . -iname "*.foo" -exec basename "{}" .foo \;
# alternately, to feed that to another command
find . -iname "*.foo" -exec sh -c 'mycommand $(basename {} .foo)' \;
@dbarowy
dbarowy / FutureErrorHandler.scala
Created February 4, 2016 20:40
Composed Scala futures with error-handling
import scala.util.Random
import scala.concurrent.{ ExecutionContext, Future }
import ExecutionContext.Implicits.global
def okReverse(s: String) = s.reverse
def shittyReverse(s: String) = {
val r = new Random()
if (r.nextDouble >= 0.5) {
throw new Exception("sorry, not today")