Skip to content

Instantly share code, notes, and snippets.

View Akkiesoft's full-sized avatar

Akira Ouchi Akkiesoft

View GitHub Profile
Process: CotEditor [89737]
Path: /Applications/CotEditor.app/Contents/MacOS/CotEditor
Identifier: com.coteditor.CotEditor
Version: 3.0.0 (154)
App Item ID: 1024640650
App External ID: 818886408
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: CotEditor [89737]
User ID: 501
/Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/uri/generic.rb:769:in `check_path': bad component(expected absolute path component): /Users/akkie/Desktop/スクリーンショット 2016-12-09 15.17.52.png
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/uri/generic.rb:817:in `path='
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/uri/generic.rb:191:in `initialize'
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/uri/generic.rb:136:in `new'
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/2.3.0/uri/generic.rb:136:in `build'
from /Users/akkie/mikutter_dev/core/plugin/photo/model/photo.rb:25:in `[]'
from /Users/akkie/mikutter_dev/core/plugin/photo/photo.rb:10:in `block (2 levels) in <top (required)>'
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pluggaloid-1.1.1/lib/pluggaloid/filter.rb:28:in `filtering'
from /Users/akkie/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pluggaloid-1.1.1/lib/pluggaloid/event.rb:59:in `block (2 levels) in filtering'
from /Users/akkie/.rbenv/v
@Akkiesoft
Akkiesoft / rpi-1-1-network.md
Created January 13, 2017 04:51
Raspberry Pi 1:1ネットワーク

Raspberry Pi 1:1ネットワーク

ざっくり

  • Macは何も考えずにraspberrypi.localで接続できる
  • Linuxはなんかだめ

前提

  • Raspberry Piを以下のいずれかの方法で接続
@Akkiesoft
Akkiesoft / test.rb
Created February 15, 2017 15:29
WindowをだしてPangoで文字を表示するテスト。
require 'gtk2'
require "pango"
uiiindow = Gtk::Window.new()
uiiindow.title = "font test"
uiiindow.set_default_size(500, 100)
uiiindow.signal_connect("destroy") {
puts "destroy event occurred"
Gtk.main_quit
false
@Akkiesoft
Akkiesoft / escpos_japanese_test.py
Created April 9, 2017 13:04
ESCPOSで日本語を試そうとしているスクリプト(うごかない)
# -*- coding: utf-8 -*-
# python_escpos-3.0a1.dev1+ng5078c49-py3.4.egg
from escpos import *
class CustomUsb(printer.Usb):
def raw(self, code):
self._raw(code)
def text_jis(self, str):
@Akkiesoft
Akkiesoft / dotphatdot.html
Last active May 21, 2017 12:57
PimoroniのMicro Dot pHATでフォント作るのに便利なてきとうなドットエディタ
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<title>Dot Editor for Micro Dot pHAT</title>
<script>
$(function() {
var pushed = false;
var code = [0,0,0,0,0];
@Akkiesoft
Akkiesoft / yometab_bone.rb
Created May 28, 2017 11:29
あいちゃんの画像から骨を作るバージョンのmikutter_yometab. yysk_wp5.jpgを読み込んだ後設定画面でapplyを連打する
# -*- coding:utf-8 -*-
################################################################################
## mikutter_yome
## https://github.com/Akkiesoft/yometab
##
Plugin.create :yometab do
@yometab_table = {
'yome' => '嫁',
'tsuma' => '妻',
@Akkiesoft
Akkiesoft / what.txt
Created July 24, 2017 10:20
なにこれ
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: ipv6.kokuda.org
Type: connection
Detail: Error getting validation data
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
@Akkiesoft
Akkiesoft / bokeeeee.php
Created July 28, 2017 05:48
何にも再利用できないゴミ
<?php
$a = file("nyan.txt", FILE_IGNORE_NEW_LINES);
$renhou = array();
foreach($a as $i) {
$pon = explode("#", $i);
$toyoda = explode("_", $pon[0]);
$inada = explode(",", $pon[2]);
$renhou[$toyoda[1]][$toyoda[0]][$toyoda[2]][$inada[0]] = $inada[1];
}
@Akkiesoft
Akkiesoft / waveshare-2.13-epaper-png.py
Created August 2, 2017 15:19
The script that showing PNG image for waveshare 2.13 Inch e-Paper module.
# The script that showing PNG image for waveshare 2.13 Inch e-Paper module.
import time
import spidev as SPI
import EPD_driver
import datetime
from PIL import Image
xDot = 122
yDot = 250