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
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.bc.projectroles.ProjectRoleService | |
import com.atlassian.jira.security.GlobalPermissionManager | |
import com.atlassian.jira.security.Permissions | |
import com.atlassian.jira.security.roles.actor.UserRoleActorFactory | |
import com.atlassian.jira.user.util.UserUtil | |
import com.atlassian.jira.util.SimpleErrorCollection | |
import com.atlassian.crowd.embedded.api.Group | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.user.util.UserManager |
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 MyObject () { | |
// do stuff | |
} | |
// now to export this as a nodejs module do | |
module.exports = MyObject; | |
// ===== | |
// in another file (in the same folder) you can now do |
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 -w | |
## Using ruby's standard OptionParser to get subcommand's in command line arguments | |
## Note you cannot do: opt.rb help command | |
## other options are commander, main, GLI, trollop... | |
# run it as | |
# ruby opt.rb --help | |
# ruby opt.rb foo --help | |
# ruby opt.rb foo -q | |
# etc |
NewerOlder