This file contains hidden or 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
    
  
  
    
  | FROM php:7.2-apache | |
| WORKDIR /app | |
| COPY . /app | |
| ENV APACHE_DOCUMENT_ROOT /app | |
| RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf | |
| RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Generates a URL-friendly "slug" from a provided string. | |
| // For example: "This Is Great!!!" transforms into "this-is-great" | |
| function generateSlug (value) { | |
| // 1) convert to lowercase | |
| // 2) remove dashes and pluses | |
| // 3) replace spaces with dashes | |
| // 4) remove everything but alphanumeric characters and dashes | |
| return value.toLowerCase().replace(/-+/g, '').replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, ''); | |
| }; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ------------- html ---------------- | |
| <div><input type='file' title="Choose a video please" id="aa" onchange="pressed()"><label id="fileLabel">Choose file</label></div> | |
| ----------- css ------------------ | |
| input[type=file]{ | |
| width:90px; | |
| color:transparent; | |
| } | |
| ---------------- javascript ------------- | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "name": "tarek/lcsv", | |
| "description": "data read write into csv", | |
| "type": "library", | |
| "require": { | |
| "php": "5.6.*", | |
| "phpunit/phpunit": "^5.1" | |
| }, | |
| "license": "MIT", | |
| "authors": [ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
| echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
| sudo apt-get update | |
| sudo apt-get install mongodb-org | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get install build-essential | |
| sudo apt-get install tcl8.5 | |
| cd /tmp | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install apache2 | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| #sudo nmcli connection reload && sudo systemctl restart network.service | |
| Vagrant.configure("2") do |config| | |
| config.vm.define :alpha do |alpha| | |
| alpha.vm.box = "ubuntu/trusty64" | |
| alpha.vm.network 'public_network', ip: '192.168.2.40' | |
| alpha.ssh.forward_agent = true | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Route::get('/test',function(){ | |
| $tests = DB::table('test')->whereRaw("not code REGEXP '^A-[0-9]|^D-[0-9]'")->get(); | |
| // dd($tests); | |
| foreach($tests as $test){ | |
| if(preg_match("/^a[0-9]|^A[0-9]/", $test->code)){ | |
| $code = preg_replace("/[^0-9]/", 'A-',$test->code); | |
| $codes[] = ['id'=>$test->id,'code'=> $code]; | |
| } | |
| if(preg_match("/^D[0-9]|^d[0-9]/", $test->code)){ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function convertNumberToWords(amount) { | |
| var words = new Array(); | |
| words[0] = ''; | |
| words[1] = 'One'; | |
| words[2] = 'Two'; | |
| words[3] = 'Three'; | |
| words[4] = 'Four'; | |
| words[5] = 'Five'; | |
| words[6] = 'Six'; | |
| words[7] = 'Seven'; | 
NewerOlder