This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.sf.simple.test; | |
import static org.junit.Assert.*; | |
import java.io.StringReader; | |
import org.junit.Test; | |
import org.simpleframework.xml.Attribute; | |
import org.simpleframework.xml.Root; | |
import org.simpleframework.xml.Serializer; | |
import org.simpleframework.xml.core.Persister; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- SDL-1.2.14/src/video/x11/SDL_x11modes.c 2009-10-13 01:07:15.000000000 +0200 | |
+++ SDL-1.2.14/src/video/x11/SDL_x11modes.c 2011-12-04 12:34:55.000000000 +0100 | |
@@ -33,7 +33,7 @@ | |
#include "SDL_x11modes_c.h" | |
#include "SDL_x11image_c.h" | |
-/*#define X11MODES_DEBUG*/ | |
+#define X11MODES_DEBUG | |
#define MAX(a, b) (a > b ? a : b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import os.path | |
import sys | |
import shutil | |
# Bugfixed version of makedirs | |
def makedirs(name, mode=0777): | |
"""makedirs(path [, mode=0777]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2011 Cloudsmith Inc. and other contributors, as listed below. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Cloudsmith | |
* Aaron Digulla |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2008. All rights reserved. | |
*/ | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import org.apache.commons.lang3.StringUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.log4j.Logger; | |
import org.eclipse.core.resources.IProject; | |
import org.eclipse.emf.ecore.resource.ResourceSet; | |
import org.eclipse.jdt.core.IJavaProject; | |
import org.eclipse.jdt.core.JavaCore; | |
import org.eclipse.xtext.resource.XtextResourceSet; | |
import org.eclipse.xtext.ui.resource.IResourceSetProvider; | |
import org.eclipse.xtext.ui.resource.XtextResourceSetProvider; | |
import org.eclipse.xtext.ui.util.JdtClasspathUriResolver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.emf.ecore.EReference; | |
import org.eclipse.emf.ecore.resource.Resource; | |
import org.eclipse.xtext.EcoreUtil2; | |
import org.eclipse.xtext.common.types.TypesPackage; | |
import org.eclipse.xtext.common.types.xtext.AbstractTypeScopeProvider; | |
import org.eclipse.xtext.common.types.xtext.ClasspathBasedTypeScopeProvider; | |
import org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider; | |
import org.eclipse.xtext.resource.IEObjectDescription; | |
import org.eclipse.xtext.scoping.IScope; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2012, Aaron Digulla | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! -e pom.xml ]]; then | |
echo "Missing pom.xml" 1>&2 | |
exit 1 | |
fi | |
sed \ | |
-e '/<distributionManagement>/,/<\/distributionManagement>/d' \ | |
-e '/<\/project/d' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import ConfigParser | |
import inspect | |
class DBConfig: | |
__doc__ = 'Collect a couple of config options in a type' | |
def __init__(self): |
OlderNewer