To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Bed extends Model | |
| { | |
| } |
| <div class="col-md-4" v-for="(index, group) in wards" track-by="$index"> | |
| <div class="ibox"> | |
| <div class="ibox-title"><strong>{{ index }}</strong></div> | |
| <div class="ibox-content"> | |
| <div class="col-md-2 bed" v-for="patient in group"> | |
| <a v-link="" v-if="patient.id" class="bed-default">{{ patient.bed_id }}</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| ... | |
| ... | |
| ... | |
| # Matches any URL containing /wp-content/uploads/ or /app/uploads/ (using bedrock) | |
| location ~ "^(.*)/app/uploads/(.*)$" { | |
| try_files $uri @prod_serv; |
| jQuery( function( $ ) { | |
| if ( 'undefined' === typeof FB ) | |
| return; | |
| if ( $( 'body' ).hasClass( 'single-post' ) || $( 'body' ).hasClass( 'page' ) ) { | |
| var $comments_div = $( '<div/>' ); | |
| $comments_div.addClass( 'fb-comments' ); | |
| $comments_div.attr( 'data-href', document.location ); | |
| $comments_div.appendTo( $( '.primary-content' ) ); |
| -- cd /var/discourse | |
| -- ./launcher enter app | |
| -- su discourse | |
| -- psql | |
| -- MOVE TOPICS CATEGORY | |
| -- CURRENT CATEGORY: 1 | |
| -- NEW CATEGORY: 2 | |
| UPDATE topics SET category_id = 2 WHERE category_id = 1; |
| resources :courses, except: :show do | |
| resources :chapters, except: :show do | |
| resources :lessons, except: :show do | |
| resources :attachments, except: :show | |
| end | |
| end | |
| end |
| <script type='text/x-handlebars' data-template-name='components/latest-topic-list-item'> | |
| <table> | |
| <tbody> | |
| <tr data-topic-id={{topic.id}} class="{{if topic.archived 'archived'}}"> | |
| <td class="main-link"> | |
| <tr> | |
| {{raw "topic-status" topic=topic}} | |
| {{topic-link topic}} | |
| {{#if topic.featured_link}} |
| const tailwindcss = require('tailwindcss') | |
| const autoprefixer = require('autoprefixer') | |
| const purgecss = require('@fullhuman/postcss-purgecss') | |
| module.exports = { | |
| plugins: [ | |
| tailwindcss('./tailwind.js'), | |
| autoprefixer({ | |
| add: true, | |
| grid: true |