Skip to content

Instantly share code, notes, and snippets.

View kadzany's full-sized avatar
🎯
Focusing

Kadzany kadzany

🎯
Focusing
View GitHub Profile
const inputObject = {
"id": "06b9d100-3be3-11ee-91f1-a51199ffd3c6",
"product_name": "test wednesday 1122 aug",
"product_photo": null,
"product_test_type": "Security Testing, Heuristic Evaluation, Usability Testing",
"product_sub_test_type": "sub test",
"product_link": "product link",
"product_description": "test wednesday 1122 aug",
"service_id": "0f3c3d3e-90b7-11e9-9944-e03f49b834fa",
"status": "",
@kadzany
kadzany / login.html
Created December 22, 2019 07:20
TW_PROCUREMENT_16_JAN_2020
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://designer.igniteui.com/packages/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="http://designer.igniteui.com/css/themes/infragistics/infragistics.theme.css">
<link rel="stylesheet" href="http://designer.igniteui.com/css/structure/infragistics.css">
<!--
Update the Ignite UI script references to your licensed copies before deploying.
Ignite UI License: http://www.infragistics.com/legal/license/ultimate/
<?php
use Mpdf\Mpdf;
use Mpdf\MpdfException;
class LatihanGeneratorService extends BaseGeneratorService
{
function generate()
{
$mpdf = new Mpdf();
@kadzany
kadzany / forms3.json
Last active May 7, 2018 04:10
Form JSON format containing table
{
"key": "userProfile",
"translationKey": "%WMS.Inbound.ASN.userProfile.formTitle%",
"formType" : "generated",
"menuId": "WM-01",
"roles": [
"SysAdmin",
"Managers",
"Users"
],
@kadzany
kadzany / roles_menus_flat.json
Created May 3, 2018 06:42
Roles and menus JSON data using flat structure
{
"roles": ["managers", "operators", "admin"],
"menus" : [
{
"id": "1",
"name": "WM Menu",
"icon": "icon 1",
"routeLink": "",
"parentId": null
},
@kadzany
kadzany / routing.json
Last active May 3, 2018 06:42
Json for routing data - example for admin user role
{
"roles": ["admin", "outClerk", "inClerk", "whManager"],
"routes": [
{
"path": "roles",
"component": "RoleComponent"
},
{
"path": "roles/add",
"component": "EditRoleComponent"
@kadzany
kadzany / roles_menus.json
Last active May 2, 2018 08:57
Json for roles and menus data
{
"roles": ["managers", "operators", "admin"],
"menus" : [
{
"id": "1",
"name": "WM Menu",
"icon": "icon 1",
"routeLink": "",
"parentId": "0",
"roles": [],
@kadzany
kadzany / form2.json
Last active May 4, 2018 07:00
Update dari form.json sebelumnya
{
"key": "userProfile",
"translationKey": "%WMS.Inbound.ASN.userProfile.formTitle%",
"formType" : "generated",
"menuId": "WM-01",
"roles": [
"SysAdmin",
"Managers",
"Users"
],
@kadzany
kadzany / form.json
Last active April 26, 2018 10:41
Contoh format json untuk auto-generate form
{
"key": "userProfile",
"translationKey": "%WMS.Inbound.ASN.userProfile.formTitle%",
"roles": [
"SysAdmin",
"Managers",
"Users"
],
"fields": [
{
@kadzany
kadzany / robot.js
Created December 5, 2012 03:37 — forked from cgardner/robot.js
derp
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {