This file contains 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
interface IShape {} | |
class Shape implements IShape {} | |
// Option A | |
interface IShapeFactory { | |
create(): Shape; | |
} | |
// Option B | |
interface IShapeFactory { |
This file contains 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
license: gpl-3.0 |
This file contains 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
I, Danilo Tuler, have read and do accept the MuleSoft Contributor Agreement | |
at http://www.mulesoft.org/legal/contributor-agreement.html | |
Accepted on Mon Jul 28 2014 21:06:00 GMT-0300 (BRT) |
This file contains 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
@Grab( 'commons-io:commons-io:2.1' ) | |
import org.apache.commons.io.FilenameUtils | |
// filename of video | |
def filename = this.args[0] | |
// base of filename | |
def basename = FilenameUtils.getBaseName(filename) | |
// width of final strip |
This file contains 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
@GrabResolver(name='xuggle', root='http://xuggle.googlecode.com/svn/trunk/repo/share/java/') | |
@Grab( 'xuggle:xuggle-xuggler:5.2' ) | |
import javax.imageio.ImageIO; | |
import java.io.File; | |
import java.awt.image.BufferedImage; | |
import com.xuggle.xuggler.Global; | |
import com.xuggle.xuggler.IContainer; | |
import com.xuggle.xuggler.IPacket; |
This file contains 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/ruby | |
# | |
# Migration Tool for Redmine issue and time entry comments from SVN revisions to Git (i.e. r1234 => commit:abcdef789) | |
# ============================== | |
# (c) 2009 Christoph Olszowka & Sebastian Georgi, Capita Unternehmensberatung | |
# | |
# We used this when we migrated two of our main repositories from svn to git (see http://gist.github.com/139478) | |
# and wanted to have our revision links in Redmine reflect that change, too. | |
# |