- Website: http://xdebug.org/
- Related Gist: https://gist.github.com/hofmannsven/7613663
| <?php | |
| // address to map | |
| $map_address = ""; | |
| $url = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=".urlencode($map_address); | |
| $lat_long = get_object_vars(json_decode(file_get_contents($url))); | |
| // pick out what we need (lat,lng) | |
| $lat_long = $lat_long['results'][0]->geometry->location->lat . "," . $lat_long['results'][0]->geometry->location->lng; |
| <%@ Page Language="C#" AutoEventWireup="true" %> | |
| <%@ Import Namespace="Sitecore.Jobs" %> | |
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head id="Head1" runat="server"> | |
| <title>Running Sitecore Background Jobs</title> | |
| <meta http-equiv="refresh" content="3" /> |
Homebrew is a package management system for OS X. You can read more about it here, or simply run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"to install it.
| // parse text to link-ify links, #hashtags, and @mentions | |
| // input plain old text, get out the formatted text and info | |
| // used by dankest.website and the dank platform https://github.com/cylesoft/dank | |
| function parse_text($text) { | |
| $home_url = 'https://dankest.website/'; | |
| $link_regex = '/\b(https?:\/\/)?(\S+)\.(\S+)\b/i'; | |
| $hashtag_regex = '/\#([^\s\#]+)/i'; | |
| $mention_regex = '/\@(\S+)/i'; | |
| $t = strip_tags($text); | |
| $links_found = preg_match_all($link_regex, $t, $link_matches); |
| <%@ Page Language="C#" %> | |
| <%@ Import Namespace="System.Diagnostics" %> | |
| <%@ Import Namespace="System.Net" %> | |
| <%@ Import Namespace="Sitecore.ContentSearch" %> | |
| <%@ Import Namespace="Sitecore.Data" %> | |
| <%@ Import Namespace="Sitecore.Data.Items" %> | |
| <script runat="server"> | |
| #region Configure actual checks here |
| <%@ Page Language="C#" %> | |
| <%@ Import Namespace="System.Diagnostics" %> | |
| <%@ Import Namespace="System.Net" %> | |
| <%@ Import Namespace="Sitecore.ContentSearch" %> | |
| <%@ Import Namespace="Sitecore.Data" %> | |
| <%@ Import Namespace="Sitecore.Data.Items" %> | |
| <script runat="server"> | |
| #region Configure actual checks here | |
| ChecksSet ChecksRun { get; set; } | |
| string[] Tags { get; set; } |
| Summary | How to control (or Understand) your GIST page's files list order. |
| Notice | not official documentation. |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.