Skip to content

Instantly share code, notes, and snippets.

#
# Apache Guacamole with NGIXN reverse proxy and Let's Encrypt.
# For more details see: https://github.com/8gears/containerized-guacamole
#
version: '3'
services:
nginx:
image: jwilder/nginx-proxy:alpine
labels:
openapi: 3.0.0
x-stoplight:
id: z93m7447hmntk
info:
title: SITH
version: '1.0'
description: SITH API Documentation
contact:
name: PT INDI TEKNOKREASI INT
url: 'https://indi.tech/'
function main() {
for (let i = 1; i <= 5; i++) {
let row = [];
for (let j = 1; j <= 5; j++) {
row.push(i * j)
}
console.log(row.join(" "))
}
}
[
{
"semester": "Semester Gasal 2017",
"kode": "TIN1313",
"matkul": "Pengantar Teknologi Informasi*",
"sks": "3",
"nilai": "B"
},
{
"semester": "Semester Gasal 2017",
INSERT INTO `oc_country`(`country_id`, `name`, `iso_code_2`, `iso_code_3`, `address_format`, `postcode_required`, `status`) VALUES (1,'AKLAN','','','',0,1);INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'NABAS','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'ALTAVAS','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'AKLAN BALETE','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'AKLAN BANGA','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'BATAN','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'BURUANGA','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'IBAJAY','',1);
INSERT INTO `oc_zone`(`country_id`, `name`, `code`, `status`) VALUES (1,'KALIBO','',1);
[
{
"province": "AKLAN",
"cities": [
"NABAS",
"ALTAVAS",
"AKLAN-BALETE",
"AKLAN-BANGA",
"BATAN",
"BURUANGA",
@nursanamar
nursanamar / twig syntax regex pattern
Created December 16, 2019 13:15
regex pattern to convert twig snytax to php
\{\{ (\w*\b) \}\} --> <?php echo $$$1; ?> variabel
\{\{ (\w*\b)\.(\w*\b) \}\} --> <?php echo $$$1['$2']; ?> variabel
\{% if (\w+\b) %\} --> <?php if($$$1) { ?> if($var)
\{% if (\w+\b)\.(\w+\b) %\} --> <?php if($$$1['$2']) { ?> if($var['index'])
\{% if (\w*\b) and (\w*\b) %\} --> <?php if($$$1 && $$$2) { ?>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package laporan1;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package laporan1;
import java.util.regex.*;
/**
@nursanamar
nursanamar / image_frame.php
Created November 29, 2016 03:00 — forked from bachors/image_frame.php
Menggabungkan gambar menggunakan php
<?php
// menentukan frame, foto ,padding & file format (jpeg or png)
$frame = 'https://pixabay.com/static/uploads/photo/2016/02/02/01/31/background-1174639_960_720.png';
$foto = 'http://4.bp.blogspot.com/-MnbkNj0P6G4/Viq-PDdxdPI/AAAAAAAAAnw/kpSkfdXs3A0/s1600/yakuza-apocalypse-yayan-ruhian.jpg';
$padding = 150;
$format = 'png';
$frame_info = getImageSize($frame);
$foto_info = getImageSize($foto);