The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<iframe src="//fred.stlouisfed.org/graph/graph-landing.php?g=7GIZ&width=670&height=475" scrolling="no" frameborder="0" style="overflow:hidden; width:670px; height:525px;" allowTransparency="true"></iframe> |
from subprocess import Popen, PIPE, STDOUT | |
print 'launching slave process...' | |
slave = Popen(['ruby', 'slave.rb'], stdin=PIPE, stdout=PIPE, stderr=STDOUT) | |
while True: | |
# read user input, expression to be evaluated: | |
line = raw_input('Enter expression or exit:') | |
# write that line to slave's stdin | |
slave.stdin.write(line+'\n') |
/** | |
* @author jalex | |
* @version 1.0 | |
* | |
* A Groovy script to compare the Due Date field against the Resolved Date field. If the Resolved Date is after the | |
* Due Date, then the Target Met field would be set to "No". Otherwise, it would be set to "Yes" | |
* | |
*/ | |
import com.atlassian.jira.ComponentManager |
ComponentManager componentManager = ComponentManager.getInstance() | |
IssueManager issueManager = componentManager.getIssueManager() | |
SubTaskManager subTaskManager = componentManager.getSubTaskManager() | |
JiraAuthenticationContext authenticationContext = componentManager.getJiraAuthenticationContext() | |
IssueFactory issueFactory = componentManager.getIssueFactory(); | |
ProjectRoleManager projectRoleManager = componentManager.getComponentInstanceOfType(com.atlassian.jira.security.roles.ProjectRoleManager.class) | |
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager() | |
ProjectManager projectManager = componentManager.getProjectManager() | |
GenericValue testCaseIssueType = subTaskManager.getSubTasksIssueTypes().find { it.name == 'Sub-task'} |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.event.issue.IssueEvent | |
import com.atlassian.jira.event.type.EventDispatchOption | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.issue.MutableIssue | |
import java.sql.Timestamp | |
/** | |
* Set max DueDate of all subtasks to parent issue |
The MIT License (MIT) | |
Copyright (c) 2014 Devin Mancuso <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.security.Permissions | |
import com.atlassian.jira.event.type.EventDispatchOption | |
import com.atlassian.jira.user.ApplicationUser; | |
import com.atlassian.jira.issue.MutableIssue; | |
import com.atlassian.jira.issue.UpdateIssueRequest; | |
//Examples, 5 is my subtask issue type id. Will be different for others. Can find it in the issue history tab after converting a task to a sub-task | |
changeToSubTaskAndLink("XXX-8889", "XXX-0000", "5") |
uname -s identifies a Cygwin environment. | |
uname -m identifies an i686 environment. | |
Found Cygwin/MSYS G++ compiler: i686-pc-cygwin-g++ | |
Found MinGW G++ compiler: i686-w64-mingw32-g++ | |
Writing config.mk | |
Build info: none | |
rm -fr build | |
mkdir -p build/mingw/ | |
touch build/mingw/.mkdir | |
Copying src/shared/PrecompiledHeader.h to build/mingw/PrecompiledHeader.h |
require 'fileutils' | |
require 'securerandom' | |
# | |
# all files must match cengage file names | |
# | |
def cengagify_files(folder_path) | |
Dir.glob("#{folder_path}/**/*").each do |f| | |
# skip directories and simple names | |
next if File.directory?(f) |