Programming - Principles and Practice Using C++http://stroustrup.com/programming.htmlA Tour of C++http://stroustrup.com/Tour.htmlThe C++ Standard Library: A Tutorial and Referencehttp://amzn.to/2CtyaVEC++ Templates: The Complete Guidehttp://amzn.to/2zT8b7m
This file contains hidden or 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
| paste -d "\t" - - - - < filename |
This file contains hidden or 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
| docker run -d --name dogstatsd -u 0 -h `hostname` -p 8125:8125/udp -e API_KEY=$API_KEY datadog/docker-dd-agent:latest-dogstatsd |
This file contains hidden or 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
| #The merge method takes in the two subarrays and creates a output array | |
| def merge(left, right): | |
| result = [] | |
| i , j = 0 , 0 | |
| while i < len (left) and j < len (right): # iterate through both arrays and arrange the elements in sorted order | |
| if left[i] <= right [j]: | |
| result.append(left[i]) | |
| i+=1 | |
| else: | |
| result.append(right[j]) |
This file contains hidden or 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
| { | |
| "github": { | |
| "token": "YOUR_GITHUB_TOKEN" | |
| }, | |
| "project": { | |
| "user": "BenchLabs", | |
| "teamLabel": "team_platform", | |
| "sprintKeywords": "Platform Sprint", | |
| "sprintLabelColor": "fbca04", | |
| "teamRepos": [ |
https://github.com/j-martin/dotfiles
- iTerm2 v3
- Sublime Text 3
- IntelliJ IDEA
- vim
- Spacemacs (org-mode)
- zsh
- shellcheck
- tmux
This file contains hidden or 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 | |
| _appName=$1 | |
| _limit=$2 | |
| echo "$(date) checking app:$_appName with limit:$_limit " | |
| # get app versions above the limit as a list | |
| versions=$(aws elasticbeanstalk describe-application-versions\ | |
| --application-name $_appName\ |
This file contains hidden or 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 | |
| # Original was modified to do backup only for one specified volume. | |
| set -ue | |
| set -o pipefail | |
| export PATH=$PATH:/usr/local/bin/:/usr/bin | |
| ## START SCRIPT |
This file contains hidden or 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
| package co.bench.api.spray | |
| import spray.routing.{Directives, Route} | |
| import spray.http.HttpHeaders.{`Access-Control-Allow-Credentials`, `Access-Control-Allow-Headers`, `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`} | |
| import spray.http.{StatusCodes, HttpOrigin, SomeOrigins} | |
| import spray.http.HttpMethods._ | |
| trait CORSSupport extends Directives { | |
| private val CORSHeaders = List( |
This file contains hidden or 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
| val customMergeStrategy: String => MergeStrategy = { | |
| case x if Assembly.isConfigFile(x) => | |
| MergeStrategy.concat | |
| case PathList(ps @ _*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) => | |
| MergeStrategy.rename | |
| case PathList("META-INF", xs @ _*) => | |
| (xs map {_.toLowerCase}) match { | |
| case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) => | |
| MergeStrategy.discard | |
| case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") => |