This file contains hidden or 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
'use strict'; | |
// node deps | |
const path = require('path'); | |
const os = require ('os'); | |
const fs = require('fs'); | |
// npm deps | |
const noble = require('noble'); | |
const Netatmo = require('netatmo'); |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<style type="text/css"> | |
body { | |
Background: #222; | |
} |
This file contains hidden or 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
var config = require('config.js'), | |
twitter = require('twitter.js'); | |
twitter.initialize(config.twitter); | |
simply.text({ | |
title: 'Haiku tweet', | |
subtitle: 'press select button', | |
body: 'powered by http://haiku.jgate.de/' | |
}, true); |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Auto haiku | |
haikus ||= []; | |
Earthquake.init do | |
output_filter do |item| | |
next if item.nil? || item["text"].nil? || item["retweeted_status"] | |
id = item["id"] | |
screen_name = item["user"] ? item["user"]["screen_name"] : nil | |
myname = twitter.info["screen_name"] |
This file contains hidden or 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
;;------------------------------------------------------------------------------ | |
;; helm | |
;;------------------------------------------------------------------------------ | |
(require 'helm-config) | |
(require 'helm-command) | |
(require 'helm-descbinds) | |
(require 'helm-ls-git) | |
(require 'helm-imenu) | |
(require 'helm-gtags) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
require 'moji' | |
Earthquake.init do | |
command :kensaku do |m| | |
str = m[1] + " " * 3 | |
body = Moji.han_to_zen str | |
len = body.size | |
head = "━" * len | |
tail = "━" * len |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
Earthquake.init do | |
output_filter do |item| | |
next unless item["user"] && item["text"] | |
account = item["user"]["screen_name"] | |
id = item["id"] | |
txt = item["text"] | |
res = %w|おいしそう うまそう わたしも食べたい〜 美味しそう| |
This file contains hidden or 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
Earthquake.init do | |
command %r|^:hisaichi\s+(.+)$|, :as => :hisaichi do |m| | |
str = URI.escape(m[1]) | |
response = Net::HTTP.get('www11268ue.sakura.ne.jp','/generator?text=' + str, 5001) | |
strings = JSON.parse(response)["text"] | |
input(strings) | |
end | |
end | |
# http://hisaichi5518.hatenablog.jp/entry/2013/07/09/111503 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
Earthquake.init do | |
command %r|^:mugon\s*([^\d]+)*\s*(\d+)*|,:as=> :mugon do |m| | |
str = m[1] ? m[1] : '' | |
input(str + "" * (m[2] ? m[2].to_i : 1)) | |
end | |
end |
This file contains hidden or 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
<!Doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>angle meter sample</title> | |
<style type="text/css"> | |
.container{ | |
width: 200px; | |
text-align: center; | |
padding: 20px; |
NewerOlder