Learn at this tutorial http://www.shellscript.sh/
#!/bin/sh
echo 'hello world'what is #!/bin/sh means?
- It likely declare a environment to run the below shell.
Learn at this tutorial http://www.shellscript.sh/
#!/bin/sh
echo 'hello world'what is #!/bin/sh means?
| function confirm_request(){ | |
| return new Promise(function(fulfill, reject){ | |
| dom = $(".phl")[1]; | |
| confirm_buttons = $(dom).find('button:contains("Confirm")')[0]; | |
| $(confirm_buttons).click(); | |
| setTimeout(function(){ | |
| fulfill(); | |
| }, 3000); | |
| }) | |
| .then(function(){ |
| import pandas as pd | |
| import io | |
| content = open("test5.iob2.txt", "r").read().strip() | |
| result = content | |
| lines = result.split("\n\n") | |
| lines = [pd.read_table(io.StringIO(line.decode("utf-8")), names=["text", "tag"]) for line in lines] | |
| import pandas as pd | |
| import numpy as np | |
| df = pd.DataFrame( | |
| { | |
| 'key': ['B_W', 'B_W', 'I_W', 'B_W', 'B_W', 'B_W', 'I_W', 'I_W', 'B_W'], | |
| 'text': ['a', 'b', 'b', 'd', 'e', 'f', 'f', 'f', 'g'] | |
| } | |
| ) | |
| mask = df[df["key"] == "B_W"].index |
| import pandas as pd | |
| df = pd.read_excel("input.xlsx") | |
| df = df.groupby(["A", "B"])["A"].count().reset_index(name="Count") | |
| df_sum = df.groupby('B').sum().reset_index() | |
| df1 = df.groupby('B').head(2) | |
| df1 = df1.groupby('B')['A'].apply(lambda x: "%s" % ', '.join(x)).reset_index(name='Top') | |
| df1.merge(df_sum) |
| ////////////////////// | |
| var str = "Uppercase this string (eXcEpT ThIs) and (ThIS)"; | |
| reg = /(\(.*?\))/g; | |
| function toUpperCase(str){ | |
| return str.toUpperCase(); | |
| } | |
| function doubling(str){ | |
| return str+str; | |
| } |