Skip to content

Instantly share code, notes, and snippets.

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

samark chaisanguan maxca

🏠
Working from home
View GitHub Profile
@maxca
maxca / Dockerfile
Created March 28, 2021 16:29 — forked from njxqlus/Dockerfile
PHP + Oracle instantclient dockerfile
FROM php:fpm
# Install packages
RUN apt-get update
RUN apt-get install -y unzip
RUN apt-get install -y libaio1
# Oracle instantclient
ADD instantclient-basic-linux.x64-11.2.0.4.0.zip /tmp/
ADD instantclient-sdk-linux.x64-11.2.0.4.0.zip /tmp/
' @Author samark chaisanguan
' @Email [email protected]
' @Since 20/07/2020
' Defined global input string
Global inputString As String
Sub testValidateTxtInput()
inputString = Range("A1")
@maxca
maxca / code.md
Created January 9, 2020 04:47 — forked from gopalindians/code.md
Jetbrains IntelliJ IDEA 2019.2.4 Activation code

Please make fork of this, as this can be removed by Github.com sooner or later.

CATF44LT7C-eyJsaWNlbnNlSWQiOiJDQVRGNDRMVDdDIiwibGljZW5zZWVOYW1lIjoiVmxhZGlzbGF2IEtvdmFsZW5rbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEQiIsI

@maxca
maxca / route
Created February 28, 2019 15:31
route.list
+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+------------------------------------------------+----------+---------------------------------------------------------------------------------------------------------+-------------------+
| | GET|HEAD | / | | Closure | web |
| | GET|HEAD | api/v1/account | | App\Http\Controllers\AccountTransaction\AccountTransactionController@getAccountList | api,jwt |
| | POST | api/v1/account/create | | App\Http\Controllers\AccountTransaction\AccountTransactionController@createAccountTransaction | ap
@maxca
maxca / simple.env
Created December 13, 2018 09:35
.env
APP_ENV=local
APP_KEY=base64:z5OBA76pBchX5P8XqrGVl2mP3p7ki29WpUazHkfV8I4=
APP_DEBUG=true
APP_LOG_LEVEL=debug
BACKEND_URL=http://backend
DB_CONNECTION=mysql
DB_HOST=mariadb
DB_PORT=3306
@maxca
maxca / backend-docker-compose.yml
Created December 13, 2018 08:34
backend-docker-compose.yml
version: '2.3'
services:
webapp:
image: maxca789/php56apachecomposer
container_name: backend
ports:
- "8011:80"
volumes:
- .:/var/www/html/
@maxca
maxca / mysql-redis-docker-compose.yml
Created December 13, 2018 08:32
mysql-redis-docker-compose.yml
version: '2.3'
services:
mysql:
restart: always
image: mariadb:10.3
container_name: mariadb
ports:
- "3307:3306"
volumes:
@maxca
maxca / front-docker-compose.yml
Last active December 13, 2018 09:51
simple frontend docker compose
version: '2.3'
services:
webapp:
image: maxca789/php56apachecomposer
container_name: frontend
ports:
- "8010:80"
volumes:
- .:/var/www/html/
@maxca
maxca / jadetforcast.php
Created September 26, 2018 07:17
for jadet project
<?php
namespace App\Repositories\Members;
use App\Repositories\BaseRepositoryWrap;
use App\Forcatings;
class MembersRepository extends BaseRepositoryWrap
{
/**
* set total count
@maxca
maxca / Presudo code PHPInsigth
Last active August 12, 2018 05:41
pseudo code.text
/**
* Author: [email protected]
**/
INPUT: Word
Output: Sentiment Classification
Set class = {positive, negative, neutral}
Set prior = {0.3333, 0.3333, 0.3333}
Set score = 1