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
    
  
  
    
  | #!/bin/bash | |
| host=http://localhost:8080 | |
| url=/pluginManager/installNecessaryPlugins | |
| # git plugin https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin | |
| curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url | |
| # artifactory plugin https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin | |
| curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url | 
  
    
      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
    
  
  
    
  | # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | 
  
    
      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
    
  
  
    
  | Write-Host 'throw' | |
| try | |
| { | |
| try | |
| { | |
| throw "exception" | |
| } | |
| catch | |
| { | 
  
    
      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
    
  
  
    
  | def m = "1234 abc" =~ /^(\d+)/ | |
| def n = "abc 1234" =~ /^(\d+)/ | |
| println (m.find()?m.group():"not matched") | |
| println (n.find()?n.group():"not matched") | |
  
    
      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
    
  
  
    
  | Array = require('gauss').Vector; | |
| var prices = [22.2734, 22.194, 22.0847, 22.1741, 22.184, 22.1344, | |
| 22.2337, 22.4323, 22.2436, 22.2933, 22.1542, 22.3926, | |
| 22.3816, 22.6109, 23.3558, 24.0519, 23.753, 23.8324, | |
| 23.9516, 23.6338, 23.8225, 23.8722, 23.6537, 23.187, | |
| 23.0976, 23.326, 22.6805, 23.0976, 22.4025, 22.1725]; | |
| /* Use Wilder ratio on an exponential moving average period of 10, | |
| 1 million iterations | 
NewerOlder