Skip to content

Instantly share code, notes, and snippets.

@syahman
syahman / 1001005_dashboard_bs.tpl
Last active October 24, 2020 03:33
Reorganize BS Menu / Forms / Smarty TPL
<!-- standard main menu for group 1001 -->
{include file="headermenu_1001bs.tpl"}
<!-- all js for 1001005 -->
<!-- sub module menus -->
{include file="1001005menubs.tpl"}
<!-- all body contents goes here !! -->
@syahman
syahman / BaseViewModel.cs
Created January 8, 2020 23:48
Sample Xamarin MVVM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
using DAFTAR.Models;
using System.Threading.Tasks;
using Acr.UserDialogs;
@syahman
syahman / httpd.conf
Last active August 10, 2018 15:44
Solaris 11.3 Apache 2.4 PHP7 http.conf Example
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Solaris Quick Configuration Information
#
@syahman
syahman / phpcompile.sh
Last active August 10, 2018 12:59
Solaris 11.3 x86_64 PHP7 Apache2.4 Threaded Mode 64 bit
#!/bin/bash
export CC=gcc
export CFLAGS="-m64 -std=gnu99"
export CXX=gcc
export CXXFLAGS="-m64"
export LDFLAGS="-m64 -L/lib/64 -L/usr/sfw/lib/64"
export LD_LIBRARY_PATH="/usr/local/lib/sparcv9/:/usr/local/lib:/usr/local/apache2/lib:/usr/sfw/lib/sparcv9:/usr/local/lib/sparcv9:/usr/lib/sparcv9"
export LDFLAGS="-lrt"
./configure --with-apxs2=/usr/apache2/2.4/bin/apxs --with-pdo-mysql --with-pear --with-libdir=lib64 --with-openssl --with-zlib --enable-mbstring --enable-zip --enable-maintainer-zts
make clean
@syahman
syahman / json.js
Created November 12, 2015 15:49 — forked from mxriverlynn/json.js
hijacking toJSON for a Kendo UI MVVM model
$(function(){
var ds = new kendo.data.DataSource({
transport: {
create: {
url: "/api/registration.php",
dataType: "json",
type: "POST"
},
parameterMap: function(options, operation){
@syahman
syahman / designer.html
Created September 14, 2015 13:18
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>