brew uninstall xmlsec1
cd "$(brew --prefix)/Library/Taps/homebrew/homebrew-core/Formula"\
git checkout 1d8e658f5ad489fe71f8d194c97811143aa46ec5
git reset --hard 1d8e658f5ad
git checkout -b libxmlsec1-downgrade-1.2.34
brew install libxmlsec1
brew pin libxmlsec1
git checkout master
brew update
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
from trax.layers import base | |
class Debug(base.Layer): | |
def __init__(self, msg=""): | |
super().__init__(name=f'Debug') | |
self.msg = msg | |
self.debug = False | |
def forward(self, x): | |
if self.debug: |
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
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
unzip ngrok-stable-linux-amd64.zip | |
./ngrok http 17605 --log=stdout > /var/log/ngrok.log & | |
NGROK_URL=$(grep -Eo 'url=.+' /var/log/ngrok.log | cut -d= -f2 | tail -n 1) | |
echo "NGROK URL: ${NGROK_URL}" | |
# start tensorboard | |
tensorboard --logdir . --port 17605 |
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
from constraint import * | |
def count_same_digits(n1, n2): | |
return len(set(n1).intersection(n2)) | |
def count_same_position(n1, n2): | |
return (n1[0] == n2[0]) + (n1[1] == n2[1]) + (n1[2] == n2[2]) | |
def check(n1, n2, correct_nums, correct_placed): | |
return count_same_digits(n1, n2) == correct_nums and count_same_position(n1, n2) == correct_placed |
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
i = 0 | |
def dfs(arr, x, y): | |
if x < 0 or x >= len(arr) or y < 0 or y >= len(arr[0]): | |
return | |
if arr[x][y] == 'x': | |
return | |
arr[x][y] = 'x' | |
global i; i+=1 |
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
import psutil | |
import GPUtil | |
import os | |
import sys | |
import logging | |
from daemonize import Daemonize | |
from time import sleep | |
from pprint import pprint as pp | |
def netcons(listen_port=None,status=None,pid=None): |
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
def process(arg1) | |
raise SomeDeepPackagr::InvalidInputError.new(“#{arg1} is not negative”) if arg >= 0 | |
… | |
end |
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
describe “.process” do | |
it “raises if arg1 is not negative” do | |
expect { process(0) }.to raise_error(StandardError) | |
end | |
end |
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
def process(arg1) | |
raise SomeDeepPackage::InvalidInputError.new(“#{arg1} is not negative”) if arg >= 0 | |
… | |
end |
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
[{"delete":{"direct_message":{"id":755045701202145288,"id_str":"755045701202145288","user_id":2573102694}}}] |
NewerOlder