Skip to content

Instantly share code, notes, and snippets.

@nna774
nna774 / PKGBUILD
Last active August 29, 2015 13:55
menma font pkgbuild
# Contributor: NoNameA 774 <nonamea774@gmail.com>
pkgname=ttf-menma
pkgver=1
pkgrel=1
pkgdesc="Japanese TrueType fonts created by menma"
arch=('any')
url="http://www.anohana.jp/tv/special/font.html"
license=('custom')
depends=('fontconfig' 'xorg-font-utils')
# Contributor : NoNameA 774 <nonamea774@gmail.com>
pkgname=fortune-mod-fortune-2ch
pkgver=0.02
pkgrel=1
pkgdesc="UNIX fortune words ぷろでゅーすどばい Unix板の皆様@2ch.net"
url="http://pc.2ch.net/test/read.cgi/unix/991752573/"
arch=('any')
license=('custom')
depends=('fortune-mod' 'nkf')
@nna774
nna774 / GPIO.hpp
Last active August 29, 2015 13:56
gplv3 by nonamea774
#include "select.hpp"
#include <functional>
class GPIO{
public:
GPIO(std::function<void(Button)> _callback);
void waitButtonPushed(){
callback(select.getPushedButton());
}
private:
@nna774
nna774 / md5sum.rb
Last active August 29, 2015 14:01
@miku md5sum <text>
#-*- coding: utf-8 -*-
# https://github.com/penguin2716/mikutter_shell_post を参考に書いた
Plugin.create :md5sum_post do
UserConfig[:md5sum_post_with_post] ||= false
# postboxの中身をクリアしてイベントをキャンセル
def self.clear_post(gui_postbox)
Plugin.call(:before_postbox_post,
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text)
@nna774
nna774 / JsonParser.hs
Last active August 29, 2015 14:01
適当なパーサ
import Text.Parsec
import Text.Parsec.String
import Text.Parsec.Prim as Prim
data Board = Board { grid :: [[Int]]
, score :: Int
, won :: Bool
, points :: Int
, over :: Bool
, moved ::Bool
:: パッケージデータベースの同期中...
core は最新です
extra は最新です
community は最新です
外部のパッケージ: / 1 / 15 外部のパッケージ: - 2 / 15 外部のパッケージ: \ 3 / 15 外部のパッケージ: | 4 / 15 外部のパッケージ: / 5 / 15 外部のパッケージ: - 6 / 15 外部のパッケージ: \ 7 / 15 外部のパッケージ: | 8 / 15 外部のパッケージ: / 9 / 15 外部のパッケージ: - 10 / 15 外部のパッケージ: \ 11 / 15 外部のパッケージ: | 12 / 15 外部のパッケージ: / 13 / 15 外部のパッケージ: - 14 / 15 外部のパッケージ: \ 15 / 15
==> ソフトウェアの更新 (new version) :
-> 0.19.2-1 0.19.1-1 core/gettext
-> 4.1.10-1 4.1.9-1 extra/libwbclient
-> 4.1.10-1 4.1.9-1 extra/smbclient
@nna774
nna774 / -
Created August 5, 2014 13:15
8月 05 22:05:12 nona-MBA login[268]: (mount.c:68): Messages from underlying mount program:
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount: invalid option -- 'p'
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72):
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): Usage:
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount [-lhV]
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount -a [options]
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount [options] [--source] <source> | [--target] <directory>
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount [options] <source> <directory>
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72): mount <operation> <mountpoint> [<target>]
8月 05 22:05:12 nona-MBA login[268]: (mount.c:72):
@nna774
nna774 / -
Created August 5, 2014 15:09
● shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
Active: failed (Result: exit-code) since 水 2014-08-06 00:07:40 JST; 1min 27s ago
Process: 676 ExecStart=/usr/bin/grpck -r (code=exited, status=2)
Process: 673 ExecStart=/usr/bin/pwck -r (code=exited, status=0/SUCCESS)
Main PID: 676 (code=exited, status=2)
8月 06 00:07:40 nona-MBA grpck[676]: 行 'input:x::' を削除しますか? No
8月 06 00:07:40 nona-MBA grpck[676]: シャドウグループエントリが重複しています
8月 06 00:07:40 nona-MBA grpck[676]: 行 'systemd-journal:x::' を削除しますか? No
@nna774
nna774 / 1.cpp
Last active August 29, 2015 14:05
某アレで書いたなんか これ(https://github.com/nna774/HCSVParser) とはかんけいないよ?
#include <iostream>
#include <vector>
#include <memory>
#include <queue>
class Node;
class Node{
public:
unsigned value;
@nna774
nna774 / -
Created August 21, 2014 22:30
abs 2.4.4-2
autoconf 2.69-2
automake 1.14.1-1
bash 4.3.022-1
binutils 2.24-6
bison 3.0.2-1
btrfs-progs 3.14.2-3
bzip2 1.0.6-5
chromium 36.0.1985.143-1
cinnamon 2.2.14-2