JingJia's Notes

Quick notes

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

微信小程序环境搭建 -- labrador + redux + immutable

发表于 2016-11-16   |   分类于 架构   |  

现有公司web项目是reactjs + redux + immutable 开发的,这两天看了下微信小程序,网上看了下相关的一些资料,

微信小程序 redux

微信小程序 模块化开发 labrador

相关例子

完了结合自己之前的项目架构,重新组织了下代码结构,最终结构

logo

效果图

logo

tcpdf - Display image in TCPDF using BLOB value

发表于 2016-11-01   |  

The API documentation for Image() explains it in more detail:

  • $file (string) Name of the file containing the image or a ‘@’ character followed by the image data string. To link an image without embedding it on the document, set an asterisk character before the URL

From example #9 - Image():

1
2
3
4
5
// Example of Image from data stream ('PHP rules')
$imgdata = base64_decode('iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABlBMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDrEX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg==');
// The '@' character is used to indicate that follows an image data stream and not an image file name
$pdf->Image('@'.$imgdata);

git

发表于 2016-10-31   |   分类于 开发环境   |  

git rm – remove the file or directory on the git repo

1
2
3
4
5
6
7
8
9
10
11
12
13
# -f, --force
# Override the up-to-date check.
# -n, --dry-run
# Don't actually remove any file(s). Instead, just show if they exist in the index and would otherwise be
# removed by the command.
# -r
# Allow recursive removal when a leading directory name is given.
$ git rm -r -n --cache protected/components/Util.php
$ git rm -r -n --cache protected/*
$ git rm -r -n --cache protected
阅读全文 »

imagick - create an irregular-shaped crop

发表于 2016-10-28   |   分类于 graphics;   |  

how to create an image whick is filled with pieces of irregular-shaped images, it’s a good practice for me to handle it.

阅读全文 »

博客搭建 - hexo + github + coding.net + next 主题

发表于 2016-10-27   |   分类于 开发环境   |  

前言

   从大学接触计算机,也能算一个10年的码农了,之前有个blog,但是好久没有更新了,也可能是太忙,也可能是懒了,什么东西都往Evernote里一放就完事了,没有很好的整理,最近突然想搭建一个自己的blog,找遍全世界,终于找打自己喜爱的,没错,就是hexo,简约清新,写法符合自己的习惯,闲聊至此。
   重新写blog的目的,一个是为了更好的总结自己的学习足迹,锻炼自己的表达,更重要的还能认识大家,一起学习交流。欢迎拍砖~~~

阅读全文 »
JingJiaGuo

JingJiaGuo

Pay it forword - IT's boy

5 日志
3 分类
8 标签
© 2016 JingJiaGuo
由 Hexo 强力驱动
主题 - NexT.Pisces