This file contains hidden or 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
LAME=lame | |
ID3V2=id3v2 | |
LAMEOPTS='--preset standard' | |
CDROM=/dev/sr0 | |
OUTPUTTYPE=mp3 | |
MAXPROCS=4 | |
LOWDISK=n |
This file contains hidden or 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
%% \todo{} command. | |
% | |
% Outputs red TODOs in the document. Requires \usepackage{color}. | |
% | |
% Usage: \todo{Document the TODO command.} | |
% | |
% Comment out second line to disable. | |
\newcommand{\todo}[1]{} | |
\renewcommand{\todo}[1]{{\color{red} TODO: {#1}}} |
This file contains hidden or 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
#!/bin/bash | |
declare -r MAIN=main | |
declare -r SOURCES=main.tex | |
declare -r OUTPUT_DIR=build | |
# Options | |
declare CONTINUOUS | |
function launch() { |
This file contains hidden or 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
class MyClass { | |
public: | |
// Takes ownership. | |
explicit MyClass(Dependency* dependency) : dependency(dependency) {} | |
private: | |
scoped_ptr<Dependency> dependency; | |
} |
This file contains hidden or 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 <vector> | |
using std::vector; | |
template <typename T> | |
void f() { | |
// Why is this illegal? | |
// vector<T>::iterator it; | |
// What does typename do here? |
This file contains hidden or 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 DataBindingLogic { | |
private Property<String> input1 = new Property<String>(null); | |
private Property<String> input2 = new Property<String>(null); | |
private Property<String> output = new Property<String>(null); | |
private CalculatorLogic logic = new CalculatorLogic(); | |
private Property<Object> button = new Property<String>(null) { | |
@Override protected void onChange(Object unused) { | |
output.set(logic.addStrings(input1.get(), input2.get())); | |
} |
This file contains hidden or 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 "tour.h" | |
#include <stdio.h> | |
#define IN_BOUND(x,y) ((x)>=0 && (y)>=0 && (x) < size && (y) < size) | |
int movesx[] = { -2, -1, 1, 2, 2, 1, -1, -2 }; | |
int movesy[] = { 1, 2, 2, 1, -1, -2, -2, -1 }; | |
int tour_length_f1(int size, int startx, int starty, int *moves) { | |
int curx = startx; |
This file contains hidden or 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
klatreplante:~% cat .synergy.conf | |
section: screens | |
klatreplante: | |
vannlilje: | |
end | |
section: links | |
klatreplante: | |
left = vannlilje | |
vannlilje: |
NewerOlder