Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
WP Bag of Tricks | |
1. Helpful Scripts/Plugins: | |
Hacks: | |
http://wordpress.org/extend/plugins/tac/ | |
http://wordpress.org/extend/plugins/exploit-scanner/ (Can be extremely resource intensive.) | |
http://wordpress.org/extend/plugins/wp-malwatch/ |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# README Boilerplate | |
A template of README best practices to make your README simple to understand and easy to use. | |
## Installation | |
Download to your project directory, add `README.md`, and commit: | |
```sh | |
curl -LO http://git.io/Xy0Chg |
Free Public License | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
The MIT License (MIT) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> |
// Many of you may know this already, but for those who don't this is really handy for building dropdowns | |
// Suppose you want to show a categories dropdown whose information is pulled from an Eloquent model | |
// You can use the query builder's "lists" method (available for Eloquent as any query builder method) which | |
// returns an associative array you can pass to the Form::select method | |
$categories = Category::lists('title', 'id'); | |
// note that the parameters you pass to lists correspond to the columns for the value and id, respectively | |
// in this case, "title" and "id" |