Skip to content

Instantly share code, notes, and snippets.


John Ahlroos johndevs

Block or report user

Report or block johndevs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
johndevs / get-all-files.gql
Last active Aug 16, 2019
Github GraphQL - Get all file contents in repository
View get-all-files.gql
# Provide $query as a variable.
# The query is the same as you would enter into the search field e.g. "org:johndevs in:name feedreader"
query GetFilesQuery($branch: GitObjectID, $query: String!) {
search(first: 1, type: REPOSITORY, query: $query) {
edges {
node {
... on Repository {
object(expression: "master:", oid: $branch) {
... on Tree {
johndevs / maven-reports.groovy
Created Feb 19, 2018
Maven dependency report
View maven-reports.groovy
import groovy.xml.MarkupBuilder
def lines =
// Only get INFO lines and the module header
.grep { String line -> line.startsWith('[INFO] ') || line.contains('Building ')}
// Remove the INFO tag
.collect { String line -> (line.split(' ') - '[INFO]').join(' ') }
lines = lines
johndevs / plugin.xml
Last active Dec 9, 2016
Hide plugin preference page depending on if plugin is installed (why doesn't this work?)
View plugin.xml
<extension point="org.eclipse.ui.propertyPages">
<page id="com.example.ProjectPreferencesPage"
<adapt type="org.eclipse.core.runtime.Platform">
<with variable="platform">
<test property="org.eclipse.core.runtime.isBundleInstalled" args="some.other.plugin"/>
johndevs / build.gradle
Last active Apr 12, 2017
Sample build.gradle template for Gradle Vaadin Plugin projects
View build.gradle
* Applies the latest version of the Vaadin plugin to the project. If a specific
* version of the plugin is wanted, append "?version=0.7" to the url.
apply from: ''
* The vaadin extension configures different aspects of how the vaadin plugin behaves
* in the project.
You can’t perform that action at this time.