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
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
# 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
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
// 画像を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
$ 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
class A | |
end | |
A.class_variable_set :@@yamero, 'yamero' | |
p A.class_variable_get :@@yamero | |
fork do | |
p A.class_variable_get :@@yamero | |
exit |
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
using System.Diagnostics; | |
using UnityEngine; | |
public class FatClass | |
{ | |
public long M01; | |
public long M02; | |
public long M03; | |
public long M04; | |
public long M05; |
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
Shader "ShaderDrill/0327/Subtractive" | |
{ | |
Properties { | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
} | |
SubShader | |
{ | |
Tags |
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
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 |