One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
$fs=1; | |
$fa=1; | |
servo_l = 24; | |
servo_w = 13; | |
servo_h = 21; | |
bolt_hole_diameter = 4.5; | |
servo_axis_diameter = 4; |
0 | |
0 1.5 | |
0 0.5 | |
0.2 0.1 | |
0.5 0 | |
0.8 0.1 | |
1 0.5 | |
1 1.5 | |
0.8 1.9 | |
0.5 2 |
0 | |
0 1.5 | |
0 0.5 | |
0.2 0.1 | |
0.5 0 | |
0.8 0.1 | |
1 0.5 | |
1 1.5 | |
0.8 1.9 | |
0.5 2 |
import com.atlassian.jira.component.ComponentAccessor; | |
import com.atlassian.jira.issue.CustomFieldManager; | |
import com.atlassian.jira.ComponentManager; | |
import com.atlassian.jira.issue.fields.CustomField; | |
import com.atlassian.jira.issue.IssueManager; | |
import com.atlassian.jira.issue.Issue; | |
import com.atlassian.jira.issue.customfields.manager.OptionsManager; | |
import com.atlassian.jira.issue.fields.config.FieldConfig; | |
import com.atlassian.jira.issue.context.IssueContextImpl; | |
import com.atlassian.jira.issue.customfields.manager.OptionsManager; |
""" Generates random time intervals """ | |
import random | |
for x in range(30): | |
entry_h = random.randint(8, 10) | |
entry_m = random.randint(0, 59) | |
if entry_h == 10: | |
entry_m = 0 |
/* To get rid of the useless subscription block of the digital diary "20Minutes" | |
* Works as of July 2020 | |
* Just copy and paste the follwoing code to the browser's console at 20minutes site | |
*/ | |
function enableRead() { | |
// Allow scroll down | |
var body = document.getElementsByTagName("body") | |
body[0].setAttribute("style", "") | |
""" Just playing around with slots (BASIC EXAMPLE Plain Old Python Object) """ | |
import re | |
date_pattern = re.compile(r'(\d{4})[/.-](\d{2})[/.-](\d{2})$') | |
class Person(object): | |
""" Person sample class with slots """ | |
__slots__ = ('name', 'dob') |
""" Dumb way to produce immutable instances in Python """ | |
class ImmutablePerson(object): | |
""" ... """ | |
__slots__ = ('name', 'dob') | |
def __init__(self, name: str, dob: str): | |
""" Only available at initialization """ |
""" Switch example for python 3 """ | |
def _say_hello() -> str: | |
return 'Hello' | |
def _say_goodbye() -> str: | |
return 'Good bye' |