Skip to content

Instantly share code, notes, and snippets.

// 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
//
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;
<ul>
<?php foreach ( range( 1, 100 ) as $i ): ?>
<li><?php
$text = '';
if ( $i % 3 == 0 ) {
$text .= 'foo';
}
if ( $i % 5 == 0 ) {
$text .= 'bar';
}
<?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 );
int botton_h = 60;
int botton_w = 230;
int padding = 5;
int text_space_h=25;
int text_space_w=45;
void drawButton(char *text, unsigned int position_x, unsigned int position_y)
{
myGLCD.setColor(0, 0, 255); // blue
@roboter
roboter / lunukhod.ino
Created October 22, 2014 11:21
basic motor test
/*
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
@roboter
roboter / dabblet.css
Created November 27, 2014 21:33 — forked from jakerocheleau/dabblet.css
dual-sidebar fixed columns
/**
* dual-sidebar fixed columns
*/
html {
background: #f06;
background: #dbd18d;
min-height: 100%; }
body { padding-top: 85px; }
@roboter
roboter / php.ini
Created February 16, 2015 09:47
PHP.ini Xdebug working with PHPStorm
[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
@roboter
roboter / gist:24baf2f86ab6b715d47b
Created February 26, 2015 12:27
Library for alarm
https://phpexcel.codeplex.com/releases/view/119187
@roboter
roboter / mailtest.php
Created February 26, 2015 13:21
Test mail settings
<?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";