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
@DatabaseTable(name = "table") | |
public class Person implements TableObject { | |
@DatabaseColumn(position = 1, databaseName = "id", id = true) | |
private int id; | |
private String name; | |
@DatabaseColumn(position = 3, databaseName = "age") | |
private int age; |
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 org.apache.commons.collections.iterators.ArrayIterator; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
/** | |
* Represents a LinkedNode | |
*/ | |
public class LinkedNode<T> implements Iterable<LinkedNode<T>> { |
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 class ExponentialLevelCache extends LevelCache { | |
private final double modifier; | |
public ExponentialLevelCache(int maxLevel, int minLevel, double modifier) { | |
super(maxLevel, minLevel); | |
this.modifier = modifier; | |
} | |
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
find . -type f -name "*.doc" -exec sh -c "catdoc {} | head -1" \; |
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
#include <ao/ao.h> | |
#include <sndfile.h> | |
#include <signal.h> | |
#define BUFFER_SIZE 8192 | |
int cancel_playback; | |
void on_cancel_playback(int sig) { | |
if (sig != SIGINT) { |
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
int open_file(char *file_path, AVFormatContext **fmt_ctx, AVCodecContext **dec_ctx) { | |
int audio_stream_index; | |
AVCodec *codec; | |
// Find codec and stream | |
if (avformat_open_input(fmt_ctx, file_path, NULL, NULL) < 0) { | |
av_log(NULL, AV_LOG_ERROR, "Cannot open input file\n"); | |
return -1; | |
} |
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
cd qwt/ && make -f Makefile | |
make[1]: Verzeichnis „/root/GoldenCheetah/qwt“ wird betreten | |
cd src/ && make -f Makefile | |
make[2]: Verzeichnis „/root/GoldenCheetah/qwt/src“ wird betreten | |
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT -DQWT_NO_SVG -DQWT_NO_OPENGL -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc -o obj/qwt_abstract_scale_draw.o qwt_abstract_scale_draw.cpp | |
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT -DQWT_NO_SVG -DQWT_NO_OPENGL -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc -o obj/qwt_clipper.o qwt_clipper.cpp | |
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -Wall -W -D_REENTRANT |
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
clinfo: /opt/cuda/lib64/libOpenCL.so.1: no version information available (required by clinfo) | |
Number of platforms 1 | |
Platform Name AMD Accelerated Parallel Processing | |
Platform Vendor Advanced Micro Devices, Inc. | |
Platform Version OpenCL 2.0 AMD-APP (2442.7) | |
Platform Profile FULL_PROFILE | |
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices | |
Platform Extensions function suffix AMD | |
Platform Name AMD Accelerated Parallel Processing |
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
[Unit] | |
Description=Unified Remote Server | |
After=network.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/bin/bash /opt/urserver/urserver-start --no-manager --no-copy | |
ExecStop=/bin/bash /opt/urserver/urserver-stop | |
Environment=DISPLAY=: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
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com> | |
pkgname=golden-cheetah-git | |
pkgver=v3.5.DEV1705X.r70.ac18d98a | |
pkgrel=1 | |
pkgdesc="Cycling Power Analysis Software. We believe that cyclists and triathletes should be able to download their power data to the | |
computer of their choice, analyze it in whatever way they see fit, and share their methods of | |
analysis with others." | |
arch=('i686' 'x86_64') | |
url="http://www.goldencheetah.org/" | |
license=('GPL') |
OlderNewer