@rfc4627 rotate [角度]
アイコンを右に回します。
@rfc4627 shindan [診断のID] [診断する名前]
自動で 診断メーカーします。ID はURL末尾の数字です。
var Command = require('../lib/command.js'), | |
exec = require('child_process').exec, | |
MeCab = require('mecab-async'), | |
mecab = new MeCab(); | |
var say = new Command(function(twit, status, CONFIG){ | |
if(status.retweeted_status) status = status.retweeted_status; | |
mecab.parse(status.text, function(err, result){ | |
if(!err){ |
var Command = require('../../lib/command.js'), | |
async = require('async'), | |
split = require('./split.js'), | |
exec = require('child_process').exec; | |
var say = new Command(function(twit, status, CONFIG){ | |
if(status.retweeted_status){ | |
status = status.retweeted_status |
root@beaglebone:~# npm ls -g | |
/usr/local/lib | |
├─┬ bonescript@0.2.4 | |
│ ├─┬ epoll@0.0.7 | |
│ │ └── nan@0.4.4 | |
│ ├─┬ express@3.1.0 | |
│ │ ├── buffer-crc32@0.1.1 | |
│ │ ├── commander@0.6.1 | |
│ │ ├─┬ connect@2.7.2 | |
│ │ │ ├── bytes@0.1.0 |
PublicHair API | |
An API that generates public hair image. Outputs PNG, JPEG, Animated GIF, SVG and JSON. | |
API Endpoint is "/v1/[width]x[height].[type]". Max size is 1024x1024. If type is "gif", max size is 512x512. | |
Parameters | |
amount: Specifies number of hair. defaults to 15. max is 1000. |
#LiveScript メモ | |
#関数定義 | |
add = (x, y) --> x + y | |
add 5 6 #=> 11 | |
#中置記法 | |
4 `add` 6 #=> 10 |
var fs = require('fs'); | |
var inImageData = false; | |
var o = Math.random() * 255 | 0, | |
r = Math.random() * 255 | 0; | |
var orig = fs.readFileSync('./original.jpg'), | |
glit = new Buffer(orig.length); |
@rfc4627 rotate [角度]
アイコンを右に回します。
@rfc4627 shindan [診断のID] [診断する名前]
自動で 診断メーカーします。ID はURL末尾の数字です。
var glitch = module.exports = function(origData, params){ | |
if( | |
checkType(params, 'params', 'object') | |
){ | |
var params = getNormalizedParameters(params), | |
jpg_header_length = getJpegHeaderSize(origData); |
// アレの commands/ に入れる | |
var Command = require('../lib/command.js'), | |
request = require('request'); | |
var fabeep = new Command(function(twit, data, CONFIG){ | |
request.get({ | |
'uri': 'http://192.168.7.2:8123/beep' // ←ここ適当に変えろ | |
}, function(){}); // ←エラーはにぎりつぶす | |
}); |