Skip to content

Instantly share code, notes, and snippets.

@jaydm
jaydm / jaxbExample.snippet.java
Last active September 29, 2017 18:01
Basic template to allow for the creation of the XML schema using JAXB #java #jaxb #xml
//example class
public class MySchemaOutputResolver extends SchemaOutputResolver {
public Result createOutput(String namespaceURI, String suggestedFileName) throws IOException {
File file = new File(suggestedFileName);
StreamResult result = new StreamResult(file);
result.setSystemId(file.toURI().toURL().toString());
return result;
}
@jaydm
jaydm / apauDiskBeforeAndAfter
Last active June 4, 2019 14:05
Migrating APAU - disc allocations #AccPac #db2
Before
161M db2inst1/NODE0000/ACCPAC
5.6G db2inst1/NODE0000/APAU
1.9G db2inst1/NODE0000/APDE
1.4G db2inst1/NODE0000/APDE2
1.6G db2inst1/NODE0000/APES
769M db2inst1/NODE0000/APFR
1.2G db2inst1/NODE0000/APMAIN
4.6G db2inst1/NODE0000/APMX
3.8G db2inst1/NODE0000/APMX3
/*
* Copyright 2013 Google Inc.
*
* 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
<manifest ...>
...
<!-- Make sure your app (or individual activity) uses the
theme with the custom attribute defined. -->
<application android:theme="@style/AppTheme" ...>
...
</application>
</manifest>
/*
* Copyright 2013 Google Inc.
*
* 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
/*
* Copyright 2012 Google Inc.
*
* 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
<!--
A button bar is a set of buttons at the bottom of an activity.
An example is an AlertDialog with OK/Cancel buttons.
Note that something similar can be accomplished using a
split action bar and text-only action buttons, but this is an
alternate presentation that's often preferred.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
Moved to
https://github.com/romannurik/android-swipetodismiss
@jaydm
jaydm / keybase.md
Created April 9, 2014 15:28
Keybase proof

Keybase proof

I hereby claim:

  • I am jaydm on github.
  • I am jaydm (https://keybase.io/jaydm) on keybase.
  • I have a public key whose fingerprint is 0279 E8AD 9A66 5D87 E14E 242D A6A3 9386 A0F0 DE24

To claim this, I am signing this object:

<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">