kubectl apply -f pruebans1.yml
kubectl apply -f pruebans2.yml
kubectl exec -ti $(kubectl get pods -n pruebans1 --no-headers -o custom-columns=":metadata.name") -n pruebans1 -- nslookup pruebans2.pruebans2
def latex_max(data, bgcolor='yellow', fgcolor="black", ignore=['AvgContent',]): | |
''' | |
highlight the maximum in a Series or DataFrame | |
''' | |
txt = '{:.3f}' | |
attr = '\textbf{{{}}}' | |
attr_max = '\colorbox{{' + bgcolor + '}}{{\textcolor{{' + fgcolor + '}}{{{}}}}}' | |
# print(data) | |
is_max = data >= data.drop(ignore).max() | |
mx = data.drop(ignore).max() |
{ | |
"embeddings": [ | |
{ | |
"tensorName": "300 seeds", | |
"tensorShape": [ | |
1975, | |
100 | |
], | |
"tensorPath": "https://lab.gsi.upm.es/oaraque/incel-embeddings/raw/master/300_seeds/neologisms_embeddings_2019-06-07_16-29.tsv", | |
"metadataPath": "https://lab.gsi.upm.es/oaraque/incel-embeddings/raw/master/300_seeds/neologisms_embeddings_words_2019-06-07_16-29.txt" |
#!/bin/env python | |
from scapy.all import * | |
from yeelight import Bulb | |
MAC_ADDRESS = 'ac:63:be:52:8b:4a' # enter Dash Button's MAC Address here. | |
b = Bulb('192.168.2.240') | |
def detect_button(pkt): | |
print(pkt[Ether].src) |
from soil.agents import FSM, state, default_state | |
from random import randint | |
MAX_WEALTH = 2000 | |
class CoalitionAgent(FSM): | |
defaults = { | |
'wealth': -1, |
kubectl apply -f pruebans1.yml
kubectl apply -f pruebans2.yml
kubectl exec -ti $(kubectl get pods -n pruebans1 --no-headers -o custom-columns=":metadata.name") -n pruebans1 -- nslookup pruebans2.pruebans2
try: | |
import urllib2 | |
except ImportError: | |
from urllib.request import urlopen | |
response = urlopen('http://v4.ifconfig.co/ip') | |
HOSTNAME = response.read() |
#!/bin/bash -x | |
# extract the list of submodules from .gitmodule | |
cat .gitmodules |while read i | |
do | |
if [[ $i == \[submodule* ]]; then | |
echo converting $i | |
# extract the module's prefix | |
mpath=$(echo $i | cut -d\" -f2) |
# coding: utf-8 | |
import requests | |
import sys | |
HOST = 'http://localhost' | |
def get_count_all(user_name, host=HOST): | |
user = get_user(user_name, host) |