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
Left_Btn = 1 | |
Mouse_M = 2 | |
Right_Btn = 3 | |
Mouse_G9 = 9 | |
Mouse_LB = 5 | |
Mouse_RB = 4 | |
Skills_wall = { |
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
const $ = cheerio.load(pm.response.text()) | |
const ele = $('form input[type="hidden"]'); | |
const csrf_token = ele.val(); | |
console.log(csrf_token); | |
const loginRequest = { | |
url: 'https://a0f2a3f3-f800-40ba-8578-248561f0b0f8.mock.pstmn.io/login', |
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
catNames=[] | |
while True: | |
print('Enter the name of cat'+str(len(catNames))+'(Or enter nothing to stop.):') | |
name=input() | |
if name=="": | |
break | |
catNames=catNames+[name] #1st concatenation | |
print('The cat names are:') | |
for name in catNames: | |
print(''+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
<iframe style="position:absolute; left:0; top:0; width:100%; height:100%" src="https://www.youtube.com/embed/b2yvICvduFw?rel=0&autoplay=1&vq=hd720" frameborder="0" allowfullscreen></iframe> |
< /dev/null is used to instantly send EOF to the program, so that it doesn't wait for input (/dev/null, the null device, is a special file that discards all data written to it, but reports that the write operation succeeded, and provides no data to any process that reads from it, yielding EOF immediately). & is a special type of command separator used to background the preceding process.
nohup myscript.sh >myscript.log 2>&1 </dev/null &
# | ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^ ^
# | | | | run in background
# | | | |
# | | | don't expect input
# | | |
# | | redirect stderr to stdout
- Set Tab
# vim.wikia.com/wiki/Converting_tabs_to_spaces
:set tabstop=4 # set tabs to display as four spaces
:set expandtab # apply to all new tab
:set shiftwidth=4 # change tab space to 4
:retab
- Install Java 8
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
- Start Elasticsearch on boot up:
sudo update-rc.d elasticsearch defaults 95 10
- POM(Project Object Model):
pom.xml
:- Maven project structure and contents are declared in an
pom.xml
file. - Resides in the base directory of the project
- mandatory fields:
groupId
,artifactId
,version
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- Maven project structure and contents are declared in an
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
NewerOlder