Skip to content

Instantly share code, notes, and snippets.

@hadashiA
hadashiA / file0.txt
Created April 16, 2014 13:28
jsの設定ファイルをcoffeeで書く方法 ref: http://qiita.com/hadashiA/items/2b51bdbecf65a6f25ef7
$ npm install --save coffee-script
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
@hadashiA
hadashiA / file0.txt
Last active August 29, 2015 14:10
Imagemagickの高速化 mprとmpc ref: http://qiita.com/hadashiA/items/bf10881943a41fee238d
# hoge という字の画像を生成
$ convert -size 200x200 -background transparent -fill black -gravity Center label:hoge png:- | \
# それをbg.png と合成する
$ convert -composite - bg.png hoge.png
package main
import (
"fmt"
"math"
)
func Sqrt10(x float64) float64 {
var z float64 = x
// 画像を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 {
@hadashiA
hadashiA / file0.txt
Last active March 4, 2016 08:29
Elasticsearchを使ってレコメンデーションする ref: http://qiita.com/hadashiA/items/9a418df95f8611c041a2
$ plugin --url 'https://github.com/f-kubotar/elasticsearch-flavor/releases/download/v0.0.2/elasticsearch-flavor-0.0.3.zip' --install flavor
class A
end
A.class_variable_set :@@yamero, 'yamero'
p A.class_variable_get :@@yamero
fork do
p A.class_variable_get :@@yamero
exit
using System.Diagnostics;
using UnityEngine;
public class FatClass
{
public long M01;
public long M02;
public long M03;
public long M04;
public long M05;
Shader "ShaderDrill/0327/Subtractive"
{
Properties {
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
}
SubShader
{
Tags
Shader "ShaderDrill/0327/Fresnel"
{
Properties
{
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
_FresnelColor ("Fresnel Color", Color) = (1,1,1,1)
_FresnelBias ("Fresnel Bias", Float) = 0
_FresnelScale ("Fresnel Scale", Float) = 1
_FresnelPower ("Fresnel Power", Float) = 1