This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Repositories; | |
use Illuminate\Container\Container as App; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class Repository | |
* @package App\Repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Schema::create('table_name', function(Blueprint $table) { | |
$table->increments('id'); | |
$table->timestamps(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class names should be all lowercase. | |
* Class names should be separated by hyphens. | |
* IDs should not be used unless weird scenario requires them. | |
* Idents should never be more than 1 level deep (does not apply to pseudo selectors) | |
* Hex color codes should use uppercase characters. | |
*/ | |
.component-name { | |
.sub-element { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% include ../header %> | |
<div id="app"> | |
<div class="level"> | |
<div class="level-left"> | |
<label class="level-item"> | |
<input | |
type="checkbox" | |
v-model="showCompleted" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function a() { | |
var hello = "world"; | |
function b() { | |
alert(hello); | |
} | |
b(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: | |
title: Example data | |
version: 1.0.0 | |
swagger: '2.0' | |
paths: | |
'/data': | |
get: | |
summary: List data | |
description: List data | |
produces: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: TestApp | |
version: 1.0.0 | |
host: example.com | |
schemes: | |
- https | |
paths: | |
/test: | |
post: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
version: "1.0.0" | |
title: "someName" | |
host: "localhost:8080" | |
basePath: "/rest" | |
tags: | |
- name: "someTag" | |
schemes: | |
- "http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: Test API | |
version: '1' | |
schemes: | |
- http | |
basePath: /configuration | |
tags: | |
- name: configuration | |
paths: |