A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| 'use strict'; | |
| angular.module('wordpress', []) | |
| .service( 'wpService', | |
| function($http, $q){ | |
| var url = 'http://allin.local/wp-json/'; | |
| return({ |
| /* | |
| <a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
| Add this to your view: | |
| <script> | |
| window.csrfToken = '<?php echo csrf_token(); ?>'; |
| { | |
| "analytics": false, | |
| "directory": "resources/assets/vendor" | |
| } |
| // Dependencies | |
| // - https://github.com/carolineschnapp/currencies | |
| // Don't change currency if Cookie has been already set | |
| if (Currency.cookie.read() == null) { | |
| jQuery.ajax( { | |
| url: '//freegeoip.net/json/', | |
| type: 'GET', | |
| dataType: 'jsonp', |
| server { | |
| listen 80; | |
| server_name site.production.designcompany.com; | |
| root /home/forge/site.production.designcompany.com/public; | |
| # enable gzip compression | |
| gzip on; | |
| gzip_min_length 1100; | |
| gzip_buffers 4 32k; | |
| gzip_types text/plain application/x-javascript image/svg+xml text/xml text/css; |
| <form method="post" action="" id="login-form" accept-charset="UTF-8"> | |
| <input type="hidden" name="action" value="users/login"> | |
| <input type="hidden" name="redirect" value="{{redirect}}"> | |
| <div class="form-group"> | |
| <label for="email">Email</label> | |
| <input id="email" type="text" name="loginName" class="form-control"> | |
| </div> | |
| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |
| function wp_api_encode_acf($data,$post,$context){ | |
| $data['meta'] = array_merge($data['meta'],get_fields($post['ID'])); | |
| return $data; | |
| } | |
| if( function_exists('get_fields') ){ | |
| add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3); | |
| } |
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |