This file contains 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
#include <stdio.h> | |
int main(void) { | |
double d = 1234567890; | |
double *dp = &d; | |
long l = (double) d; | |
long *lp = (long *) dp; | |
union dl_t { | |
double d; | |
long l; |
This file contains 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
*** ImageMagick-6.1.2-7/coders/gif.c 2004-10-22 04:34:42.000000000 +0900 | |
--- ImageMagick-6.1.3-7/coders/gif.c 2013-05-29 21:57:41.911236886 +0900 | |
*************** | |
*** 1285,1293 **** | |
GetQuantizeInfo(&quantize_info); | |
quantize_info.dither=IsPaletteImage(image,&image->exception) == | |
MagickFalse ? MagickTrue : MagickFalse; | |
! if ((LocaleCompare(write_info->magick,"GIF87") == 0) || | |
! (image->matte == MagickFalse)) | |
! (void) QuantizeImage(&quantize_info,image); |
This file contains 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
yoya@sakura:~$ ~/ImageMagick/6.1.2-qi/bin/convert a-[0-7].png a.gif | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
QuantizeImage numcols=255 | |
yoya@sakura:~$ ~/ImageMagick/6.1.3-qi/bin/convert a-[0-7].png a.gif |
This file contains 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
ackage main | |
// http://blog.golang.org/go-image-package | |
// http://d.hatena.ne.jp/taknb2nch/20131231/1388500659 | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/draw" |
This file contains 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 ( | |
"flag" | |
"fmt" | |
"github.com/gographics/imagick/imagick" | |
"os" | |
) | |
func main() { |
This file contains 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 o = {}; | |
Object.defineProperty(o, 'a', { | |
get: function() { return this.value*2; }, | |
set: function(v) { this.value = v*3; }, | |
}); | |
o.a = 5; | |
console.log(o); |
This file contains 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 | |
// http://blog.golang.org/go-image-package | |
// http://d.hatena.ne.jp/taknb2nch/20131231/1388500659 | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" |
This file contains 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 | |
// http://blog.golang.org/go-image-package | |
// http://d.hatena.ne.jp/taknb2nch/20131231/1388500659 | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" |
This file contains 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 | |
// http://blog.golang.org/go-image-package | |
// http://d.hatena.ne.jp/taknb2nch/20131231/1388500659 | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" |
This file contains 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 | |
// http://blog.golang.org/go-image-package | |
// http://d.hatena.ne.jp/taknb2nch/20131231/1388500659 | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" |
OlderNewer