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
#!/usr/local/bin/bash | |
cat /Users/ashtarev/Library/Application\ Support/Google\ Play\ Music\ Desktop\ Player/json_store/playback.json | /usr/local/bin/jq '.song.artist + " - " + .song.title' | tr '"' ' ' |
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
ax = plt.gca() | |
pd.concat([x_rdf[ cf + ['total'] ], activity_rate_abs, tm_res_df_abs.rename('tmdb_votes')], axis=1).plot.bar( | |
ax=ax, width=0.85 | |
) | |
plt.legend() | |
plt.xticks(x_rdf.index, range(13)) | |
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
render(h(Provider, { | |
store: store | |
}, [ | |
div([ | |
h(Router, { | |
history: browserHistory | |
}, | |
[h(Route, { | |
path: "oi/:orderID/", | |
name: "Операторский интерфейс", |
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 assertListInList(self, member, container): | |
for item in container: | |
try: | |
self.assertCountEqual(item, member) | |
except AssertionError: | |
continue | |
break | |
else: | |
raise AssertionError('No match found') |
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
#!/bin/sh | |
# Add one IP to the list of split tunnel | |
add_ip () | |
{ | |
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_ADDR=$1 | |
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASK=255.255.255.255 | |
export CISCO_SPLIT_INC_${CISCO_SPLIT_INC}_MASKLEN=32 | |
export CISCO_SPLIT_INC=$(($CISCO_SPLIT_INC + 1)) | |
} |