Skip to content

Instantly share code, notes, and snippets.

View btolfa's full-sized avatar

btolfa btolfa

  • Madrid, Spain
View GitHub Profile
This Gist contains code example snippets for Aspose.Words for C++.
[
{
"name": "SofleKeyboard",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
"x": 3,
@btolfa
btolfa / effective_modern_cmake.md
Created March 24, 2018 09:03 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

private static void resizeTable() {
//mainTable.getColumnModel().getColumn(0).setPreferredWidth(15); // здесь ошибка
for (int i = 0; i < mainTable.getColumnModel().getColumnCount(); i++) {
mainTable.getColumnModel().getColumn(i).setPreferredWidth(15); // а здесь ее нет
System.out.println(i);
System.out.println(mainTable.getColumnModel().getColumnCount());
}
}
package com.samples;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import com.thoughtworks.xstream.*;
import com.thoughtworks.xstream.io.xml.DomDriver;
package com.samples;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import com.thoughtworks.xstream.*;
import com.thoughtworks.xstream.io.xml.DomDriver;
package com.samples;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.ArrayList;