Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Drupal\batch_example\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class DeleteNodeForm.
*
http://www.ruilog.com/blog/view/5267.html
团队用git 管理代码,公司则用svn, 需要定期将代码同步到svn归档
1. 安装 git svn 插件
apt-get install git-svn
2. 建立本地 git-svn 库
本地代码目录为 /opt/src/search-git
为 git-svn 建立新目录 /opt/src/search-svn
cd /opt/src/
git svn clone -s http://192.168.48.100/svn/resource/search search-svn
@zhangludi
zhangludi / cls_template.php
Created July 18, 2016 07:10 — forked from wudi/cls_template.php
ECshop preg_replace /e 修饰符修复(本文件可直接替换2.7.3)
<?php
/**
* ECSHOP 模版类
* ============================================================================
* * 版权所有 2005-2012 上海商派网络科技有限公司,并保留所有权利。
* 网站地址: http://www.ecshop.com;
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
* 使用;不允许对程序代码以任何形式任何目的的再发布。
@zhangludi
zhangludi / doc_to_html.sh
Created December 14, 2015 11:50 — forked from nasirkhan/doc_to_html.sh
convert .doc to .html using libreoffice command
# the following command will convert all the files to HTML which has the DOC extension.
find . -name "*.DOC" -type f -print0 |xargs -0 -I {} libreoffice --headless --convert-to html:HTML --outdir /home/nasir/output {}
@zhangludi
zhangludi / install_ffmpeg_ubuntu.sh
Created November 3, 2015 08:00 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@zhangludi
zhangludi / PhpStorm Keymap
Last active September 8, 2015 04:34 — forked from ionauq/PhpStorm Keymap
PhpStorm快捷键
### Editing ###
`Ctrl + Space` 基本代码完成(任意类的,方法的或者变量的名称)
`Ctrl + Shift + Enter` 补全当前语句
`Ctrl + P` Parameter info (within method call arguments)
`Ctrl + Q` 快速查找文档
`Ctrl + 鼠标滑过` 简明信息查看
`Ctrl + F1` 在插入符号处显示错误或者警告信息
`Alt + Insert` 生成代码...(Getters,Setters,Constructors)
`Ctrl + O` 重写方法
`Ctrl + I` 实现方法