Skip to content

Instantly share code, notes, and snippets.

@paulwoods
paulwoods / gist:1142106
Created August 12, 2011 14:06
gradle - exclude files from a jar.
jar {
manifest {
attributes "Implementation-Title": "Gradle Quickstart"
attributes "Implementation-Version": version
attributes "Main-Class" : "com.ti.specteam.programs.Application"
}
// remove the security files (from mail.jar / activation.jar) so that the jar will be executable.
@paulwoods
paulwoods / dragdroptable.js
Last active August 19, 2019 19:36
React DND sorts table trows in a tbody (react 16.9.0, react-beautiful-dnd 11.0.5)
import React from 'react';
import ReactDOM from 'react-dom';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
///////////////////////////////////////////////////////////////////////
class Tbody extends React.Component {
render() {
const { provided, innerRef, children } = this.props;
return <tbody {...provided.droppableProps} ref={innerRef}>