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
#ifndef LIST_NODE_CLASS | |
#define LIST_NODE_CLASS | |
class Node { | |
protected: | |
Node *_next; // связь к последующему узлу | |
Node *_prev; // связь к предшествующему узлу | |
public: | |
Node (void); |
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
import java.util.Random; | |
/** | |
* @author apupeikis | |
*/ | |
public class EasyCipher { | |
private final String key; | |
public EasyCipher(String key) { | |
this.key = key; |
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
// shrinking an image size on any magnitude | |
BufferedImage image = changeImageWidth(image, image.getWidth() / 2); | |
ConvolveOp gaussianFilter = getGaussianBlurFilter(BLUR_SIZE, true); | |
image = gaussianFilter.filter(image, null); | |
gaussianFilter = getGaussianBlurFilter(BLUR_SIZE, false); | |
image = gaussianFilter.filter(image, null); | |
ColorTintFilter colorMixFilter = new ColorTintFilter(Color.WHITE, 0.4f); | |
image = colorMixFilter.filter(image, null); | |
//yet another image operations.... | |
// now bring it back!!! |
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
Introduction. | |
Hello, and welcome to the Happy October 2010 Newsletter! | |
Halloween is just around the corner, but nothing in this newsletter will be sc... | |
BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO! | |
HA HA! Just kidding. This is not going to be a scary newsletter because I... |
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
package com.apleben.graphics.SteelSeriesSet; | |
import eu.hansolo.steelseries.gauges.AbstractGauge; | |
/** | |
* @author apupeikis | |
*/ | |
public interface GaugeOperation { | |
AbstractGauge init(int w, int h); | |
AbstractGauge init(); |
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
import java.util.*; | |
public class RedBlackTree<T extends Comparable<T>> { | |
/* | |
Red/Black tree implementation based on | |
Algorithms in C++, Sedgewick |
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
// define a visitor class | |
public interface NodeVisitor { | |
public void visit(RedBlackTree node,int depth); | |
} | |
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/env ruby | |
class RedBlackTree | |
#Red/Black tree implementation based on | |
#Algorithms in C++, Sedgewick | |
#Introduction To Algorithms Cormen, Thomas H. / Leiserson, Charles E . / Rivest, Ronald L . The MIT Press 07/1990 | |
RED = 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
public void checkLanguage(Language lang) throws Exception { | |
if(lang.getName().equals("Java")) { | |
System.out.println("Warning! Hot!"); | |
} else { | |
throw new LooserException(); | |
} | |
} |
NewerOlder