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
    
  
  
    
  | // just place a div at top right | |
| var div = document.createElement('div'); | |
| div.style.position = 'fixed'; | |
| div.style.top = 0; | |
| div.style.right = 0; | |
| div.textContent = 'Injected!'; | |
| document.body.appendChild(div); | |
| alert('inserted self... giggity'); | 
  
    
      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
    
  
  
    
  | #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| node { | |
| // pull request or feature branch | |
| if (env.BRANCH_NAME != 'master') { | |
| checkout() | |
| build() | |
| unitTest() | 
  
    
      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 module = angular.module( 'my.resource', [ 'ngResource' ] ); | |
| module.factory( 'Resource', [ '$resource', function( $resource ) { | |
| return function( url, params, methods ) { | |
| var defaults = { | |
| update: { method: 'put', isArray: false }, | |
| create: { method: 'post' } | |
| }; | |
| methods = angular.extend( defaults, methods ); |