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
[<Measure>] | |
type ly; | |
[<Measure>] | |
type s; | |
type Coordinate = { | |
x: float<ly> | |
y: float<ly> | |
z: float<ly> |
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
[TestFixture] | |
public class NullableBoolsAreDangerous | |
{ | |
[Test] | |
public void Test() | |
{ | |
bool? variable = null; | |
Assert.IsTrue(variable != true); | |
Assert.IsFalse(variable == false); | |
} |
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 Vector3 | |
add: (additional) -> | |
new Vector3 @x + additional.x, | |
@y + additional.y, | |
@z + additional.z | |
subtract: (subtrahend) -> | |
new Vector3 @x - subtrahend.x, | |
@y - subtrahend.y, | |
@z - subtrahend.z |
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/bash | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install caskroom/cask/brew-cask | |
brew tap caskroom/versions | |
brew install docker | |
brew install boot2docker | |
brew install git |
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
open WebSharper | |
open WebSharper.Html.Server | |
type Endpoints = | |
| [<EndPoint "GET /">] Home | |
| [<EndPoint "GET /about">] About | |
let MyApp = | |
Warp.CreateApplication (fun ctx endpoint -> | |
match endpoint with |
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
local mapLevel = 110 | |
local flightLevel = 120 | |
-- hook up peripherals and perform preflight checks | |
-- connect to server | |
-- set name to be server designation | |
-- request patrol area |
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
html { | |
background: #000 !important; | |
} | |
/* main elements */ | |
html > body, | |
table, | |
tbody, | |
tr, | |
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
if [ -z $TRAVIS_TAG ]; then | |
lastVersion=$(git tag -l --sort=v:refname *.*.* | tail -1) | |
if [ -z $lastVersion ]; then | |
lastVersion=0.0.0 | |
fi | |
version=$lastVersion-dev | |
else | |
version=$TRAVIS_TAG | |
fi |
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 | |
if [ "$TERM" = "linux" ]; then | |
/bin/echo -e " | |
\e]P0050304 | |
\e]P1181114 | |
\e]P22d2227 | |
\e]P3493941 | |
\e]P46d5762 | |
\e]P5997b89 | |
\e]P6bdabb3 |
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
<html> | |
<body> | |
Im an iframe! | |
<script> | |
console.log(window.parent.origin) | |
console.log(window.parent) | |
</script> | |
</body> | |
</html> |
OlderNewer