$mingw-get install pthread
$mingw-get install autotools
//+build windows | |
package colorterm | |
import ( | |
"syscall" | |
"unsafe" | |
) | |
type ( |
// from http://www.goinggo.net/2013/11/using-log-package-in-go.html | |
import ( | |
"io" | |
"log" | |
) | |
var ( | |
_TRACE *log.Logger | |
_INFO *log.Logger |
#ifdef WIN32 | |
#include <windows.h> | |
double get_time() | |
{ | |
LARGE_INTEGER t, f; | |
QueryPerformanceCounter(&t); | |
QueryPerformanceFrequency(&f); | |
return (double)t.QuadPart/(double)f.QuadPart; | |
} |
#include <clang-c/Index.h> | |
#include <cstdlib> | |
#include <iostream> | |
/* | |
* Compile with: | |
* g++ complete.cc -o complete -lclang -L/usr/lib/llvm | |
* Run with: | |
* LIBCLANG_TIMING=1 ./complete file.cc line column [clang args...] | |
*/ |
$ pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb winpty | |
$ cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON -DPYTHON_INCLUDE_DIR=/mingw64/include/python2.7 -DPYTHON_LIBRARY=/mingw64/lib/libpython2.7.dll.a . ../third_party/ycmd/cpp | |
$ cmake --build . --target ycm_core --config Release |
In SWFTools a programs called gfx2gfx
is available to do this task, but it's not officially available precompiled.
It can convert SWF, PDF or image to SWF, PDF, ebook or image.
For discard downscaling for rasterized image (default: 72dpi) we use the provided by @m-p-y: add -r
attribute to increase maxdpi
// javac whetstc.java | |
// java whetstc | |
import java.util.*; | |
import java.io.*; | |
public class FloatDebug | |
{ |
I [tweeted this already][1] but I thought it could use some expansion:
Enable decentralized git workflow: git config alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"
Say you use a git workflow that involves working with a core "official" repository that you pull and push your changes from and into. I'm sure many companies do this, as do many users of git hosting services like Github.
Say that server, or Github, goes down for a bit.