Skip to content

Instantly share code, notes, and snippets.

@melpon
melpon / wandbox-sponsors.md
Last active March 2, 2022 05:31
Wandboxのスポンサー募集(締め切りました)

スポンサーの募集は締め切りました。以後は GitHub Sponsors に移行する予定です。

どのような募集をしていたか知りたい場合は履歴を確認してください。

WandboxのDB分析

Wandboxの2015年のデータを分析してみた。

対象データはSQLiteに永続化されたコード、つまりpermlinkの対象になってるコードだけ。 コードの実行回数ではないので注意(実行する方も一応ログ取ってるけど分析がめんどい)。

対象期間は2015年1月1日〜2015年12月31日。

総保存回数

#!python
"""Bootstrap distribute installation
If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::
from distribute_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools, set a download
python make.py > test.json
curl -v -H "Content-type: application/json" --data-binary "@test.json" http://melpon.org/wandbox/api/compile.json
@melpon
melpon / Makefile.patch
Last active August 29, 2015 14:22
誤家庭用
2369,2371d2368
< for files in $(BUILD_SDK_DIR)/tapset/*.stp; do \
< $(INSTALL_DATA) $${files} $(DESTDIR)${prefix}/tapset; \
< done
2462,2465d2458
< if ENABLE_DOCS
< ${mkinstalldirs} $(DESTDIR)$(docdir)/html
< cp -RP $(BUILD_IMAGE_DIR)/docs $(DESTDIR)$(docdir)/html
< endif
@melpon
melpon / build.sh
Last active August 29, 2015 14:22
mono 4.0.1 のビルド
# apt-get install git autoconf libtool automake
git clone https://github.com/mono/mono.git
cd mono
git checkout mono-4.0.1.44
patch configure.ac /path/to/patch/configure.ac.patch
./autogen.sh --prefix=/path/to/install --disable-nls
make get-monolite-latest
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe
make install
/* ========================================================================= */
int ZEXPORT deflateInit_(strm, level, version, stream_size)
z_streamp strm;
int level;
const char *version;
int stream_size;
{
return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
Z_DEFAULT_STRATEGY, version, stream_size);
/* To do: ignore strm->next_in if we use it as window */
@melpon
melpon / test.rst
Created March 20, 2014 05:58
reST の内部ターゲットテスト

正常系

hoge

fuga

moke

set -ex
if [[ ! -e ~/local/gcc-4.8.2/bin/g++ ]]; then
pushd ~/
PWD=`pwd`
# install gmp
wget http://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
tar xf gmp-5.1.2.tar.bz2
#ifndef EVENT_HPP_INCLUDED
#define EVENT_HPP_INCLUDED
/*
使い方:
#include <iostream>
#include "event.hpp"
struct Listener {