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; | |
} | |
} |
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
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
@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
#!/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
<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
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
import apache_beam as beam | |
import pyarrow | |
import tensorflow_data_validation as tfdv | |
from tensorflow_metadata.proto.v0 import statistics_pb2 | |
import numpy as np | |
pipeline_options = beam.pipeline.PipelineOptions.from_dictionary({ | |
'project': '[PROJECT_ID]' | |
}) |
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
kubectl api-resources --verbs="get" --no-headers=true | awk '{ print $1; }' | xargs -I {} sh -c 'for i in `kubectl get $1`; do echo "$1\t$i"; done' sh {} | awk '{ print "kubectl delete " $1 " " $2; }' | grep WHAT_YOUR_ARE_LOOKING_FOR |
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 | |
find . -type d -depth 1 -exec sh -c 'git --git-dir={}/.git --work-tree=$PWD/{} log --format="%cs %aE %s" --before 2020-04-1 --after 2020-03-02 | grep [YOUR_USER]' \; -print |
OlderNewer