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
# Wichtige Module importieren | |
import bpy | |
import math | |
# Variablen | |
dauer = 5 | |
strecke = 10 | |
durchmesser = bpy.context.object.dimensions.z | |
umfang = durchmesser * math.pi |
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
# Wichtige Module Importieren | |
import bpy | |
import math | |
# Etwas Schreibarbeit sparen | |
objects = bpy.data.objects | |
context = bpy.context | |
ops = bpy.ops | |
ops.object.duplicate_move() |
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 java.text.DateFormat; | |
import java.text.ParseException; | |
import java.util.Date; | |
import javax.swing.InputVerifier; | |
import javax.swing.JComponent; | |
import javax.swing.JFormattedTextField; | |
import javax.swing.JOptionPane; | |
public class DatumVerifier extends InputVerifier { |
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
/** | |
* Methode für das Beenden der Anwendung mit Bestätigungsdialog | |
*/ | |
private void closePromt() { | |
int close; | |
close = JOptionPane.showInternalConfirmDialog(desktopPane, "Programm Beenden?", "Anwendung beenden.", JOptionPane.YES_NO_OPTION); | |
if (close == 0) { | |
System.exit(0); | |
} |
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
/* | |
Display remaining characters in a textarea. | |
*/ | |
(function($) { | |
// Get every teatarea | |
$( 'textarea[maxlength]' ).each(function(){ | |
// Add listener | |
$(this).on('input propertychange', function() { | |
// Parse maxlength attribute | |
var max = parseInt($( this ).attr( 'maxlength' )); |
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
jQuery(document).ready(function( $ ){ | |
function responsiveFrame() { | |
$( 'iframe' ).each(function(){ | |
var fh = $( this ).height(); | |
var fw = $( this ).width(); | |
var fp = $( this ).parent().width(); | |
var fpw = fp/fw; | |
var fpwh = Math.round( fh*fpw ); | |
$( this ).css({ |
NewerOlder