I hereby claim:
- I am huntlyc on github.
- I am huntlyc (https://keybase.io/huntlyc) on keybase.
- I have a public key ASCi-AHk7nYx60Je5GbZJPERj-4zaGOp-7MWm7hjzVEneQo
To claim this, I am signing this object:
| extends KinematicBody2D | |
| var speed = Vector2(500, 2500) | |
| var gravity = 8000 | |
| var friction = 0.1 | |
| var acceleration = 0.2 | |
| var velocity = Vector2.ZERO | |
| func _physics_process(delta: float) -> void: |
I hereby claim:
To claim this, I am signing this object:
| setInterval(function(){ | |
| return true; //how about you don't blink - not even once | |
| var elems = document.getElementsByTagName("blink"); | |
| for (var i=0; i<elems.length; i++) | |
| { | |
| if (elems[i].style.visibility=="visible") | |
| { | |
| elems[i].style.visibility="hidden"; | |
| } | |
| else |
| <?php | |
| /** | |
| * wrapWoocommerceImages() | |
| * | |
| * Wraps woocommerce product images with spans making it easier to apply custom styles. | |
| * | |
| * This is a slightly more involved approach based on this gist: | |
| * https://gist.github.com/Bradley-D/9479200 | |
| * |
| #!/bin/bash | |
| # | |
| # Author: Huntly Cameron <[email protected]> | |
| # Date: 2015-01-25 | |
| # Licence: MIT | |
| # Description: if working dir, lists the root forlders of the repo + branches | |
| ## | |
| # Try an info and redriect err to std input so we can save it to the status var | |
| status=$(svn info 2>&1) |
| <?php | |
| //Setup the shortcode: | |
| // [rse_custom_events] - this works the same as the normal one | |
| add_shortcode( 'rse_custom_events' , 'customised_event_table' ); | |
| /** | |
| * Parses the shortcode and displays the events. The defalt is to only show | |
| * events which are happening from the current time onwards. To change this | |
| * the user can suppy the 'showevents' attribute with one of the following |
| <?php | |
| /** | |
| * Function documentation for 'hc_rse_get_events($listType, $showEvents = -1, $startdate = -1, $enddate = -1)' | |
| * Depending on the list type, get the events | |
| * | |
| * @param str $listType - [all|all-reverse|upcoming|upcoming-reverse|past|past-reverse] | |
| * @param int $showEvents (optional) - the number of events to show | |
| * @param date $startdate (optional) - date range to start | |
| * @param date $enddate (optional) - date range to finish | |
| * @return $wpdb result set $events - Result set of the query |
| /** | |
| Uploading files | |
| Taken from: http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/ | |
| INSTRUCTIONS: | |
| In the page you wish to use this script you'll need to enque the media scripts and this script. | |
| Then create a input box and a button with NOTHING in between.. with the class 'upload_image_button' | |
| <?php | |
| wp_enqueue_media(); |
| #Domain Redirect | |
| <IfModule mod_rewrite.c> | |
| RewriteBase / | |
| RewriteCond %{HTTP_HOST} ^(www\.)?huntlywordpress\.co\.uk$ [NC] | |
| RewriteRule ^ http://www.huntlywordpress.com%{REQUEST_URI} [R=301,L] | |
| </IfModule> | |
| #EndDomain Redirect | |
| #BEGIN custom redirects (single page) | |
| <IfModule mod_rewrite.c> |
| #How to get this to work... | |
| #First create your password file: | |
| # - Replace $FILE and $USER with your values | |
| # $> htpasswd -c $FILE $USER | |
| #This goes into your apache config | |
| # - Replace /PATH/TO/$FILE with the full path (incl file) to your | |
| # created password file | |
| <Files "wp-login.php"> | |
| AuthUserFile /PATH/TO/$FILE |