I hereby claim:
- I am m1kola on github.
- I am m1kola (https://keybase.io/m1kola) on keybase.
- I have a public key ASAkSHN2YtgkEvfvvF6nUBQ-QWYXH0DiIEusfFAyo-nk8Qo
To claim this, I am signing this object:
// Example call: markAsViewd("vendor/") | |
function markAsViewd(pathPrefix) { | |
elements = document.querySelectorAll(".js-toggle-user-reviewed-file-form") | |
elements = Array.prototype.filter.call(elements, (elem) => { | |
isVendor = elem.querySelector("input[name='path']").value.startsWith(pathPrefix) | |
isViewed = elem.querySelector("input[name='viewed']").checked | |
return isVendor && !isViewed | |
}).map((elem) => (elem.querySelector("input[name='viewed']"))); |
{% load wagtailcore_tags staticfiles %} | |
{% if request.user.is_superuser %} | |
<div class="panel nice-padding panel-upgrade-notification" style="display:none"> | |
<div class="help-block help-warning">Wagtail upgrade available. Your version: <strong>{% wagtail_version %}</strong>. New version: <strong class="newversion"></strong>. <a class="releasenotes-link" href="">Read the release notes.</a></div> | |
<script>window.wagtailVersion = "{% wagtail_version %}";</script> | |
<script src="{% static 'wagtailadmin/js/upgrade_notify.js' %}" async="true"></script> | |
</div> | |
{% endif %} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class Foo { | |
public $public_var = 'public value'; | |
protected $protected_var = 'protected value'; | |
private $private_var = 'private value'; | |
} | |
$obj = new Foo(); | |
$obj_array = (array) $obj; |