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; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Reflection; | |
using System.Linq; | |
using Travix.AirFareDomain; | |
using System.Collections; | |
using Newtonsoft.Json; | |
using System.IO; |
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> | |
<body> | |
<textarea name="" id="json" cols="30" rows="10"></textarea> | |
<input id="filter" /> | |
<textarea name="" id="result" cols="30" rows="10"></textarea> | |
<button onclick="send()">Filter</button> | |
</body> | |
<script type="text/javascript"> | |
var a = { | |
fare: [ |
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 | |
if [[ "$(docker-machine ls --filter 'name=default')" == *"Stopped"* ]] | |
then | |
docker-machine start default; | |
eval $(docker-machine env default); | |
fi |
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
@echo off | |
FOR /f "tokens=4" %%i IN ('docker-machine ls --filter "NAME=default"') DO ( | |
IF "%%i"=="Stopped" ( | |
docker-machine start default | |
@FOR /f "tokens=*" %%j IN ('docker-machine env default') DO @%%j | |
) | |
) |
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
docker rmi $(docker images -f "dangling=true" -q) |
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
FOR /f "tokens=1" %i IN ('docker images -f "dangling=true" -q') DO docker rmi -f %i |
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
function grayToHex(val) { | |
if(val >= 0 && val <= 255){ | |
var n = (255 - val).toString(16); | |
return "#" + n + n + n; | |
} | |
} |
NewerOlder