A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
| 1. Two space soft indents (fake tabs) OR tabs... BUT NEVER BOTH - DO NOT MIX | |
| 2. Whitespace, Parens, Braces, Linebreaks | |
| if/else/for/while/try always have spaces, braces and multiple lines. | |
| -------------------------------------------------------------------- | |
| <h1>Foo</h1> | |
| <h2>bar</h2> | |
| <h3>foobar</h3> | |
| <div> | |
| <h1>Foo</h1> | |
| <h2>bar</h2> | |
| <h3>foobar</h3> | |
| </div> |
| curl -I http://whos.amung.us/widget/dtosqdqleyjj.pnh | |
| HTTP/1.1 303 See Other | |
| Date: Mon, 20 Jan 2014 11:09:18 GMT | |
| Content-Type: text/html | |
| Connection: close | |
| Location: http://widgets.amung.us/classic/05/516.png | |
| Set-Cookie: uid=CgH9JlLdA96wISIIGbwBAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=whos.amung.us; path=/ | |
| set t_Co=256 | |
| if has('vim_starting') | |
| set nocompatible | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| NeoBundleFetch 'Shougo/neobundle.vim' |
| <script> | |
| a = 'Bug' | |
| r = {z: {x: a}, z: 'Not Bug!'} | |
| if(r.z == 'Not Bug!') | |
| document.write('<style>html{background: green}</style>') | |
| else | |
| document.write('<style>html{background: red}</style>') | |
| </script> |
| class CarouselCollection extends Backbone.Collection | |
| initialize: -> | |
| @currentIndex = 0 | |
| @step = 1 | |
| current: (value = null)-> | |
| @changeIndex @indexOf(value) if value | |
| @at @currentIndex | |
| changeIndex: (newIndex)-> |
| require 'delegate' | |
| class AbandonedTrialQuery < SimpleDelegator | |
| def initialize(relation = Account.scoped) | |
| super(relation.where(plan: nil, invites_count: 0)) | |
| end | |
| end |
| class String | |
| ACCENTED_VOWELS = "áàãâäéèêëíìîïóòõôöúùûüçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÔÖÚÙÛÜÇ" | |
| UNACCENTED_VOWELS = "aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC" | |
| def unaccentize | |
| self.tr ACCENTED_VOWELS, UNACCENTED_VOWELS | |
| end | |
| end |
A list of amazingly awesome PHP libraries, resources and shiny things.
A list of amazingly awesome PHP libraries, resources and shiny things.