sudo apt-get install isc-dhcp-server
Configuration files:
/etc/default/isc-dhcp-server
/etc/dhcp/dhcpd.conf
// | |
// FireworksEffect - Free for all use from Davepl | |
// | |
// Fireworks Effect for Fourth of July | |
public class FireworksEffect : LEDEffect | |
{ | |
// Each particle int the particle system remembers its color, | |
// birth time, postion, velocity, etc. If you are not using DateTime, | |
// all you need in its place is a number of seconds elapsed, which is |
<?php | |
namespace App\Model\Entity; | |
#use Cake\Auth\DefaultPasswordHasher; | |
use Authentication\PasswordHasher\DefaultPasswordHasher; | |
use Authorization\IdentityInterface; | |
use Cake\ORM\Entity; | |
/** | |
* User Entity |
from keras.datasets import mnist | |
from PIL import Image | |
(x_train, y_train), (x_validate, y_validate) = mnist.load_data() | |
dataset_train = {'inputs': x_train, 'labels': y_train} | |
dataset_validate = {'inputs': x_validate, 'labels': y_validate} | |
for index, i in enumerate(dataset_train['inputs']): | |
im = Image.fromarray(i) |
@article{test_2018, | |
title = {Test—with a dash}, | |
volume = {62}, | |
issn = {1231-1231}, | |
url = {http://ww.google.com}, | |
doi = {11.1111/1111-1111(11)11111-P}, | |
abstract = {Test}, | |
pages = {11-111}, | |
number = {111}, | |
journaltitle = {Test}, |
import random | |
import sys | |
from PyQt5 import QtWidgets, uic, QtCore, QtGui | |
class Worker(QtCore.QThread): | |
data = QtCore.pyqtSignal(dict) | |
def __init__(self, parent=None): | |
super(Worker, self).__init__(parent) |
public function password($id = null) | |
{ | |
$user = $this->Users->get($id); | |
if ($this->request->is(['patch', 'post', 'put'])) { | |
$user = $this->Users->patchEntity($user, $this->request->data); | |
if ($this->request->is(['ajax'])) { | |
if ($this->Users->save($user)) { | |
} else { |
// UsersController.php | |
public function edit($id = null) | |
{ | |
$user = $this->Users->get($id); | |
if ($this->request->is(['patch', 'post', 'put'])) { | |
$user = $this->Users->patchEntity($user, $this->request->data); | |
if ($this->Users->save($user)) { | |
$this->Flash->success('The user has been saved.'); |
<link href="../topeka-elements/topeka-resources.html" rel="import"> | |
<link href="../topeka-elements/topeka-profile.html" rel="import"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#design_host { | |
position: absolute; | |
width: 100%; |