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
ifdef ERL | |
erl=$(ERL) | |
else | |
erl=erl | |
endif | |
ifdef ERLC | |
erlc=$(ERLC) | |
else | |
erlc=erlc |
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
-module(constant). | |
-export([compile/2]). | |
compile(Mod, KVList) -> | |
Bin = makes(Mod, KVList), | |
code:purge(Mod), | |
{module, Mod} = code:load_binary(Mod, atom_to_list(Mod) ++ ".erl", Bin), | |
ok. | |
makes(Module, KVList) -> |
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
-ifndef(DEFINE_a_HRL). | |
-define(DEFINE_a_HRL, true). | |
-include("b.hrl"). | |
-define(a, a). | |
-endif. | |
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/bin/env bash | |
speed_test(){ | |
if [[ $1 == '' ]]; then | |
temp=$(python speedtest.py --share 2>&1) | |
is_down=$(echo "$temp" | grep 'Download') | |
if [[ ${is_down} ]]; then | |
local REDownload=$(echo "$temp" | awk -F ':' '/Download/{print $2}') | |
local reupload=$(echo "$temp" | awk -F ':' '/Upload/{print $2}') | |
local relatency=$(echo "$temp" | awk -F ':' '/Hosted/{print $2}') |
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
{"sig":"ab153aa225008b691c26ede66a59cdf5bd56468840ff38975c3ef744bbf93191d57cc3826e44054f30c6b974c38cbdeda9084d46837466d936d7c3df2cd8508c1","msghash":"a3e720b292a02653b04cddc188f20a886379e221ca517ed3d7a46352df72590f"} |
OlderNewer