Skip to content

Instantly share code, notes, and snippets.

View rewbs's full-sized avatar

Robin Fernandes rewbs

View GitHub Profile
Index: Load_s3m.cpp
===================================================================
--- Load_s3m.cpp (revision 572)
+++ Load_s3m.cpp (working copy)
@@ -109,7 +109,7 @@
case 'Y': command = CMD_PANBRELLO; break;
case 'Z': command = CMD_MIDI; break;
case '\\': command = CMD_SMOOTHMIDI; break; //rewbs.smoothVST
- case ':': command = CMD_VELOCITY; break; //rewbs.velocity
+ case ']': command = CMD_VELOCITY; break;
import java.io.*;
public class Play {
public static void main(String args[]) throws IOException {
// my_IBM1388_file is a text file encoded in IBM-1388 with the following 3 lines of content:
// Line 1/3 of an IBM-1388 file.
// Line 2/3 of an IBM-1388 file.
// Line 3/3 of an IBM-1388 file.
import zero.core.groovysupport.ZeroObject
import com.ibm.cics.server.*
import zero.util.http.*
/**
* Sample RESTful resource handler for CICS TSQs.
* This handler implements a subset of the LCRUD operations:
* <ul>
* <li>Retrieve: A GET request to /resources/tsq/queueName and returns the full content of the queue, or HTTP 404 if it doesn't exist. </li>
* <li>Update: A PUT request to /resources/tsq/queueName invokes onUpdate() and adds the request body data to the queue, creating the queue if it doesn't exisit. </li>
import java.nio.charset.*
import java.nio.*
class ebcdic2 {
static main(args) {
Charset.metaClass.isEBCDIC = {
// This byte value of 'a' is the same in all EBCDIC flavours.
// We use can this to positively identify EBCDIC Charsets.
public class Foo {
public int doStuff() {
int x = 0;
x++;
if (x > 0) {
System.out.println("Bar");
}
return x;
}
}
import com.vladium.emma.rt.RT;
public class Foo {
private static final boolean $VRc[][]; /* synthetic field */
private static final long serialVersionUID = 0xfcfe2d92f94ba634L; /* synthetic field */
static {
boolean aflag[] = $VRi()[2];
aflag[0] = true;
### Eclipse Workspace Patch 1.0
#P antTrunk
Index: src/main/org/apache/tools/ant/util/PermissionsUtils.java
===================================================================
--- src/main/org/apache/tools/ant/util/PermissionsUtils.java (revision 0)
+++ src/main/org/apache/tools/ant/util/PermissionsUtils.java (revision 0)
@@ -0,0 +1,89 @@
+package org.apache.tools.ant.util;
+
+import java.io.File;
@rewbs
rewbs / UsefulCommands.sh
Created February 8, 2011 00:04
Useful commands
# 2011-02-08@11:06:53
date +"%Y-%m-%d@%T"
2011-10-06 18:43:59.196279500 Oct 6, 2011 6:43:59 PM com.sun.jersey.api.core.ResourceConfig validate
2011-10-06 18:43:59.196281500 WARNING: The interface com.gliffy.core.api.v1.DiagramResource, registered as a root resource class of the ResourceConfig cannot be instantiated. This interface will be ignored
2011-10-06 18:43:59.330117500 Oct 6, 2011 6:43:59 PM com.sun.jersey.server.impl.application.WebApplicationImpl newResourceClass
2011-10-06 18:43:59.330119500 WARNING: A resource class, class com.gliffy.core.api.v1.RootResource, does not have any resource method, sub-resource method, or sub-resource locator.
2011-10-06 18:43:59.360392500 2011-10-06 18:43:59,357 ERROR [TP-Processor3] [atlassian.plugin.servlet.DefaultServletModuleManager] getFilter Unable to create filter
2011-10-06 18:43:59.360393500 -- referer: https://rfernandes-conf.jira-dev.com/wiki/pages/createpage-entervariables.action?spaceKey=ds&templateId=0&confirm=Next | url: /wiki/rest/gliffy/1.0/templates.json | userName: rfernandes
2011-10-06 18:
-- referer: http://localhost:1990/wiki/display/FOO/Home | url: /wiki/pages/editpage.action | userName: sysadmin | action: editpage | page: 262149
com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'templates/html/gliffy-editor.html.vm'
at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100)
at com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33)
at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47)
at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:141)
at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel.getHtml(ConfluenceWebInterfaceManager.java:171)
at sun.reflect.GeneratedMethodAccessor465.invoke(Un