This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* get relation chains for new records | |
*/ | |
class CMSGetRelationChainExtension extends Extension { | |
private $parts = null; | |
private $keys = array( | |
'field', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TempTask extends BuildTask { | |
protected $title = 'TempTask'; | |
protected $description = ''; | |
public function run($request) { | |
echo '<pre>'; | |
// Do stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Page_Controller extends ContentController { | |
public static $allowed_actions = array ( | |
'test' | |
); | |
public function test($r) { | |
return 'ok'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This helper is a minimal geolocation service wrapper that allows quick geolocating. | |
* | |
* freegeoip.net is community funded, therefore please consider donating if you like and use this service. | |
* Alternatively you can run your own server. | |
* | |
* Example (uses a 1 hour cookie to minimize lookups): | |
* $is_international = Cookie::get('IsInternational'); | |
* if (is_null($is_international)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text" xml:lang="en">{{ site.name }}</title> | |
<link type="application/atom+xml" href="{{ site.url }}/atom.xml" rel="self"/> | |
<link type="text/html" href="{{ site.url }}" rel="alternate"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> | |
<id>{{ site.url }}/</id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SvdSetElementFullHeight(elementId, bpad) { | |
// default | |
bpad = (typeof bpad === "undefined") ? 20 : bpad; | |
var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value; | |
if (inDesignMode == "1"){ | |
return; | |
} | |
var e = document.getElementById(elementId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*/ | |
class TempTask extends BuildTask { | |
protected $title = 'TempTask'; | |
protected $description = ''; | |
public function run($request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
#region functions - put this in an include and add it to every script | |
function DoTrap() { | |
$script = $_.InvocationInfo.ScriptName | |
$line = $_.InvocationInfo.ScriptLineNumber | |
$_errorDetails = $Error[0] | fl * -force | Out-string | |
if (Submit-BugzScoutReport -Description "TEST: $script:$line" -Extra $_errorDetails) { | |
Write-Host "Error reported." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance ignore | |
SendMode Input | |
playPauseKey = {Control down}{Alt down}{Home}{Alt up}{Control up} | |
workPeriod := 25 * 60 * 1000 | |
breakPeriod := 5 * 60 * 1000 | |
pomsBeforeLongBreak := 4 | |
Pomodoro: |
OlderNewer