Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):
class Shop extends Eloquent {}
Using custom table name
protected $table = 'my_shops';
| // Disable bold. | |
| term_.prefs_.set('enable-bold', false) | |
| // Use this for Solarized Dark | |
| term_.prefs_.set('background-color', "#002b36"); | |
| term_.prefs_.set('foreground-color', "#839496"); | |
| term_.prefs_.set('color-palette-overrides', [ | |
| '#073642', | |
| '#dc322f', |
| 1) Delete the line containing 'unicorn' from Gemfile | |
| 2) Add the following line under the "Servers" section | |
| gem "puma", "~> 1.6.3" | |
| 3) From /home/gitlab/gitlab run | |
| sudo bundle install --no-deployment | |
| 4) From /home/gitlab/gitlab run the install command that fits the database you are using, I use MySQL | |
| sudo -u gitlab -H bundle install --deployment --without development test postgres | |
| 5) Create a new file config/puma.rb. Put the following inside it | |
| #!/usr/bin/env puma |
HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
| <?php | |
| class ExampleTest extends TestCase { | |
| public function setUp() | |
| { | |
| parent::setUp(); | |
| DB::beginTransaction(); | |
| } |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| <?php | |
| namespace Acme\Validation\Capsule; | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\ConnectionResolver; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Connectors\ConnectionFactory; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Illuminate\Translation\FileLoader; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
The final result: require() any module on npm in your browser console with browserify
This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.
Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5