Skip to content

Instantly share code, notes, and snippets.

/* 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", "")
@revuel
revuel / random_time_report.py
Last active January 2, 2020 08:33
Generates random time intervals, for time reporting purposes...
""" 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
@revuel
revuel / jiracustomfieldoptstrim.groovy
Created July 25, 2018 15:54
Jira ScriptRunner, get rid of custom field options with unnecesary extra white spaces
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;
@revuel
revuel / README-Template.md
Created April 3, 2017 07:55 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

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.

Prerequisites

@revuel
revuel / font
Last active August 29, 2015 14:17
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
@revuel
revuel / font
Last active August 29, 2015 14:17
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
$fs=1;
$fa=1;
servo_l = 24;
servo_w = 13;
servo_h = 21;
bolt_hole_diameter = 4.5;
servo_axis_diameter = 4;