This file contains hidden or 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
| var input = new qx.ui.form.Button("Test button", "qooxdoo/test.png"); | |
| var blocker = new qx.bom.Blocker(); | |
| blocker.setBlockerOpacity(0.5); | |
| blocker.setBlockerColor("gray"); | |
| input.addListener("click", function(e){ | |
| blocker.block(); | |
| qx.event.Timer.once(function(e){ | |
| blocker.unblock(); | |
| }, window, 5000); | |
| }); |
This file contains hidden or 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
| ifconfig eth0 192.168.1.2 | |
| netmask 255.255.255.0 | |
| //设置IP地址192.168.1.2 子网掩码:255.255.255.0 | |
| routeadd default gw 192.168.1.1 | |
| //设置网关为192.168.1.1 |
This file contains hidden or 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
| vi /etc/netword/interface | |
| # 添加 | |
| address 192.168.0.* |
This file contains hidden or 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
| function is_valid_email(email) { | |
| return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email); | |
| } |
This file contains hidden or 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
| lsof -i:[port] | |
| netstate -apn | grep [port] |
This file contains hidden or 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/share/applications | |
| /usr/share/applications | |
| ~/.local/share/applications |
This file contains hidden or 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 ruby | |
| require 'pp' | |
| nums = (1...100).to_a | |
| nums.each do |n| | |
| nums.each do |m| | |
| (n.to_s + m.to_s).split('').permutation().to_a.each do |p| | |
| if ( p.join('') == (n*m).to_s ) |
This file contains hidden or 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
| mount -o soft,intr [ip]:/nfs nfs/ |
This file contains hidden or 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
| perl -p -i -e "s/[find]/[replace]/g" [files] |