This file contains hidden or 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> | |
<head> | |
<title>Code Kata Session 26/05/16</title> | |
<script src="https://code.jquery.com/jquery-2.2.4.min.js" ></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('input').change(function(){ | |
var changed = this; | |
$(this).siblings().map(function(index, input){ | |
input.checked = ((input.value % changed.value) === 0)? changed.checked : input.checked; |
This file contains hidden or 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; | |
namespace Vincenty | |
{ | |
public class Vincenty | |
{ | |
private double RadiusLong = 6378137.0; | |
private double Flatts = 1 / 298.257222101; | |
private double RadiusShort => RadiusLong * (1 - Flatts); |
This file contains hidden or 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 | |
url="https://my.sample.com/5678" | |
objName=$(cat sample.json|jq --arg URL "$url" '[.[]|select(.owner.owner_url==$URL)][0]'|jq '.name') | |
echo $objName |
