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
<table id="episodes"> | |
<% control orderedEpisodes %> | |
<tr class="$EvenOdd $FirstLast"> | |
<% if Top.PagePerEpisode %> | |
<td class="episode-date"><a href="{$Top.Link}episode/{$ID}" title="$Title">$Date.Nice</a></td> | |
<td class="episode-title"><a href="{$Top.Link}episode/{$ID}" title="$Title">$Title<br />$Speaker <% if Duration %><span class="duration">($Duration <% _t('Mins','mins') %>)</span><% end_if %></a></td> | |
<% else %> | |
<td class="episode-date">$Date.Nice</td> | |
<td class="episode-title">$Title<br />$Speaker <% if Duration %><span class="duration">($Duration <% _t('Mins','mins') %>)</span><% end_if %></td> |
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
#!/bin/sh | |
GIT_WORK_TREE=~/sites/testdeploy/ git checkout -f | |
cd ~/sites/testdeploy/ | |
composer install | |
sake dev/build | |
sake / flush=all |
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 YouTubeID(){ | |
if($youtube_url = $this->YouTubeLink){ | |
$url = parse_url($youtube_url); | |
if( $url['host'] !== 'youtube.com' && | |
$url['host'] !== 'www.youtube.com'&& | |
$url['host'] !== 'youtu.be'&& | |
$url['host'] !== 'www.youtu.be') | |
return ''; |
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
#include <FastLED.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(4, 5); // RX, TX | |
#define REDPIN 10 | |
#define GREENPIN 11 | |
#define BLUEPIN 9 | |
#define BUTTONPIN 12 | |
const byte numChars = 14; |
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
#include <FastLED.h> | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(4, 5); // RX, TX | |
#define REDPIN 10 | |
#define GREENPIN 11 | |
#define BLUEPIN 9 | |
#define BUTTONPIN 12 | |
const byte numChars = 14; |
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
func monthsOld(DOBStr: String) throws -> Int{ | |
enum monthsOldError: Error{ | |
case futureDate | |
} | |
let formatter = DateFormatter() | |
formatter.dateFormat = "yyyy/MM/dd" | |
let DOB = formatter.date(from: DOBStr) | |
let timesince: Double = DOB!.timeIntervalSinceNow | |
if timesince > 0.0{ | |
throw monthsOldError.futureDate |
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
let xPRIntervals: [Int: [Int: [Double]?]] = [ | |
1:[ | |
60: nil, | |
80: nil, | |
100: [0.1, 0.12] | |
], | |
6:[ | |
60: nil, | |
140: [0.11, 0.14], | |
160: [0.1, 0.13] |
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
let xPRIntervals: [Int: [Int: [Double]?]] = [ | |
1:[ | |
60: nil, | |
80: nil, | |
100: [0.1, 0.12] | |
], | |
6:[ | |
60: nil, | |
140: [0.11, 0.14], | |
160: [0.1, 0.13] |
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
var CalcAxis: Int{ | |
var AxisValues = [Double]() | |
if inputLead1pos.double != nil{ | |
AxisValues.append(Double(inputLead1pos) ?? 0) | |
} | |
if inputLead1neg.double != nil{ | |
AxisValues.append(Double(inputLead1neg) ?? 0) | |
} | |
if inputLeadAVFpos.double != nil{ | |
AxisValues.append(Double(inputLead1pos) ?? 0) |
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
var CalcAxis: Int?{ | |
func calculate() throws -> Int?{ | |
var AxisValues = [Double]() | |
if inputLead1pos.double != nil{ | |
AxisValues.append(Double(inputLead1pos) ?? 0) | |
} | |
if inputLead1neg.double != nil{ | |
AxisValues.append(Double(inputLead1neg) ?? 0) | |
} | |
if inputLeadAVFpos.double != nil{ |
OlderNewer