1. Create a script and place in /etc/init.d (e.g /etc/init.d/myscript). The script should have the following format:
#!/bin/bash
# chkconfig: 2345 20 80
# description: Description comes here....
# Source function library.
. /etc/init.d/functions
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController, AVCaptureFileOutputRecordingDelegate { | |
@IBOutlet weak var camPreview: UIView! | |
let cameraButton = UIView() |
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ('NOME_CAMPO') AND TABLE_SCHEMA='DATABASE_TEST' |
<?php | |
namespace console\controllers; | |
use Yii; | |
use yii\console\Controller; | |
class RbacController extends Controller | |
{ | |
private $auth; |
<?php | |
namespace backend\controllers\api; | |
use Yii; | |
use yii\web\Controller; | |
class BaseController extends Controller | |
{ | |
protected function readStdIn() | |
{ |
<div class="col-md-4 col-xs-12"> | |
<div class="form-group" v-bind:class="{ 'has-error' : checkFieldError(pacchetto, 'nome') }"> | |
<label class="control-label">Nome</label> | |
<input type="text" class="form-control" v-model="pacchetto.nome" /> | |
<div class="help-block" v-html="textFieldError(pacchetto, 'nome')"></div> | |
</div> | |
</div> |
import React from "react"; | |
import { View } from "react-native"; | |
import { AntDesign, Entypo, EvilIcons, Feather, FontAwesome, FontAwesome5, Foundation, Ionicons, MaterialCommunityIcons, MaterialIcons, Octicons, SimpleLineIcons, Zocial } from '@expo/vector-icons'; | |
export default class ExpoIconSelector extends React.Component { | |
render() { | |
return ( | |
class ItemSearch | |
{ | |
public $dataoraAttraccoLocalized; | |
public $dataoraRipartenzaLocalized; | |
public function rules() | |
{ | |
return [ | |
[['dataoraAttraccoLocalized', 'dataoraRipartenzaLocalized', 'dataora_attracco', 'dataora_ripartenza', 'dataora_inserimento'], 'safe'], |
<?php | |
class DateTraitQuery | |
{ | |
public function andWhereDate($attribute, $value, $separators = ['/','-']) | |
{ | |
$array = null; | |
foreach($separators as $separator) | |
{ | |
if(strpos($value, $separator) !== false) $array = explode($separator, $value); |