Skip to content

Instantly share code, notes, and snippets.

View cangelis's full-sized avatar
🏠
Working from home

Can Geliş cangelis

🏠
Working from home
View GitHub Profile
@cangelis
cangelis / config
Last active March 1, 2017 08:58
smoothieboard config
temperature_control.bed.thermistor EPCOS100K
temperature_control.bed.designator B
temperature_control.bed.enable true
temperature_control.bed.set_and_wait_m_code 190
temperature_control.bed.set_m_code 140
temperature_control.bed.heater_pin 1.23
temperature_control.bed.bang_bang true
temperature_control.bed.thermistor_pin 0.25
temperature_control.hotend2.heater_pin 2.5
@cangelis
cangelis / doc.md
Created January 23, 2015 14:31
vıdeo plugin

# VideoPlugin dökümanı

Özellikler

1- Resize

2- Time Clip

3- Crop

Controllers

Controllers are classes that are responsible for accepting user input and managing interactions between models, libraries, and views. Typically, they will ask a model for data, and then return a view that presents that data to the user. The usage of controllers is the most common method of implementing application logic in modern web-development.

Controller routing

All routes (links, urls) are explicitly defined in Laravel. This means that controller methods that have not been exposed through route registration cannot be accessed. It's possible to automatically expose all methods within a controller using controller route registration. In this application, automatic controller routing is used. Usage:

file: application/routes.php

@cangelis
cangelis / ide_helper.php
Created March 29, 2013 19:03
Laravel 3 ide helper. Tested with Netbeans. Just create a file named ide_helper.php in the root of the laravel folder. And you're all set!
<?php
class Auth extends Laravel\Auth {
}
class Asset extends Laravel\Asset {
public static function add($name, $source, $dependencies = array(), $attributes = array()) {
@cangelis
cangelis / command.class.php
Last active June 21, 2023 02:03
A simple Command Pattern implementation (Calculator example) on PHP
<?php
abstract class Command {
abstract public function unExecute ();
abstract public function Execute ();
}
class concreteCommand extends Command {
private $operator,$operand,$calculator;
public function __construct ($calculator,$operator,$operand) {
$this->operator = $operator;
$this->operand = $operand;