#Vue.js component for Select2
A select2 component for vue.js. Quickly create select2 components, load data via ajax and retrieve selected values and newly created tags.
#Usage
Download and register the component:
Vue.component(
<template> | |
<select :name="name" class="form-control"> | |
<slot></slot> | |
</select> | |
</template> | |
<script> | |
import 'select2-bootstrap-theme/dist/select2-bootstrap.css'; | |
export default { |
#Vue.js component for Select2
A select2 component for vue.js. Quickly create select2 components, load data via ajax and retrieve selected values and newly created tags.
#Usage
Download and register the component:
Vue.component(
(function($, window, undefined) { | |
var InfiniteScroll = function() { | |
this.initialize = function() { | |
this.setupEvents(); | |
}; | |
this.setupEvents = function() { | |
$(window).on( | |
'scroll', | |
this.handleScroll.bind(this) |
<?php | |
/** | |
* Converts any valid PHP callable into a Closure. Requires PHP 5.4.0+. | |
* | |
* The ramifications of this are many, but basically it means that any function | |
* or method can be converted into a Closure, bound to another scope, and | |
* executed easily. Works properly even with private methods. | |
* | |
* - On success, returns a Closure corresponding to the provided callable. | |
* - If the parameter is not callable, issues an E_USER_WARNING and returns a |
# Convert the .cer file into a .pem file: | |
$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
# Convert the private key’s .p12 file into a .pem file: | |
$ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
# Finally, combine the certificate and key into a single .pem file | |
$ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
# At this point it’s a good idea to test whether the certificate works. |