Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| using System; | |
| using System.Text.RegularExpressions; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| namespace Extensions | |
| { | |
| public static class StringExtensions | |
| { | |
| private const string UrlPattern = "(ht|f)tps?:\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?"; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| var a = { | |
| 'key' : 'value', | |
| 'foo' : 'bar' | |
| }; | |
| var b = { | |
| 'foo' : 'bar', | |
| 'key' : 'value' | |
| }; |
| git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive | |
| git submodule add https://github.com/msanders/snipmate.vim.git bundle/snipmate | |
| git submodule add https://github.com/tpope/vim-surround.git bundle/surround | |
| git submodule add https://github.com/tpope/vim-git.git bundle/git | |
| git submodule add https://github.com/ervandew/supertab.git bundle/supertab | |
| git submodule add https://github.com/sontek/minibufexpl.vim.git bundle/minibufexpl | |
| git submodule add https://github.com/wincent/Command-T.git bundle/command-t | |
| git submodule add https://github.com/mitechie/pyflakes-pathogen.git | |
| git submodule add https://github.com/mileszs/ack.vim.git bundle/ack | |
| git submodule add https://github.com/sjl/gundo.vim.git bundle/gundo |
| # losslessly concat mp4 files | |
| ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts | |
| ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts | |
| ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4 | |
| # concat files with the same format | |
| # 1. create a file list | |
| file '/path/to/file1' | |
| file '/path/to/file2' | |
| file '/path/to/file3' |
This is only a summary. For a full list of changes see the NEWS file.
| Feature | RFC / announcement | Author |
|---|---|---|
| Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
| # Add multimedia source | |
| echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
| echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
| apt-get update | |
| apt-get install deb-multimedia-keyring # if this aborts, try again | |
| apt-get update | |
| # Go to local source directory | |
| cd /usr/local/src |
| root/ | |
| |-- scss/ # https://gist.github.com/ademilter/746cb307f14bd4e32de1#file-scss | |
| | | |
| |-- js/ # Script klasörü | |
| | |-- plugin/ - Eklentilere ait scriptler | |
| | |-- pages/ - Sayfalara özel scriptler | |
| | |-- plugin.js - Plugin klasöründeki dosyaları bu dosya içinde birleştiriyoruz | |
| | |-- main.js - Global olan bütün scriptleri buraya yazıyoruz | |
| | | |
| |-- img/ # Ham tasarım ve sprite gibi dosyalar (psd, sketch, ai, vs...) |