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);
/** | |
* Wordpress Custom Post Type Landing Pages | |
* In all examples $rewrite and $args are simplified to the discussed settings. | |
*/ | |
/** | |
* 1. Custom Post Type has archives and the slug is rewritten. | |
* In this case a visit to /post-type-name will use archive-$posttype.php, $archive.php, index.php. | |
* Pagination will work by default assuming $rewrite[ 'pages' ] is also true (default). | |
* It's not possible to create a landing page called /post-type-name as the archive page controls the template hierarchy. |
#!/bin/bash | |
echo "All certificates in ca-certificates.crt, listed by subject:" | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | |
echo "All certificates in ca-certificates.crt, listed by subject, check for presence of VeriSign's 'Class 3 Public Primary - G5':" | |
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | grep "G5" |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
/* Place this after bootstrap.scss */ | |
$screen-xl: 1560px !default; | |
$screen-xl-min: $screen-xl !default; | |
$screen-xl-desktop: $screen-xl-min !default; | |
$screen-lg-max: ($screen-xl-min - 1) !default; | |
$container-xlarge-desktop: (1530px + $grid-gutter-width) !default; | |
$container-xl: $container-xlarge-desktop !default; | |
.container { |
Theory:
your git repository can have more than one remote server; In this case we want to have two:
origin
)upstream
)How to make a private fork from github to gitlab
As described on the Docker Machine SSH reference, the docker-machine
CLI invokes the standard OpenSSH client so we can use the common SSH tunneling syntax here. The following command will forward port 3000 from the default machine to localhost on your host computer's loopback interface. Using 0.0.0.0 as bind_address
will make it bind to all interfaces:
$ docker-machine ssh default -L 0.0.0.0:3000:localhost:3000
So, the container running at machine's port 3000 can be reached through localhost:3000
or any of your interfaces' IP (i.e. 192.168.1.10:3000
). That'd be useful to access your containerized services from other devices in your LAN.
β @danguita