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
$lastCommitMessage = (git log --pretty=format:'%B' HEAD^..HEAD) | |
if ($lastCommitMessage | Where-Object {$_ -Match "@(?<changesetId>\d+)"} ) { | |
Write-Host $matches["changesetId"] -ForegroundColor Red | |
} | |
if ($lastCommitMessage -Match "@(?<changesetId>\d+)") { | |
Write-Host $matches["changesetId"] -ForegroundColor Red | |
} |
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
{ | |
"Record" : { | |
"HR": 147, | |
"Speed": 23.3, //km/h? m/h? | |
"Cadence": 81, | |
"Temperature": 23, | |
"GpsData": { | |
"Latitude": -23423423423, | |
"Longitude": 23423423323 | |
} |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">One happy day</tspan> | |
</label> | |
<actor t="translate(40,50)" pose="-11,9|0,137|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,76|-22,64|-6,79|-2,61"> |
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
private const string ErrorPrifix = "Error, "; | |
public const string DescriptionException = "Unexpected error occured."; | |
public const string DescriptionArgumentNullException = ErrorPrifix + "Attemp to access a null reference."; | |
public const string DescriptionArgumentOutOfRangeException = ErrorPrifix + "the value of an argument is outside the allowable range of values as defined by the invoked method."; | |
public const string DescriptionFileNotFoundException = ErrorPrifix + "Failed to find file."; | |
public const string DescriptionRankException = ErrorPrifix + "Error, An array with the wrong number of dimensions is passed to a method."; | |
public const string DescriptionInvalidCastException = ErrorPrifix + "invalid casting or explicit conversion."; | |
public const string DescriptionFormatException = ErrorPrifix + "the format of an argument does not meet the parameter specifications of the invoked method."; | |
public const string Descripti |
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
using System; | |
using System.Runtime.Serialization; | |
using SaaS.Exceptions; | |
namespace $NAMESPACE$ | |
{ | |
/// <summary> | |
/// Thrown when $Reason$. | |
/// </summary> | |
[Serializable] |
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
class Player | |
def play_turn(warrior) | |
if warrior.health < @health && warrior.health < 12 | |
warrior.walk!(:backward) | |
else | |
if warrior.health < 20 && warrior.health >= @health | |
warrior.rest! | |
else | |
if warrior.feel.wall? |
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
Ext.Loader.setConfig({ | |
enabled : true | |
}); | |
Ext.application({ | |
name : ('SF' || 'SenchaFiddle'), | |
launch : function() { | |
Ext.create('Ext.List', { | |
fullscreen: true, |
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
SELECT DISTINCT COUNT(*) | |
FROM ( | |
SELECT email FROM active_developers_april2013 | |
UNION | |
SELECT email FROM active_developers_february2013 | |
UNION | |
SELECT email FROM active_developers_march2013 | |
) as united_developers |
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
rides | |
.avg_power() | |
.filter(function(ride) { | |
return !ride.has.gps; | |
}) | |
.line({color: 'hsl(270, 70%, 70%)', name: 'Average PWR'}) | |
rides | |
.avg_heartrate() |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"> | |
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg)"> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> |