Skip to content

Instantly share code, notes, and snippets.

View jottley's full-sized avatar

Jared Ottley jottley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jottley on github.
  • I am jottley (https://keybase.io/jottley) on keybase.
  • I have a public key whose fingerprint is 6A13 2131 639A 0505 E090 49C8 3AA3 C1F5 611F DC77

To claim this, I am signing this object:

/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
@jottley
jottley / gist:925b44a86f0275178738c134e47b828a
Created July 16, 2016 17:16
Returns display path with the final content/folder node
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
@jottley
jottley / gist:23a93ac8f29e91db87379ccf14097d38
Created July 16, 2016 16:58
Rough Stub update action Dropbox
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
@jottley
jottley / gist:f981ffbea7efff51918695208ffcda28
Created July 16, 2016 16:51
Dropbox Metadata Comparator
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
@jottley
jottley / gist:acc8825e7465f5704f0bd0ea3ab6735e
Last active July 16, 2016 16:48
Is Dropbox Node In Sync?
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
/*
Copyright 2016 Jared Ottley <jared@ottleys.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@jottley
jottley / gist:45656327376d6946d50731c7c3ed3849
Created July 16, 2016 05:34
Page through file query (Drive API)
DriveFilesPage page = null;
do
{
if (page == null)
{
page = driveOperations.driveFileQuery().titleIs(folderName).isFolder().parentIs(parentId).getPage();
}
else
{