- Example is based on Qt online help.
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
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Iterator; | |
| import org.apache.poi.hssf.usermodel.HSSFCell; | |
| import org.apache.poi.hssf.usermodel.HSSFRow; | |
| import org.apache.poi.hssf.usermodel.HSSFSheet; | |
| import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
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 | |
| # Converts HTML from https://exportmyposts.jazzychad.net/ exports to Markdown | |
| POSTS_DIR=/Users/richard/Desktop/d6y/posts | |
| for file in $POSTS_DIR/*.html | |
| do | |
| echo $file |
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
| REM This file converts all of the Markdown files to HTML. | |
| REM Converting in the current directory | |
| REM %%~ni returns just the filename of %%i, not its extension | |
| for %%i in (*.markdown) do pandoc -f markdown -t html5 %%~ni.markdown > html/%%~ni.html | |
| REM Converting a subdirectory - just slap it on front | |
| for %%i in (report_pages/*.markdown) do pandoc -f markdown -t html5 report_pages/%%~ni.markdown > html/report_pages/%%~ni.html |
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
| find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
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
| // for checkg support C++ (using g++) | |
| // | |
| // g++ -std=c++98 main.cpp | |
| // g++ -std=c++03 main.cpp | |
| // g++ -std=c++0x main.cpp | |
| // g++ -std=c++11 main.cpp | |
| // g++ -std=c++14 main.cpp | |
| // g++ -std=c++17 main.cpp | |
| #include <iostream> |
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
| // fileA.js | |
| let a = 3; | |
| let b = 4; | |
| exports.sum = function(c, d) { | |
| console.log( "[fileA] sum() : a = " + a ); | |
| console.log( "[fileA] sum() : b = " + b ); | |
| console.log( "[fileA] sum() : c = " + c ); | |
| console.log( "[fileA] sum() : d = " + d ); | |
| return a + b + c + d; |
์ถ์ฒ: https://gist.github.com/epicserve/1219858
This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.
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
| // For V8: | |
| // Define global variable `__stack__` and `__line` | |
| // for current stack and line | |
| (function(global){ | |
| Object.defineProperty(global, '__stack__', { | |
| get: function(){ | |
| var orig = Error.prepareStackTrace; | |
| Error.prepareStackTrace = function(_, stack){ return stack; }; | |
| var err = new Error; | |
| Error.captureStackTrace(err, arguments.callee); |
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
| // rw-test.cpp | |
| #include <QCoreApplication> | |
| #include <QtCore> | |
| #include <QDebug> | |
| #include "xlsxdocument.h" | |
| #include "xlsxchartsheet.h" | |
| #include "xlsxcellrange.h" | |
| #include "xlsxchart.h" |