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
// g++ font_path_list.cxx $(pkg-config x11 --libs --cflags) | |
#include <X11/Xlib.h> | |
#include <cassert> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <iostream> | |
#include <iterator> |
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
// g++ $(pkg-config gtk+-2.0 --libs --cflags) gtk_dialog.cxx | |
#include <cstdlib> | |
#include <string> | |
#include <gtk/gtk.h> | |
#include <glib.h> | |
void ShowMessageBox(GtkMessageType type, std::string const& title, std::string const& message) |
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
#! /bin/sh | |
# Configuration validation subroutine script. | |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | |
# Free Software Foundation, Inc. | |
timestamp='2008-01-16' | |
# This file is (in principle) common to ALL GNU software. | |
# The presence of a machine in this file suggests that SOME GNU software |
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
(add-to-list 'load-path "~/Dropbox/config/emacs/site-lisp") | |
;; tab setting | |
(setq default-tab-width 4) | |
(setq c-basic-offset 4) | |
(setq c-auto-newline t) | |
(setq c-tab-always-indent nil) | |
;; transient-mark-mode | |
(transient-mark-mode 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
set(CMAKE_SYSTEM_NAME Generic) | |
set(CMAKE_SYSTEM_VERSION 1) | |
set(CMAKE_CROSSCOMPILING TRUE) | |
set(BUILD_SHARED_LIBS FALSE) | |
set(CMAKE_EXECUTABLE_SUFFIX ".elf") | |
# find executables | |
foreach(i "psp-config" "mksfo" "pack-pbp" "psp-fixup-imports" "psp-strip" "psp-prxgen" "psp-build-exports" "psp-gcc" "psp-g++") | |
string(REGEX REPLACE "-" "_" variable ${i}) |
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
<?php | |
// ========================================================= | |
// | |
// * Lilium * | |
// | |
// Tumblrの画像を保存されている最大サイズで一括保存するためのアレ | |
// | |
// ========================================================= | |
// | |
// * Usage * |
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
#!/usr/bin/env node | |
// script to get all image of target account like lilium.php | |
// process.argv[2] <- account name | |
// process.argv[3] <- directory | |
// process.argv[4] <- if 'quick' it will be quick mode | |
var fs = require('fs'); | |
var util = require('util'); | |
var http = require('http'); |
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
#!/usr/bin/env python | |
import sys | |
import zlib | |
import Image | |
print "// openning", sys.argv[1] | |
img = Image.open(sys.argv[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
#!/usr/bin/env node | |
// script to get all image of target account like lilium.php | |
// process.argv[2] <- account name | |
// process.argv[3] <- directory | |
// process.argv[4] <- if 'quick' it will be quick mode | |
var fs = require('fs'); | |
var util = require('util'); | |
var http = require('http'); |
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
# the name of the target operating system | |
set(CMAKE_SYSTEM_NAME Windows) | |
# which compilers to use for C and C++ | |
include(CMakeForceCompiler) | |
cmake_force_c_compiler(i586-mingw32msvc-gcc GNU) | |
cmake_force_cxx_compiler(i586-mingw32msvc-g++ GNU) | |
set(CMAKE_RC_COMPILER i586-mingw32msvc-windres) | |
# here is the target environment located |
OlderNewer