A few sentences describing the overall goals of the pull request's commits.
- Tested and working locally
- New API endpoints documented
- Unit tests (if appropriate)
- Integration tests (if appropriate)
<?php | |
$images = get_field('floorplans'); | |
if( $images ): ?> | |
<div id="slider" class="flexslider"> | |
<div class="col-md-3"> | |
<?php foreach( $images as $image ): ?> | |
<a href="<?php echo $image['url']; ?>" data-lightbox="floorplans"><img src="<?php echo $image['sizes']['medium']; ?>" alt="<?php echo $image['alt']; ?>" /></a> | |
<?php endforeach; ?> | |
</div> |
app.directive('inputMaxlength', function() { | |
return { | |
require: 'ngModel', | |
link: function (scope, element, attrs, ngModelCtrl) { | |
var maxlength = Number(attrs.inputMaxlength); | |
function fromUser(text) { | |
if (text.length > maxlength) { | |
var transformedInput = text.substring(0, maxlength); | |
ngModelCtrl.$setViewValue(transformedInput); | |
ngModelCtrl.$render(); |
const keyValueObj = { "api_url": "https://hawaii.usa.gov", "message": "BALLISTIC MISSILE INBOUND.", "is_drill": true }; | |
const keyValueArray = Object.entries(keyValueObj).map(([key, value]) => ({ key, value })); | |
/** | |
* keyValueArray: | |
* [ | |
* { key: "api_url", value: "https://hawaii.usa.gov" }, | |
* { key: "message", value: "BALLISTIC MISSILE INBOUND." }, | |
* { key: "is_drill", value: true }, | |
* ], |
BNF grammar is in: examples/lang.bnf
Lex grammar is in: examples/lang.lex
To see what is all possible view examples/test.lang
Run
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import debounce from 'throttle-debounce/debounce' | |
import axios from 'axios'; | |
import SubmitButton from './SubmitButton' | |
export default class RegisterCompany extends Component { | |
constructor(props) { |
$font-mdi : 'Material-Design-Icons'; | |
$mdi-prefix : 'mdi-'; | |
@font-face { | |
font-family: "#{$font-mdi}"; | |
src:url("#{$icons-font-path}#{$font-mdi}.eot?#iefix") format("embedded-opentype"), | |
url("#{$icons-font-path}#{$font-mdi}.woff2") format("woff2"), | |
url("#{$icons-font-path}#{$font-mdi}.woff") format("woff"), | |
url("#{$icons-font-path}#{$font-mdi}.ttf") format("truetype"), | |
url("#{$icons-font-path}#{$font-mdi}.svg##{$font-mdi}") format("svg"); |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class ValidateAuthyRequest { | |
/** | |
* Handle an incoming request. | |
* |
var currencyValidator = { | |
format: function (number) { | |
return (Math.trunc(number * 100) / 100).toFixed(2) | |
}, | |
parse: function (newString, oldNumber) { | |
var CleanParse = function (value) { | |
return { value: value } | |
} | |
var StringParse = function (string) { | |
return parseFloat(string.replace(/,/g, '')) |
<?php | |
$loader = new PemLoader(); | |
$math = EccFactory::getAdapter(); | |
$this->messages = new MessageFactory($math); | |
$privKeySerializer = new PemPrivateKeySerializer(new DerPrivateKeySerializer()); | |
$pubKeySerializer = new PemPublicKeySerializer(new DerPublicKeySerializer()); | |
$PrivateKeyPath = env('KEY_LOCATION').'my.priv'; | |
$PublicKeyPath = storage_path().'/app/'.uniqid().'.pub'; |