Skip to content

Instantly share code, notes, and snippets.

View vejnoe's full-sized avatar

Andreas Vejnø Andersen vejnoe

View GitHub Profile
@vejnoe
vejnoe / rebuild_permissions
Created January 10, 2017 12:32 — forked from level09/rebuild_permissions
Drush: rebuild permissions table using command line in Drupal
drush php-eval 'node_access_rebuild();'
@vejnoe
vejnoe / webflow-resize.js
Created March 26, 2020 09:16 — forked from danro/webflow-resize.js
Webflow.js resize example
var Webflow = Webflow || [];
Webflow.push(function () {
// Find example element
var $element = $('.resize-demo');
var $parent = $element.parent();
// Listen for optimized resize event
Webflow.resize.on(function () {
@vejnoe
vejnoe / webflow-snippet.html
Last active August 3, 2020 07:24 — forked from danro/webflow-snippet.js
Webflow.js front-end JS wrapper
<script>
var Webflow = Webflow || [];
Webflow.push(function () {
// DOMready has fired, may now use jQuery and Webflow api
});
</script>
@vejnoe
vejnoe / 301.php
Created September 30, 2020 07:07 — forked from CrowderSoup/301.php
Simple PHP Redirect
<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://example.com');
?>