Skip to content

Instantly share code, notes, and snippets.

View sddamico's full-sized avatar

Stephen D'Amico sddamico

View GitHub Profile
@sddamico
sddamico / keybase.md
Created February 23, 2017 16:23
Keybase Verification

Keybase proof

I hereby claim:

  • I am sddamico on github.
  • I am sddamico (https://keybase.io/sddamico) on keybase.
  • I have a public key ASBi58WK8iuHQcnjMHyQIOBUFCOItUvlPbhnbDkVMNfA4Qo

To claim this, I am signing this object:

@sddamico
sddamico / rules.md
Last active January 30, 2017 21:36
Baseball Rules

Free Agency Reform

It should not be a secret, by now, that I feel very strongly about MBL's current rules regarding free agency. I've posted numerous times on the league boards about my feelings regarding prospects, free agency, the draft, etc. and how I see it as having a significantly negative impact on the league. This year, as usual, my complaints have fallen on deaf ears. They were met by jeers and dismissal just as they always are. But, this time, I've decided to hash out my stance and why I'm over here in a more articulate fashion. I hope you take the time to read this and think on it critically. This opinion comes from a position of love; this is, by far, my favorite one of our fantasy leagues because of the people involved, the amount activity and trades as well as the enjoyment it brings day-in and day-out throughout the summer. But, with all of that

Quick summary for the folks at work or school:
Crucible
Reviving in PvP change: you have to get in closer to the ghost to get the revive and it takes a bit longer, even with a faster revive perk. You cannot sprint-revive anymore. Overshield is also a bit less powerful.
They added +2 seconds on the revive timer in ToO. If you die again it will take longer (7 sec. each time?)
Special ammo: you spawn with Special Ammo again (like it used to be). Special ammo comes three minutes in the match and 2 minutes after that. So less special ammo per match.
Heavy ammo economy: only comes once a match (at the 5 min mark with the exception of Mayhem)
Crucible rewards: increased legendary drops
Playing Shaxx Weekly Bounties can give you rewards up to LL 335 (and a Sterling Treasure Box). Correction: "They said the Sterling Treasure is from playing one game in the weekly featured Crucible list (e.g. Zone Control). And it sounds like the Shaxx quest line they were talking about was his weekly nightfall-tier bounties, not somet
@sddamico
sddamico / LICENSE
Last active April 29, 2018 04:26
Exponential Backoff Transformer
Copyright (c) 2016 Stephen D'Amico
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
Verifying I am +sddamico on my passcard. https://onename.com/sddamico
@sddamico
sddamico / gistp.sh
Last active November 1, 2018 10:54
paste your clipboard to a gist and copy the gist url to the clipboard
gistp() {
if [ -z "$1" ] ; then
echo "Must supply filename for new gist"
exit(1)
else
gisturl=$(pbpaste | gist -f $1)
echo "Copying $gisturl to clipboard"
echo "$gisturl" | pbcopy
fi
}
@sddamico
sddamico / build.gradle
Created October 24, 2014 00:37
Rename Android APK's to Something Useful
/* put this in your application's build.gradle after the android {} block
* output is in this format: "<projectName>-<buildType>-v<versionName>-<versionCode>.apk"
* e.g. "materiyolo-debug-v5.0.0-12345.apk"
* also, supports injecting jenkins ci's build number into apk, if available
* e.g. "materiyolo-debug-v5.0.0-12345-b6789.apk"
* you must specify your versionName and versionCode in your build.gradle for this to work
* see: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Manifest-entries */
// change this to whatever your app's name is...
project.archivesBaseName = 'materiyolo'
@sddamico
sddamico / increment.groovy
Created October 20, 2014 20:25
Groovy increment versionCode in gradle.properties
// increment the versionCode in the build.properties file
def incrementBuildPropertiesVersion() {
// load build.properties file
def buildProps = new Properties()
def buildPropsFile = new File('android/build.properties')
buildProps.load(buildPropsFile.newDataInputStream())
// get old version code from properties file
def oldVersionCode = buildProps.getProperty('VERSION_CODE')
def newVersionCode = Integer.parseInt(oldVersionCode) + 1
@sddamico
sddamico / Observable Button
Last active August 29, 2015 14:04
Rx Enable Developer Settings
ObservableButton v = (ObservableButton) findViewById(R.id.button);
v.observeOnClick()
.skip(3)
.takeWhileWithIndex(new Func2<ObservableButton.OnClick, Integer, Boolean>() {
@Override
public Boolean call(ObservableButton.OnClick onClick, Integer index) {
int countdown = 3 - index;
if (countdown > 0) {
Toast.makeText(MainActivity.this, "You are now " + countdown + " clicks away from being a developer!", Toast.LENGTH_SHORT).show();
return true;