Skip to content

Instantly share code, notes, and snippets.

javascript:(function(){
var key = document.cookie.match('(^|;)\\s*ADRUM\\s*=\\s*([^;]+)');
if (!key) {
alert('Unable to find redirect cookie');
return;
}
var value=key.pop();
var rIndex=value.indexOf('r=');
var loc=decodeURIComponent(value.substr(rIndex+2));
var d=document.createElement('div');

Keybase proof

I hereby claim:

  • I am rsteckler on github.
  • I am rsteckler (https://keybase.io/rsteckler) on keybase.
  • I have a public key ASBPGYtMZ73wCti0nFV7UsCC3JpmOdQ-swQ181cYASZ9XQo

To claim this, I am signing this object:

@rsteckler
rsteckler / gist:2f5c8a5769c91107e8de881a7cf17df3
Created October 11, 2017 23:34
Jenkins pipeline parallel stages in separate workspaces
pipeline {
agent any
stages {
stage('first') {
parallel {
stage('firstA') {
steps {
ws('A') {
sh '''pwd
echo 1 > shared.txt
Verifying that "cryptyk.id" is my Blockstack ID. https://onename.com/cryptyk
{
"private": true,
"engines": {
"node": ">=5.0 <6",
"npm": ">=3.3 <4"
},
"dependencies": {
"babel-polyfill": "^6.3.14",
"babel-runtime": "^6.3.19",
"bluebird": "3.1.4",
@rsteckler
rsteckler / gist:f4f24231d11f3e02a226
Created April 21, 2015 17:57
Delete data from Google Fit account
//Requires OAuth2 permissions to read/write fitness data.
private void deleteAllCalories() {
//Set the delete timespan to be the last year
Calendar cal = Calendar.getInstance();
Date now = new Date();
cal.setTime(now);
long endTime = cal.getTimeInMillis();
cal.add(Calendar.YEAR, -1);
long startTime = cal.getTimeInMillis();
@rsteckler
rsteckler / GoogleFitService.java
Last active August 29, 2015 14:15
Fit running in a service
private void notifyUiFailedConnection(ConnectionResult result) {
Intent intent = new Intent(FIT_NOTIFY_INTENT);
intent.putExtra(FIT_EXTRA_NOTIFY_FAILED_STATUS_CODE, result.getErrorCode());
intent.putExtra(FIT_EXTRA_NOTIFY_FAILED_INTENT, result.getResolution());
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
}