This file contains 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
// Axle/Hub for Lego wheel. | |
// Connects M3 motor shaft on Tajima motor/gearbox kit to Lego splined axle wheel. | |
// | |
// Printed at 0.2mm layers on UP!. Build 45degree overhangs with no support | |
// | |
// Motor shaft hole can be HEX, ROUND, or ROUND with FLAT | |
// Using metal hex threaded standoff for M3 connection | |
// standoff is M3x10mm x5mm across flats JAYCAR HP0900 | |
// standoff is press fit into hex hole. Hole has domed ceiling so prints without support | |
// |
This file contains 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
CREATE TABLE `workers` ( | |
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`name` VARCHAR(255) NOT NULL, | |
`birthday` DATETIME NOT NULL, | |
`personalid` BIGINT(20) NOT NULL, | |
`active` ENUM('active','notactive') NOT NULL, | |
PRIMARY KEY (`id`) | |
) | |
COLLATE='utf8_general_ci' | |
ENGINE=InnoDB; |
This file contains 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
<ul> | |
<?php foreach ( range( 1, 100 ) as $i ): ?> | |
<li><?php | |
$text = ''; | |
if ( $i % 3 == 0 ) { | |
$text .= 'foo'; | |
} | |
if ( $i % 5 == 0 ) { | |
$text .= 'bar'; | |
} |
This file contains 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: roboter | |
* Date: 10.10.2014 | |
* Time: 14:12 | |
*/ | |
date_default_timezone_set( 'UTC' ); | |
require_once( 'tooaeg.php' ); | |
define ( 'NEXTDAY', 24 * 60 * 60 ); |
This file contains 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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
#define D1 3 // Направление вращение двигателя 1 | |
#define M1 4 // ШИМ вывод для управления двигателем 1 | |
#define D2 6 // Направление вращение двигателя 2 | |
#define M2 5 // ШИМ вывод для управления двигателем 2 |
This file contains 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
/** | |
* dual-sidebar fixed columns | |
*/ | |
html { | |
background: #f06; | |
background: #dbd18d; | |
min-height: 100%; } | |
body { padding-top: 85px; } |
This file contains 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
[Xdebug] | |
zend_extension="C:\Program Files (x86)\PHP\v5.6.5\php_xdebug-2.2.7-5.6-vc11-x86_64.dll" | |
xdebug.remote_enable=1 | |
xdebug.remote_host=localhost | |
xdebug.remote_port=9000 |
This file contains 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
https://phpexcel.codeplex.com/releases/view/119187 |
This file contains 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
<?php | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = "emailtest@YOURDOMAIN"; | |
$to = "YOUREMAILADDRESS"; | |
$subject = "PHP Mail Test script"; | |
$message = "This is a test to check the PHP Mail functionality"; | |
$headers = "From:" . $from; | |
mail($to,$subject,$message, $headers); | |
echo "Test email sent"; |