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
$ plugin --url 'https://github.com/f-kubotar/elasticsearch-flavor/releases/download/v0.0.2/elasticsearch-flavor-0.0.3.zip' --install flavor |
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
// 画像をpngとかjpegにエンコードするライブラリです。 | |
// https://code.google.com/p/as3corelib/downloads/list | |
import com.adobe.images.*; | |
// バイナリをBase64エンコードするライブラリです。 | |
// http://crypto.hurlant.com/ | |
import com.hurlant.util.Base64; | |
// SUZURIにPOSTする | |
function postSuzuri(event: MouseEvent): void { |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt10(x float64) float64 { | |
var z float64 = x | |
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
# hoge という字の画像を生成 | |
$ convert -size 200x200 -background transparent -fill black -gravity Center label:hoge png:- | \ | |
# それをbg.png と合成する | |
$ convert -composite - bg.png hoge.png |
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
LDFLAGS=" -L/app/vendor/libjpeg-turbo-1.3.1/lib -L/app/vendor/libpng-1.6.12/lib $LDFLAGS" ./configure --prefix=/app/vendor/imagemagick-6.8.9-3 --enable-shared=no --enable-static=yes |
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
$ npm install --save coffee-script |
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
convert -resize 323x323 -unsharp 2x1.4+0.5+0 hoge.png fuga.png |
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
$(function() { | |
$('.lens-image').each(function() { | |
var img = this | |
, src = this.src | |
, loader = new Image; | |
if (!this.complete || (!img.naturalWidth === 0)) { | |
img.src = './img/animation.gif'; | |
loader.src = src; | |
loader.onload = function() { |
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
fs = require 'fs' | |
gm = require 'gm' | |
im = gm.subClass imageMagick: true | |
{PassThrough} = require 'stream' | |
stream = fs.createReadStream '/Users/hadashi/tmp/20.png' | |
stream2 = new PassThrough | |
stream3 = new PassThrough |
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
{exists} = require('fs') | |
{EventEmitter} = require('events') | |
{resolve, join} = require('path') | |
{filter} = require('async') | |
http = require('http') | |
cordell = require('cordell') | |
{config} = require('./config') | |
class BrunchServer extends EventEmitter |